Sign inSign up

hamzagbada18/ocr-microservice

By hamzagbada18

•Updated almost 2 years ago

This microservice standardizes the usage of Optical Character Recognition (OCR) engines

Image
API management
Machine learning & AI
0

318

hamzagbada18/ocr-microservice repository overview

⁠OCR Microservice

This microservice standardizes the usage of Optical Character Recognition (OCR) engines, providing a unified interface to access multiple OCR engines. It currently supports three main OCR engines:

  • PaddleOCR⁠: A deep learning-based OCR engine capable of handling various tasks such as text detection, recognition, and structure analysis.
  • Tesseract⁠: An open-source OCR engine that provides accurate text recognition from images.
  • EasyOCR⁠: Another deep learning-based OCR engine known for its simplicity and ease of use.

Access the OpenAPI documentation:

You can access the OpenAPI Specification⁠ documentation through the following link: localhost:8000/docs⁠

Acces throw REST API:

  • POST /applyOcr/
  • Apply OCR

Params:

NameDescription
ocr_methodThis attribute indicates which OCR method will be applied. For Paddle OCR, ocr_method = paddle. For Tesseract, ocr_method = tesseract. For EasyOCR, ocr_method = easy.
languagesList of supported languages. Supported languages are fr (French) and en (English). Note: Paddle OCR accepts only one language.

Example usage with curl:

curl -X 'POST' \
  'http://localhost:8000/applyOcr/?ocr_method=tesseract&languages=en' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F '[email protected];type=image/png'

Tag summary

Content type

Image

Digest

sha256:b7ac31fc5…

Size

3.8 GB

Last updated

almost 2 years ago

docker pull hamzagbada18/ocr-microservice