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
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.