There is a huge number of questions and corresponding answers of people asking how to set the frame height / width. A small sample below:
- Unable to change frame height, width in OpenCV
- OpenCV (via python) on Linux: Set frame width/height?
- Setting frame size of QuickCam Pro 3000 with OpenCV?
- Increasing camera capture resolution in OpenCV
I get it OpenCV has issues sometimes with setting frame height / width. In my case I can set a range of widths/heights up to 640 x 512. The drivers for the camera are provided by the manufacturer (i.e. not v4l2 or something similar). What debugging information can I provide or how can I help them understand why I can't set higher widths / frames. Is it a problem with the drivers, with OpenCV with both?
import cv2
c = cv2.VideoCapture(1)
c.set(cv2.cv.CV_CAP_PROP_FRAME_WIDTH, 1280)
c.set(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, 1024)
I'm using Ubuntu 14.04 and using OpenCV 2.4.8 in Python.
I found this question which has an accepted answer suggesting that I should be able to make it work. I don't know how to do this part:
What you can do is to investigate your camera driver, make a patch to OpenCV and send it to code.opencv.org. This way others will enjoy your work, the same way you enjoy other's.