Skip to content

Aztic/Tesseract-Python-API-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tesseract Python API

Simple Python API wrapper for Tesseract OCR engine

Requirements

  • Python >= 3.11.8
  • Tesseract >= 5.3.4

Setup

git clone <repo url>
cd <repo>
python -m venv .venv --system-site-packages
source .venv/bin/activate
python -m pip install -r requirements.txt

cd app && python main.py

You can also directly use the docker image

docker build --build-args TESSERACT_LANGUAGES=spa,cat,ita -t tesseract-python-api .
docker run -p 8000:8000 tesseract-python-api

and consume the API at http://localhost:8000

Test

pytest

TODO

  • Auth support
  • Allow specify the language in the endpoint

License

GPL-3.0. See LICENSE for more information.

Why this wrapper?

I need some simple and generic OCR tool for my side projects. An API wrapper is an easy way to integrate it without worrying about the implementation in the other projects.

About

Simple API used as wrapper for Tesseract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published