zsxkib/easyocr โœ“๐Ÿ–ผ๏ธโ“๐Ÿ”ข๐Ÿ“ โ†’ โ“

โ–ถ๏ธ 96 runs ๐Ÿ“… Aug 2025 โš™๏ธ Cog 0.16.6 ๐Ÿ”— GitHub โš–๏ธ License
image-to-text multi-language ocr

About

Extract text with pixel coordinates from screenshots and images. GPU-accelerated, multi-language, perfect for camera-translation overlays.

Example Output

Output

{"markdown":"https://replicate.delivery/czjl/PXqJcseObZwVLKYGFpdRQMaNJCvMSxYieVzA93ybcdG4cMUVA/extracted_text.md","metadata":"{
"total_regions": 32,
"avg_confidence": 0.784,
"languages_used": [
"en",
"es",
"fr",
"de",
"it",
"pt"
],
"preprocessing_applied": true,
"include_bboxes": true,
"include_polygons": false,
"text_only": false,
"regions": [
{
"text": "THE VELVETEEN RABBIT",
"confidence": 0.941207916859868,
"x1": 118,
"y1": 74,
"x2": 488,
"y2": 102
},
{
"text": "He said.",
"confidence": 0.7658251676977529,
"x1": 131,
"y1": 197,
"x2": 251,
"y2": 239
},
{
"text": "You become. It takes",
"confidence": 0.7883424670279005,
"x1": 269,
"y1": 203,
"x2": 543,
"y2": 241
},
{
"text": "long",
"confidence": 0.7812356352806091,
"x1": 75,
"y1": 249,
"x2": 146,
"y2": 290
},
{
"text": "why it doesn't",
"confidence": 0.38521186102773824,
"x1": 333,
"y1": 251,
"x2": 531,
"y2": 289
},
{
"text": "time. That's",
"confidence": 0.6730042060276471,
"x1": 152,
"y1": 252,
"x2": 316,
"y2": 282
},
{
"text": "people",
"confidence": 0.9955617879578947,
"x1": 289,
"y1": 295,
"x2": 386,
"y2": 335
},
{
"text": "happen",
"confidence": 0.9993757047327592,
"x1": 47,
"y1": 296,
"x2": 150,
"y2": 338
},
{
"text": "often",
"confidence": 0.772564666974295,
"x1": 164,
"y1": 298,
"x2": 234,
"y2": 326
},
{
"text": "who break",
"confidence": 0.629609943501952,
"x1": 400,
"y1": 298,
"x2": 540,
"y2": 326
},
{
"text": "to",
"confidence": 0.37716394113709656,
"x1": 252,
"y1": 302,
"x2": 282,
"y2": 326
},
{
"text": "sharp",
"confidence": 0.9996923307743775,
"x1": 258,
"y1": 336,
"x2": 341,
"y2": 380
},
{
"text": "edges, or who",
"confidence": 0.7325436050686942,
"x1": 351,
"y1": 341,
"x2": 545,
"y2": 379
},
{
"text": "have",
"confidence": 0.9997755289077759,
"x1": 192,
"y1": 342,
"x2": 254,
"y2": 370
},
{
"text": "easily ,",
"confidence": 0.6715316349667982,
"x1": 50,
"y1": 344,
"x2": 134,
"y2": 374
},
{
"text": "Or",
"confidence": 0.4463264925231668,
"x1": 145,
"y1": 349,
"x2": 175,
"y2": 369
},
{
"text": "have to be carefully kept. Generally .",
"confidence": 0.7391639776857277,
"x1": 51,
"y1": 383,
"x2": 537,
"y2": 426
},
{
"text": "by",
"confidence": 0.9991005361917881,
"x1": 51,
"y1": 431,
"x2": 89,
"y2": 467
},
{
"text": "the time you",
"confidence": 0.8616745014257666,
"x1": 102,
"y1": 432,
"x2": 276,
"y2": 464
},
{
"text": "are Real",
"confidence": 0.7679742784308076,
"x1": 292,
"y1": 432,
"x2": 408,
"y2": 460
},
{
"text": "most of",
"confidence": 0.9737547651908516,
"x1": 432,
"y1": 432,
"x2": 538,
"y2": 460
},
{
"text": "your hair has been loved off, and your",
"confidence": 0.6486574274397897,
"x1": 49,
"y1": 477,
"x2": 553,
"y2": 513
},
{
"text": "eyes drop out and you get loose in",
"confidence": 0.7268066846906024,
"x1": 49,
"y1": 521,
"x2": 533,
"y2": 560
},
{
"text": "the joints and very shabby.",
"confidence": 0.7802346592882778,
"x1": 49,
"y1": 561,
"x2": 406,
"y2": 606
},
{
"text": "But these",
"confidence": 0.6352238534799304,
"x1": 418,
"y1": 568,
"x2": 548,
"y2": 596
},
{
"text": "things",
"confidence": 0.9995374935659934,
"x1": 45,
"y1": 609,
"x2": 136,
"y2": 653
},
{
"text": "don",
"confidence": 0.9999971093289124,
"x1": 131,
"y1": 609,
"x2": 188,
"y2": 645
},
{
"text": "[ matter at all, because once",
"confidence": 0.628246525255973,
"x1": 192,
"y1": 614,
"x2": 558,
"y2": 642
},
{
"text": "are Real you can't be ugly, except",
"confidence": 0.5269925409121868,
"x1": 107,
"y1": 657,
"x2": 553,
"y2": 695
},
{
"text": "you",
"confidence": 0.9964000559966266,
"x1": 48,
"y1": 664,
"x2": 98,
"y2": 692
},
{
"text": "to people who don't understand.",
"confidence": 0.8450373171637284,
"x1": 49,
"y1": 701,
"x2": 483,
"y2": 741
},
{
"text": "48",
"confidence": 0.9999988198884456,
"x1": 280,
"y1": 790,
"x2": 322,
"y2": 820
}
]
}"}

