smacademic / project-bdf

project-bdf created by GitHub Classroom
2 stars 0 forks source link

Improve computer vision robustness #94

Closed afig closed 5 years ago

afig commented 5 years ago

This PR fixes issues where certain requests could cause the Computer Vision portion of the bot to fail. HTTP status codes that indicate errors are now handled with descriptive error messages.

For examples of what these look like, see this final test comment.

afig commented 5 years ago

This PR also sneaks in a change to the call to pytesseract. Before, the default of only English was used. We now also check for Spanish, Portuguese, and Japanese, but this is an arbitrary list. We should change this to something more appropriate at some point.