Opencv Error on Ubuntu Webcam (Logitech C270) Capture -> HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
问题 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 and further: Corrupt JPEG data: 2 extraneous bytes before marker 0xd1 Corrupt JPEG data: 1 extraneous bytes before marker 0xd6 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0 Corrupt JPEG data: 1 extraneous bytes before marker 0xd0 I get frames but the values of frame width and height swapped when writing to a Mat object see below: Mat