Opencv Error on Ubuntu Webcam (Logitech C270) Capture -> HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP

后端 未结 5 1382
星月不相逢
星月不相逢 2021-02-08 03:32

this erorr message appears on running simple camera capture on Ubuntu with logitech C270 (OpenCV 2.4.2/C++):

HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP

5条回答
  •  孤街浪徒
    2021-02-08 04:14

    The width of an image is given by its number of columns. Your code should be

    cout << "Mat width: " << frame.cols << endl;
    cout << "Mat height: " << frame.rows << endl;
    

    So there is no swap between width and height.

提交回复
热议问题