Plugins
Plugins are the bread and butter of ocr_translate.
The base project implements functionalities to handle the web server, database, translation pipelines and queues.
How and which models are used is implemented entirely in plugins.
Plugins can be installed by using the plugin collapsable menu on the extension, or by directly using the manage_plugins/ endpoint (see here).
ocr_translate-hugging_face
Plugin for using Hugging Face models for OCR and translation.
Implements VED models for OCR and Seq2Seq models for translation.
Plugin or associated packages environment variables
Variable |
Default |
Usage |
---|---|---|
|
|
Directory where Hugging Face models are being stored (either downloaded manually or downloaded by transformers) |
|
0 |
By default transformers will try to download missing models. Set this to 1 to only work in offline mode |
ocr_translate-easyocr
Plugin for using EasyOCR models for BBox detection.
Plugin or associated packages environment variables
Variable |
Default |
Usage |
---|---|---|
|
|
Directory where EasyOCR downloads its models |
ocr_translate-tesseract
Plugin for using Tesseract models for OCR. This requires tesseract to be installed on your machine.
Plugin or associated packages environment variables
Variable |
Default |
Usage |
---|---|---|
|
|
Directory where tesseract downloads its models |
|
true |
Control whether the app should download missing models (true) or work in offline mode only (false) |
ocr_translate-paddle
Plugin for using PaddleOCR models for BBox detection and OCR.
Variable |
Default |
Usage |
---|---|---|
|
|
Directory where PaddleOCR downloads its models |
ocr_translate-ollama
Plugin for using LLMs through ollama for translation.
The Ollama server needs to be setup independently.
Variable |
Default |
Usage |
---|---|---|
|
|
Endpoint where the ollama server is running |
ocr_translate-google
Plugin for using Google Translate for translation.
This plugins requires an internet connection and will send the text to be translated to google.
Variable |
Default |
Usage |
---|---|---|
EMPTY |
EMPTY |
EMPTY |