
opencv调用摄像头失败,出现以下提示,求解答,谢谢
VIDIOC_QUERYCTRL:Input/outputerrorHIGHGUIERROR:V4L/V4L2:VIDIOC_S_CROPOpenCVError:Asse...
VIDIOC_QUERYCTRL: Input/output error
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /home/tanxue/opencv-2.4.13.5/modules/core/src/matrix.cpp, line 333
terminate called after throwing an instance of 'cv::Exception'
what(): /home/tanxue/opencv-2.4.13.5/modules/core/src/matrix.cpp:333: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat 展开
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /home/tanxue/opencv-2.4.13.5/modules/core/src/matrix.cpp, line 333
terminate called after throwing an instance of 'cv::Exception'
what(): /home/tanxue/opencv-2.4.13.5/modules/core/src/matrix.cpp:333: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询