Performance Metrics

1.46s Prediction Time
1.48s Total Time
All Input Parameters
{
  "image": "https://replicate.delivery/pbxt/NhBf4jJCYYl3TZYzGoWMweuFdz5rfsFug7a5m99CCpsNlkqU/rab.webp",
  "languages": "",
  "text_only": false,
  "preprocessing": true,
  "include_bboxes": true,
  "min_confidence": 0.25,
  "include_polygons": false
}
Input Parameters
clahe Type: booleanDefault: true
Apply mild CLAHE contrast enhancement
image (required) Type: string
Screenshot or image file
deskew Type: booleanDefault: true
Deskew small angles
sharpen Type: booleanDefault: true
Apply mild unsharp mask to preserve small punctuation
autotune Type: booleanDefault: true
Try a few parameter combos and pick best
binarize Default: none
Binarization mode (for scans)
morph_op Default: none
Morphology op after binarize
languages Default: auto
Languages preset or custom list
text_only Type: booleanDefault: false
Return only text lines (list of strings)
beam_width Type: integerDefault: 7Range: 1 - 15
Beam width (when decoder=beamsearch)
dehyphenate Type: booleanDefault: true
Join hyphenated words across lines
merge_level Default: auto
Text merging strength
ocr_decoder Default: beamsearch
Text decoder
morph_kernel Type: integerDefault: 0Range: 0 - 15
Morph kernel size
trim_borders Type: booleanDefault: true
Trim outer borders
preprocessing Type: booleanDefault: true
Apply preprocessing (recommended)
allow_brackets Type: booleanDefault: false
Permit brackets []{}<>
include_bboxes Type: booleanDefault: true
Include x1,y1,x2,y2 in output
min_confidence Type: numberDefault: 0.4Range: 0 - 1
Minimum confidence (0.0-1.0)
invert_strategy Default: auto
Ensure dark text on light background
upscale_min_dim Type: integerDefault: 900Range: 0 - 4000
Upscale small images so the shorter side reaches this size (px)
custom_languages Type: stringDefault:
Custom language codes (comma-separated) โ€” used when languages=custom
denoise_strength Type: integerDefault: 0Range: 0 - 15
Denoising strength (0=off, 1-15)
include_polygons Type: booleanDefault: false
Include 4-point polygon as flat list
normalize_quotes Type: booleanDefault: true
Normalize common quotation marks and dashes
allow_basic_punct Type: booleanDefault: true
Restrict to common punctuation to avoid odd symbols
block_rare_symbols Type: booleanDefault: true
Block uncommon symbols ($ยงโ€ขโ—Š etc.)
remove_page_numbers Type: booleanDefault: true
Remove likely page numbers near bottom
remove_shadow_strength Type: integerDefault: 0Range: 0 - 20
Uneven lighting removal (0=off)
Output Schema
Version Details
Version ID
dd57bc29a831856d26d8a1b5a984d3dda62f85224e70a609f14fc04fd306e47e
Version Created
September 16, 2025
Run on Replicate โ†’