Skip to content

Change resolution and FPS using OpenCV #5

@arthurkehrwald

Description

@arthurkehrwald

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions