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

Fix variable assignment problem with face detection example, and broken links. #141

Closed
wants to merge 2 commits into from

Conversation

charlesreid1
Copy link

@charlesreid1 charlesreid1 commented Oct 27, 2017

This commit fixes an error with this face detection example in the OpenCV2 Python
tutorials. It currently assigns the result of a cv2.rectangle() call
to the variable img, which is supposed to contain the
image. The cv2.rectangle() call does not return anything,
so img is null, so the subsequent assignment of roi_color fails.

This fixes the problem by eliminating the variable assignment.

This commit fixes an error with the face detection example in the Python
tutorials. It currently assigns the result of a `cv2.rectangle()` call
to the variable `img`, which is supposed to contain the
image. The `cv2.rectangle()` call does not return anything,
so `img` is null, so the subsequent assignment of `roi_color` fails.

This fixes the problem by eliminating the variable assignment.
@charlesreid1 charlesreid1 changed the title Fix variable assignment problem with face detection example. Fix variable assignment problem with face detection example, and broken links. Oct 27, 2017
@charlesreid1
Copy link
Author

Repo/tutorials are longer maintained so abandoning this PR

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.

None yet

1 participant