PS3EyeDirectShow icon indicating copy to clipboard operation
PS3EyeDirectShow copied to clipboard

Change resolution and FPS using OpenCV

Open arthurkehrwald opened this issue 1 year ago • 0 comments

First of all thanks a lot for making this!

I am trying to use the PS3 Eye in OpenCV with Python. It works, but I cannot change the resolution and fps. It always runs at 640x480, 30fps. Using the same camera and the same computer on Ubuntu (dual boot), I can change the parameters just fine, so it must be a software issue.

When I use VideoCapture.set(), I get the following error: libusb: warning [init_root_hub] could not get node connection information (V2) for root hub 'USB\ROOT_HUB30\4&547E2CA&0&0' port 15: [87] The parameter is incorrect.

I followed the instructions you have linked in the Readme and then installed release 1.1 (latest as of writing this).

This is a minimal python script to reproduce the issue:

import cv2

cap = cv2.VideoCapture(0) # This prints the error message for the first time
cap.set(cv2.CAP_PROP_FRAME_WIDTH, float(320)) # No error
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, float(240)) # Second time
cap.set(cv2.CAP_PROP_FPS, float(187)) # Third time
cap.release()

Additional Information: OS: Windows 10 Python version: 3.10.11 OpenCV version: 4.9.0.80 LibusbK version: 3.1.0.0

arthurkehrwald avatar Feb 09 '24 18:02 arthurkehrwald