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

Removal of redundant cap declaration #35

Merged
merged 1 commit into from
Sep 23, 2018

Conversation

wxyangf
Copy link
Contributor

@wxyangf wxyangf commented Sep 23, 2018

Basically, at least on my system, the redundant declarations of cap could prevent the stream from opening correctly as the device was still being blocked by the previous cv2.VideoCapture declaration (previously on line 7), throwing:

VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream: Device or resource busy

This commit is no logical change as the default device is still 0 as defined in the argparser.

@victordibia victordibia merged commit 9a76d90 into victordibia:master Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants