I am trying to get OpenCV to work with the See3Cam CU135, but as far as I can tell openCV is not compatible with the image format of the camera (Y16) and the manufacturer suggests making a custom openCV installation. I have tried the custom installation to no avail . Does anyone have any ideas how one could aproach the problem? Thanks
CodePudding user response:
I found a solution that works for me here for anyone that has the same problem.
The important part is how the camera is connected to windows directshow:
import cv2
device_index = 0
cap = cv2.VideoCapture(device_index cv2.CAP_DSHOW)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 512)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640)
cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter.fourcc('Y','1','6',' '))
cap.set(cv2.CAP_PROP_CONVERT_RGB, 0)
Then after that the usual while loop for streaming (I had to change the device_index to 1)
CodePudding user response:
See3CAM_CU135 camera supported output is UYVY and MJPEG not Y16. Because See3CAM_CU135 camera has an onboard ISP to perform major image processing functions like debayering, WB control, Color correction and various other image quality improvement features, which also reduces the processing load in the host platform. So you could not set Y16 in See3CAM_CU135 camera.