caltechlibrary / handprint

Apply different text recognition services to images of handwritten documents.
https://caltechlibrary.github.io/handprint
BSD 3-Clause "New" or "Revised" License
172 stars 18 forks source link

Check if converted file is available before converting images #5

Closed mhucka closed 5 years ago

mhucka commented 6 years ago

Currently, the main loop iterates over the available services, and the inner loop iterates over the files to be processed. This means that when images need to be converted from a format like jp2, the inner loop is doing it every time it comes across the file, because it's iterating over the original file (e.g., "foo.jp2") and not checking if a converted version already exists. It should check for converted files so it doesn't have to convert images repeatedly.

mhucka commented 5 years ago

This is now implemented in version 0.5.0.