
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Loading and saving images and image streams (file, in-memory, camera, video, directory).
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 :)
FAQs
Loading and saving images and image streams (file, in-memory, camera, video, directory).
We found that dotimaging.io demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.