smacademic / project-bdf

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

Add functionality for downloading images #19

Closed afig closed 5 years ago

afig commented 5 years ago

This PR adds the code for downloading images for processing by Tesseract. Currently, testing is embedded (fancy word for hard-coded) into the code. This will be removed in a later commit before merging.

The actual downloading occurs in the line:

 urllib.request.urlretrieve(imageURL, imagePath)

Currently, the image is deleted after 5 seconds. In practice, it will be deleted after it has been processed by Tesseract.

Closes #15