Skip to content

Fix webcam capture#20

Open
corollari wants to merge 1 commit intopetercunha:masterfrom
corollari:patch-1
Open

Fix webcam capture#20
corollari wants to merge 1 commit intopetercunha:masterfrom
corollari:patch-1

Conversation

@corollari
Copy link
Copy Markdown

When USE_WEBCAM is set to true the instruction cv2.VideoCapture(0) is run twice, which leads to it blocking the program and causing it to freeze.

This PR fixes that issue by removing the initial call, as it is dead code (it is assigned to a variable that is never used).

@corollari
Copy link
Copy Markdown
Author

@petercunha

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.

1 participant