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 >
HIGHGUI ERROR: V4L/V4L2: VIDIOC_S_CROP
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}')
os.system(f'echo {my_string}')