A self-hosted server to run OCR and Translation of images,
4.3K
This image will run a fully working version of the ocr_translate backend server.
It is a self-hosted backend server meant for running OCR and translation of images. The server is designed to work in combo with this browser extension (also on github https://github.com/Crivella/ocr_extension), that will grab images from an active tab and in-place translate them by overlaying textboxes on top of it.
docker run --name CONTAINER_NAME -v OCT_MODELS:/models -v OCT_DB_DATA:/db_data -v OCT_PLUGINS_DATA:/plugin_data -p SERVER_PORT:4000 -d crivella1/ocr_translate:latest
For now only CUDA is supported. Add --gpus all to the previous command and set the environment variable DEVICE to cuda
| Variable | Values | Usage |
|---|---|---|
UID | 1000 | UID of the user owning the files in /models, /plugin_data and /db_data |
GID | 1000 | GID of the user owning the files in /models, /plugin_data and /db_data |
The rest of the project variables are described on the Documentation
These can either be native docker volumes or bind mounted
| Volume | Usage |
|---|---|
/models | Location where models are downloaded |
/db_data | Location where sqlite databse is stored |
/plugin_data | Location where python packages for plugins are installed |
Content type
Image
Digest
sha256:9b0a81405…
Size
237.6 MB
Last updated
7 months ago
docker pull crivella1/ocr_translate