we have to specify the DB details to the docker so I have created a folder name dbdetails inside the folder there is db.yaml where the details of DB are present.
TO run the docker file direct to the dbdetails folder and run
nvidia-docker run -p 4000:5000 --rm -v $PWD:/opt/app/dbfile/ final_ocr
to get the result run curl -ss 'http://localhost:4000/ocr/api/v1.0?key=65c2c396bf1ad2191990d50edef3b65d&url=http://www.quickmeme.com/img/7b/7be84adaddf5473acb74fc82212d28afb4754178f4b53ad3d72a27cdcee626ff.jpg'
which outputs { "expired": "false", "key": "valid", "profane": "0.9999372", "text": " facebook pics in the mirror imagine if took shit without flushing", "time": 5.459327936172485 }
Content type
Image
Digest
Size
8.1 GB
Last updated
over 7 years ago
docker pull bharat2905/final_ocr