From web-camera API:
Callback will be used to provide RGB preview image
and into samples/README.md:
Run preview for few seconds. Preview callback prints information on each frame.images are rgb24
I’ll take that as "API return raw data in RGB format", but code bellow don’t work:
What image format have array RealSense ID::Image::unsigned char * buffer in void On Preview ImageReady(const RealSense ID::Image image) when preview Mode=RAW10_1080P? And how much channels in frame?
I'm trying to convert Image
RealSenseID::RAW10
tocv::Mat
. I get an image fromPreviewImageReadyCallback
, as shown in the example: https://github.com/IntelRealSense/RealSenseID/blob/master/samples/cpp/preview.cc#L14. But in the finish, I have always gray square. The conversation I make like:From web-camera API: Callback will be used to provide RGB preview image and into samples/README.md: Run preview for few seconds. Preview callback prints information on each frame.images are rgb24 I’ll take that as "API return raw data in RGB format", but code bellow don’t work:
What image format have array
RealSense ID::Image::unsigned char * buffer
invoid On Preview ImageReady(const RealSense ID::Image image)
whenpreview Mode=RAW10_1080P
? And how much channels in frame?