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

后端 未结 5 1400
星月不相逢
星月不相逢 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:35

    I would post this as a comment (not enough reputation), still, I got stuck here and the solution I found, though not elegant, was:

    python my_app.py 2<&1 | grep -v "Corrupt JPEG data"
    

    Note: To replicate normal python print statements behaviour I'm using os.system(f'echo {my_string}')

提交回复
热议问题