talira

Ready-to-use OCR with 80+ supported languages and all popular writing scripts

open sourceApache-2.0self-hostablefree

EasyOCR is a Python OCR library from Jaided AI, built on PyTorch, that reads text from images in more than 80 languages and the major writing scripts, including Latin, Chinese, Arabic, Devanagari and Cyrillic. It detects text with the CRAFT model and recognizes it with a CRNN (ResNet or VGG features, LSTM and CTC decoding), and returns each piece of text with its bounding box and a confidence score. Two lines of Python (easyocr.Reader(['en']).readtext(...)) load the language models, which download automatically, and it runs on GPU or CPU, with a command-line tool too. Its last release is 1.7.2 (September 2024), and pull requests are still merged occasionally.

Problems it solves

  • Python OCR library I can pip install and use in two lines
  • read text in photos and screenshots, not just clean scanned pages
  • OCR Chinese, Arabic, Devanagari and Cyrillic text alongside English in the same image
  • get each detected word's bounding box and confidence score back as a Python list
  • OCR that uses my GPU through PyTorch but still works on CPU-only machines
  • train my own text recognition model and plug it into an existing OCR pipeline
  • OCR images straight from OpenCV numpy arrays, bytes or a URL
  • multilingual OCR from the command line without writing any code

Features

  • 80+ languages, several per reader
  • CRAFT text detection and CRNN recognition, optional DBNet detector
  • bounding box, text and confidence for each detection
  • file path, URL, bytes or numpy array input
  • GPU or CPU mode
  • command-line tool (easyocr -l ... -f ...)
  • custom recognition and detection model training
  • Dockerfile in the repository

Limitations

  • Doesn't support handwritten text yet: handwriting is listed under what's coming next in the README1

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what EasyOCR does.

  1. PP-OCRv5 PaddleOCR's fifth-generation text detection and recognition models, server and mobile sizes
  2. OCRmyPDF Adds a searchable OCR text layer to scanned PDFs
  3. docTR Document Text Recognition: open source OCR powered by PyTorch
  4. Tesseract Tesseract Open Source OCR Engine
  5. TrOCR Transformer-based optical character recognition with pre-trained image and text Transformers
  6. Mistral OCR Mistral AI's document OCR model and API: PDFs and images to structured Markdown, priced per page

Compare EasyOCR with the top 3