Ask Your Question

Revision history [back]

Pls check whether the camera support the MJPEG format. To checking the use this below command $v4l2-ctl --list-formats. If support this format and set resolution and format by using the below command after open the video node

_CameraDevice.set(CV_CAP_PROP_FRAME_WIDTH, 640); _CameraDevice.set(CV_CAP_PROP_FRAME_HEIGHT, 480); _CameraDevice.set(CV_CAP_PROP_FOURCC, CV_FOURCC('M', 'J', 'P', 'G'));