deepopinion / ocr_wrapper

A Python wrapper for multiple OCR solutions
MIT License
7 stars 0 forks source link

GoogleAzureOCR caching error when specifying `OCR_WRAPPER_CACHE_FILE` env var #20

Closed phschoepf closed 6 months ago

phschoepf commented 6 months ago

GA-OCR tries to "double cache" responses when using the env variable to specify a cache file.

Both the GA-OCR instance, and the AzureOCR and GoogleOCR instances used by GA-OCR try to cache their responses, leading to concurrent writes (and unneeded cache entries, even if it worked).