Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

DotImaging.IO

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

DotImaging.IO

Loading and saving images and image streams (file, in-memory, camera, video, directory).

unpublished
nugetNuGet
Version
5.3.0
Maintainers
1
Created
Source

Unified stream-like platform-abstract API for IO video access: web-camera support, various video-format reading / writing, image-directory reader. Image loading/saving (file or in-memory).

  • image loading / saving:

    Bgr[,] image = ImageIO.LoadColor("sample.jpg"); //load Bgr color image Gray[,] hdrImage = (ImageIO.LoadUnchanged("hdrImage.png") as Image<Gray>).Clone(); //load HDR grayscale (or any other) image image.Save("image.png");

  • image in-memory encoding / decoding

    Bgr[,] bgrIm = ImageIO.LoadColor("sample.jpg"); byte[] encodedBgr = bgrIm.EncodeAsJpeg(); //or png, bmp Bgr[,] decodedBgr = encodedBgr.DecodeAsColorImage();

  • media (camera, video, image-directory) capture:

    ImageStreamReader reader = new CameraCapture(); //use specific class for device-specific properties (e.g. exposure, image name, ...) reader.Open();

    //read single frame var frame = reader.Read().ToBgr(); reader.Close();

  • video writer:

    ImageStreamWriter videoWriter = new VideoWriter("out.avi", new Size(1280, 1024));

    var image = new Bgr[1024, 1280]; videoWriter.Write(image.Lock()); //write a single frame

    videoWriter.Close();

  • frame extraction:

    var reader = new FileCapture(fileName); reader.Open();

    reader.SaveFrames(outputDir, "{0}.jpg", (percentage) => { ((double)percentage).Progress(message: "Extracting video..."); });

    reader.Close();

Discover more types as you type :)

Keywords

image-encode

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts