Why is the frame width / height not always set?

There are a huge number of questions and corresponding answers of people asking how to set the height / width of the frame. A small sample below:

  • Unable to change frame height, width in OpenCV
  • OpenCV (via python) on Linux: set frame width / height?
  • Setting QuickCam Pro 3000 frame size with OpenCV?
  • Increase camera capture resolution in OpenCV

I realized that OpenCV sometimes has problems setting the height / width of the frame. In my case, I can set the width / height range to 640 x 512. The drivers for the camera are provided by the manufacturer (ie not v4l2 or something like that). What debugging information can I provide or how can I help them understand why I cannot set higher width / frames. Is this a problem with 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 am using Ubuntu 14.04 and using OpenCV 2.4.8 in Python.

I found this question that has an accepted answer, suggesting that I should be able to make it work. I do not know how to do this part:

What you can do is study your camera driver, make a patch for OpenCV and send it to code.opencv.org. In this way, others will enjoy your work, just as you enjoy the work of others.

+4
python opencv camera driver
Jan 13 '15 at 4:14
source share

No one has answered this question yet.

See similar questions:

57
Configuring camera settings in OpenCV / Python
fifty
Increase camera capture resolution in OpenCV
12
OpenCV (via python) on Linux: set frame width / height?
one
Unable to change frame height, width in OpenCV
one
Setting QuickCam Pro 3000 frame size with OpenCV?

or similar:

1062
Why does string comparison in Python using "==" or "is" sometimes produce a different result?
743
Why is Python code faster in a function?
57
Configuring camera settings in OpenCV / Python
13
Offering a camera for machine vision with OpenCV
8
camera - preliminary changes after starting video recording
2
Problems grabbing grayscale images using the pvt cv2 interface for OpenCV
one
Problems accessing the webcam under Windows 10 / OpenCV
0
setting webcam camera parameter in opencv python
0
OpenCV VideoCapture :: set () returns false, but successfully
0
Capture 1920x1080 video with OpenCV over Raspberry PI



All Articles