Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoCapture.set type error with bool arguments #12

Open
jveitchmichaelis opened this issue Jun 29, 2020 · 0 comments
Open

VideoCapture.set type error with bool arguments #12

jveitchmichaelis opened this issue Jun 29, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@jveitchmichaelis
Copy link
Contributor

Seems to be either an issue on ARM or an issue with OpenCV 4.3.

On OpenCV 4.2 / x86_64 / Python 3.7

>>> import cv2
>>> cap = cv2.VideoCapture(0)
>>> cap.set(cv2.CAP_PROP_CONVERT_RGB, False)
True
>>> cap.set(cv2.CAP_PROP_CONVERT_RGB, 1)
True
>>> cap.set(cv2.CAP_PROP_CONVERT_RGB, 0)
True

However using False on OpenCV 4.3/aarch64/Python 3.7 now causes a TypeError.

Should probably move everything to 0/1 which should be back compatible at least.

@jveitchmichaelis jveitchmichaelis added the bug Something isn't working label Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant