![]() The camera I am using (no other webcam is connected to the computer) is the QuickCam V-UBK45: with the software provided by Logitech, I am able to take pictures at full resolution (1280x960) and at all intermediate ones (e.g. I have no error appearing: simply the resolution is set to the default one (640x480) as I try to set it to higher values. For example, I can set the image size to 320x240, but I can't change it to 800圆00. The code works fine, except that the Camera default resolution is 640x480, and my code seems to be able to set only resolution values lower than that. Print "Frame resolution set to: (" + str(cap.get(cv.CV_CAP_PROP_FRAME_WIDTH)) + " " + str(cap.get(cv.CV_CAP_PROP_FRAME_HEIGHT)) + ")" Print "Frame default resolution: (" + str(cap.get(cv.CV_CAP_PROP_FRAME_WIDTH)) + " " + str(cap.get(cv.CV_CAP_PROP_FRAME_HEIGHT)) + ")"Ĭap.set(cv.CV_CAP_PROP_FRAME_HEIGHT, 600) ![]() ![]() I am trying to acquire images from my webcam using a python code that imports OpenCV. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |