We are working with an 10 bit RAW gray scale sensor and established a Video stream (1080p 30fps, WIn10). SeeRe: Setup MIPI connection between CX3 and OV2740
1. Do we need to care about differences in UVC1.1 and 1.5, since the generated Code seems to be 1.1.
2. We want to develop a Host application based ob Python3 and Opencv. If we use the Videocapture function, the frames are interpreted as 8bit, but the sensor is set to 16 bit mode with 10 bits used and 6 bits zeros. It follows, that intensitys higher than 255 are displayed black. Is there a way to capute a 16 bit image and normalize the gray values to 10 bit?
We want to set USB request via Python and Opencv to contoll exposure time (and other controls) (via cap.set(cv2.CAP_PROP_EXPOSURE, xyz)). Therefor we edited the cycx3_uvcdscr.c and the cycx3_uvc.c .
/* Input (Camera) Terminal Descriptor */
0x2A,0x00,0x02, /* @kolja: found this in physical-hasher/bitmark-microscope at master · bitmark-inc/physical-hasher · GitHub */
// 0x00, 0x00, 0x00, /* No controls supported */
/*A bit set to 1 indicates that the
mentioned Control is supported for
the video stream.
D0: Scanning Mode, D1: Auto-Exposure Mode, D2: Auto-Exposure Priority, D3: Exposure Time(Absolute)
D4: Exposure Time(Relative) ........D18: Reserved, set to zero */
/* Processing Unit Descriptor */
0x01, 0x00, 0x00, /* No controls supported */
/*@kolja: edited this to 1 from 0
A bit set to 1 indicates that the mentioned
Control is supported for the video stream.
D0: Brightness, D1: Contrast, D2: Hue, D3: Saturation, D4: Sharpness....D18..(n*8-1): Reserved. Set to zero*/
3. For a start we want to control exposure. Which Descriptor needs to be set in /* Input (Camera) Terminal Descriptor */ and /* Processing Unit Descriptor */ ? I tried several, but the debug prints in Console does not mention the cap.set(cv2.CAP_PROP_EXPOSURE, xyz) request.