EasyOCR

EASYOCR

EasyOCR finds the lines of text in a photo or a scan and reads each one, returning every line with its box and its confidence. It reads Latin-script languages, Azerbaijani and Turkish included.

Vision & Analysisocrtext-detectiontext-recognitionscansphotosmultilingualeasyocrapache-2.0Fine-tunable
EasyOCR: Vision & Analysis model on Kainguru

About EasyOCR

Capabilities

  • Every line, with its place — four corners in pixels, the text and a confidence from 0 to 1
  • Photos and scans — receipts, signs, ID cards and pages, any orientation of a line the finder can box
  • 41 Latin-script languages — name the languages and it writes only their letters
  • Fine-tuning — teach the reader your own fonts and layouts with cropped lines and their text

Good to know

  • Pictures are JPEG, PNG or WebP, at most 20 MB and 40 megapixels each, at least 16 pixels a side and at most 60 times wider than tall. The text finder looks at the picture scaled to 2,048 pixels on its longer side; the boxes are in the picture's own pixels and each line is read from the full-size picture.
  • languages takes codes of Latin-script languages (en, de, fr, es, tr, az, ... 41 in all), at most 8; the reader then writes only letters of those languages (digits and common symbols always). The default is en. Chinese, Japanese, Korean, Cyrillic, Arabic and Indic scripts are not in this model. EasyOCR's letter list for az has no capital Ğ: name tr as well to allow it.
  • text_threshold, low_text and link_threshold tune the text finder, min_confidence leaves out lines read with less confidence. At most 1,000 lines are read from a picture; if there are more the result says "truncated".
  • Fine-tuning teaches the reader alone: its data is a JSONL manifest plus crops of single lines of text, or one ZIP holding both: 8 to 5,000 lines, each {"file": ..., "text": ...} with the text of the crop, at most 200 characters, of letters, digits and symbols the model knows (no line breaks), and a crop 64 pixels high scaled to at most 800 wide has room for only so many characters: a crop too narrow for its text is refused, naming its line.
  • Uploaded one by one, the dataset is at most 1000 files and 4 GB in all, the manifests at most 64 MB, and each "file" is the URL or name the crop's upload returned (such as 0192f3c4-7e1a-7c2b-9d5e-1f2a3b4c5d6e.png), never the name it had on your computer; a ZIP of up to 5,000 crops is simpler.
  • As a ZIP, it is at most 4 GB and 10,000 entries without a password and holds exactly one .jsonl (or .ndjson) manifest; crop paths are relative to that manifest.
  • Training stops after 9 hours or 20,000 steps, whichever comes first, and keeps what it learned.

Attribution

Built on EasyOCR by JaidedAI (Apache-2.0). The text finder is CRAFT by Clova AI Research, NAVER Corp. (MIT).

EasyOCR inputs and output

NameTypeRequiredDefaultDetails
imagefileYes—A page, a photo of text or a crop of one line: JPEG, PNG or WebP, at most 20 MB and 40 megapixels.
Max 2048 characters · image/jpeg, png, webp
link_thresholdnumberNo0.4How close two words must be to join into one line; higher joins less.
0.1–0.9
low_textnumberNo0.4How far a region of text extends around its centre; higher gives tighter boxes.
0.05–0.9
text_thresholdnumberNo0.7How sure the finder must be that a region is text; higher finds less.
0.1–0.99
min_confidencenumberNo0.0Lines the recogniser reads with less confidence than this are left out.
0–1
languagestextNoenLanguage codes, comma-separated, at most 8, of Latin-script languages (en, de, tr, az, ...). The model only writes letters of these languages.
Max 100 characters

Output. JSON: {"lines": [{"text", "box", "score"}], "image_size": [width, height]}. The box is four [x, y] corners in pixels; the score is the confidence, 0 to 1.

Run EasyOCR with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=EASYOCR" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": "https://example.com/input.png",
    "languages": "en",
    "link_threshold": 0.4,
    "low_text": 0.4,
    "min_confidence": 0.0,
    "text_threshold": 0.7
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "EASYOCR",
        {
          "image": "https://example.com/input.png",
          "languages": "en",
          "link_threshold": 0.4,
          "low_text": 0.4,
          "min_confidence": 0.0,
          "text_threshold": 0.7
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune EasyOCR

You can fine-tune EasyOCR on your own data and run the tuned model through the same API. Dataset: A JSONL manifest plus crops of single lines of text, or one ZIP with both: one {"file", "text"} per line, 8 to 5,000 lines. More rules: Good to know, in the README.

The steps are in the docs.

EasyOCR pricing

Price per request: 0.0437 credits ($0.000437). The price is shown again before every run; all prices are on the pricing page.

Licence and source

PaddleOCR-VL 1.6: Vision & Analysis model on Kainguru
Vision & Analysis

PaddleOCR-VL 1.6

PaddleOCR-VL 1.6 reads documents in pictures in many languages: it writes out the text of a page, its tables…

Fine-tunable
Qwen3-VL 8B Instruct: Vision & Analysis model on Kainguru
Vision & Analysis

Qwen3-VL 8B Instruct

Qwen3-VL 8B Instruct answers questions about up to four pictures: it describes photos, reads printed and handwritten…

Fine-tunable
GLM-OCR: Vision & Analysis model on Kainguru
Vision & Analysis

GLM-OCR

GLM-OCR reads documents in pictures: it writes out the text of a page, tables as HTML and formulas as LaTeX, and can…

Fine-tunable
Granite Vision 3.3 2B: Vision & Analysis model on Kainguru
Vision & Analysis

Granite Vision 3.3 2B

IBM Granite Vision 3.3 2B reads documents in pictures: it answers questions about tables, charts, infographics, forms…

Fine-tunable
Florence-2 Large: Vision & Analysis model on Kainguru
Vision & Analysis

Florence-2 Large

One small vision model that captions images, reads text, boxes objects and finds things named by a phrase.

Fine-tunable
Deplot: Vision & Analysis model on Kainguru
Vision & Analysis

Deplot

DePlot from Google reads a chart or plot image and returns the data table drawn in it.