openpnp / openpnp-capture

A cross platform video capture library with a focus on machine vision.
MIT License
129 stars 56 forks source link

native MJPEG stream on MAC #74

Open marn13 opened 6 months ago

marn13 commented 6 months ago

Hi I am trying to use a rust binding to openpnp-capture to record video frames from an usb 4k camera on mac (M2). Without any problem I was able to get RGB frames but cannot find out how to access raw jpg images coming from the device. I noticed in the code that he images are decoded at runtime (using turbojpg? ). How can bypass this and get the raw data?

Kind regards, Marcin

trcwm commented 6 months ago

Hi Marcin,This is not possible with the current library.Regards, Niels.