Skip to content

sam-morin/ArcorOCR-backend-python

Repository files navigation

Logo

ArcorOCR.com | Backend

PDF OCR for the OCR-less | Frontend Repo

View Live · Report Bug · Request Feature . Build/Develop


Here lives the backend for ArcorOCR.

It's Python,

uses OCRmyPDF,

and runs with Gunicorn.

There are two endpoints:

  • /upload (perform OCR generation of the supplied file in POST)
  • /upload/remove (perform OCR removal of the supplied file in POST)

Enjoy.

Running

Production

  1. Pull and CD
git clone https://github.com/sam-morin/ArcorOCR-backend-python.git && cd ArcorOCR-backend
  1. Build image
docker build . -t arcorocr-backend
  1. Run image
docker run -d --restart unless-stopped -p PUBLIC_PORT:5000 arcorocr-backend

Development

  1. Pull and CD
git clone https://github.com/sam-morin/ArcorOCR-backend-python.git && cd ArcorOCR-backend
  1. Install requirements.txt
pip install requirements.txt
  1. Run it with Flask
python server.py

or, better yet..

  1. Run it with Gunicorn
gunicorn -w 4 -b 0.0.0.0:5000 server:app --timeout 300

About

ArcorOCR - Backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published