I created a Docker image that has a flask app that uses EasyOCR. When you run the docker app on a port, and the script calls the EasyOCR module, it starts downloading the character recognition model, which crashes and terminates the container. Is there a way I can copy the model to the docker file already, so it doesn't have to do that once I have to run it?
I was with the same problem, and found the solution on the issues from EasyOCR: https://github.com/JaidedAI/EasyOCR/issues/706
Basically, you need to custom your Dockerfile like this:
This will download them manually from the model hub and put them in the
'~/.EasyOCR/model'
folderTo see every model and choose what you need, follow to this link: https://www.jaided.ai/easyocr/modelhub/