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

Add more error handling for OpenCV #11

Merged
merged 2 commits into from
Jun 3, 2015
Merged

Conversation

bredmond
Copy link
Contributor

@bredmond bredmond commented Jun 2, 2015

No description provided.

If imread from the opencv library can't read a file for any reason, it
returns None, but we're not checking that so you instead get a confusing
AttributeError later on.  Since there's no point in continuing without
image data, this raises a clear exception.
If confidence happens to be passed as a string instead of a float,
there's problems later during comparision and an exception happens.
Confidence should always be a float, so this forces it.
asweigart added a commit that referenced this pull request Jun 3, 2015
Add more error handling for OpenCV
@asweigart asweigart merged commit cf3a6a8 into asweigart:master Jun 3, 2015
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

2 participants