Sign inSign up

crivella1/ocr_translate

By crivella1

Updated 7 months ago

A self-hosted server to run OCR and Translation of images,

Image
Machine learning & AI
Web servers
Databases & storage
0

4.3K

crivella1/ocr_translate repository overview

Description

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.

Running

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
GPUs

For now only CUDA is supported. Add --gpus all to the previous command and set the environment variable DEVICE to cuda

List of docker-specific variables

VariableValuesUsage
UID1000UID of the user owning the files in /models, /plugin_data and /db_data
GID1000GID of the user owning the files in /models, /plugin_data and /db_data

The rest of the project variables are described on the Documentation

Volumes

These can either be native docker volumes or bind mounted

VolumeUsage
/modelsLocation where models are downloaded
/db_dataLocation where sqlite databse is stored
/plugin_dataLocation where python packages for plugins are installed

Tag summary

Content type

Image

Digest

sha256:9b0a81405

Size

237.6 MB

Last updated

7 months ago

docker pull crivella1/ocr_translate