Image to Text OCR - Scanned PDF, HEIC, Screenshot + Translate avatar

Image to Text OCR - Scanned PDF, HEIC, Screenshot + Translate

Pricing

from $3.00 / 1,000 image ocr extracteds

Go to Apify Store
Image to Text OCR - Scanned PDF, HEIC, Screenshot + Translate

Image to Text OCR - Scanned PDF, HEIC, Screenshot + Translate

Convert image to text or screenshot to text. OCR PDF scans, photos and iPhone HEIC in 126 languages (text layer first), with optional offline translation into 29 languages. Get text, lines, word boxes, PDF tables and metadata. Batch (URLs, base64, datasets, CSV lists) or REST API. No Google Lens.

Pricing

from $3.00 / 1,000 image ocr extracteds

Rating

0.0

(0)

Developer

Hojun Lee

Hojun Lee

Maintained by Community

Actor stats

0

Bookmarked

146

Total users

31

Monthly active users

3 days ago

Last modified

Features

Limited permissionsSingle-tenantServer interface

Share

OCR Image to Text — OCR PDF and Screenshot to Text

Convert image to text or screenshot to text from public image URLs, and OCR PDF pages from PDF URLs. Reads PNG, JPG, WebP, TIFF, BMP, GIF, PDF and iPhone HEIC/HEIF photos. Tesseract (or RapidOCR) returns recognized text and confidence scores, and translateTo can also translate the text offline into 29 languages. No Google Lens and no third-party OCR or translation API: your files never leave the run.

Quick start

Use this small, public image containing printed English text:

{"urls":["https://jeroen.github.io/images/testocr.png"],"language":"eng","limit":1}

One dataset item from this input, with OCR text and confidence varying slightly by Tesseract version:

{"index":1,"url":"https://jeroen.github.io/images/testocr.png","ok":true,"text":"This is a lot of 12 point text to test the ocr code and see if it works on all types of file format. The quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox.","word_count":60,"char_count":284,"confidence_score":96.0,"auto_enhanced":false,"language":"eng","contains_numbers":true,"contains_emails":[],"contains_urls":[],"text_density":"medium","tables_detected":0,"tables":[],"total_pages":null,"pages":null,"error":null,"changed":null}

ok reports download and OCR success; text contains recognized words. word_count and char_count measure the recognized text. confidence_score is Tesseract's average word confidence; auto_enhanced shows whether a second preprocessing pass was used. error describes a failed item.

Limits

Unreachable, unsupported or oversized inputs produce error items (never charged) and the other inputs still run. Files over maxImageSizeMb (default 20 MB) get error: "file_too_large". OCR quality depends on resolution, orientation, and font; handwriting and complex layouts may be unreliable. PDF processing depends on page count and can take longer than a single image. Use limit to bound a batch.

Pricing

Pay-per-event:

EventPrice
Actor start (charged by Apify, one per GB of run memory)$0.001
Image/PDF successfully OCR-processed$0.002

The first 5 successful images per account are free (once, not per run); failed items are never charged. A PDF in documentUrls (or a PDF sent as base64) is charged per page: each page is one "Image/PDF successfully OCR-processed" event, whether it was OCR'd or read from the PDF's own text layer. Example: 50 images = 50 × $0.002 = $0.10 plus the start fee (after the free 5 are used up).

Use from AI agents (MCP)

Connect your agent to Apify's official MCP server with an Apify token. Select the Actor tool gochujang/image-ocr-extractor, pass the Quick start JSON as input, then retrieve its dataset items through the MCP server. No separate gateway is needed.


What does Image OCR Extractor do?

Image OCR Extractor is an image text extraction API that converts any image — screenshot, invoice, receipt, form, or photo — into structured text using Tesseract OCR. Submit one image or a batch of up to 50 (PNG, JPG, WebP, TIFF, BMP, GIF, HEIC/HEIF), and receive extracted text plus a per-image confidence score. No API key, no GPU, no setup required.

This actor runs the full extract text from images pipeline automatically: download, preprocess, Tesseract recognition, and structured JSON output. When confidence is low, it retries with threshold preprocessing to improve accuracy — so you get the best result without any manual tuning.


Why use Image OCR Extractor?

  1. Invoice and receipt digitization — Extract totals, line items, vendor names, and dates from receipt photos or scanned invoices to feed accounting workflows automatically.
  2. Screenshot text extraction — Turn UI screenshots, error messages, and social media screenshots into searchable, indexable text in seconds.
  3. Multilingual document processing — OCR in any of the 126 Tesseract tessdata_fast languages (Arabic, Russian, Hindi, Thai, Chinese Traditional and more), with combined-language mode such as eng+ara for bilingual documents. English, Chinese (Simplified), Japanese, Korean, German, French and Spanish are built in; other packs download on demand. PDF text layers are read in any language.
  4. Form and survey digitization — Process handwritten or typed paper forms from scanned documents without manual data entry.
  5. Batch data pipeline integration — OCR entire image archives and feed the output into LLMs, databases, or search indexes programmatically via the Apify API.

How to use Image OCR Extractor

  1. Open the actor on Apify Store and click Try for free.
  2. Paste one or more image URLs into the url or urls input field.
  3. Pick a language (default: empty = auto-detect; see Languages) and a preprocessing mode.
  4. Click Start — results arrive in seconds.
  5. Fetch structured JSON from the Apify dataset or connect via API for automation.

Input

ParameterTypeDefaultDescription
urlstring—Single image URL. Used when urls is empty.
urlsarray—Batch list of image URLs (up to 50 per run).
languagestringempty (auto-detect)Any of the 126 tessdata_fast codes in Languages, or a + combination such as eng+ara. Codes outside the 7 built-in packs download on demand.
ocrEnginestringtesseractOCR engine: tesseract (output unchanged) or rapidocr, a deep-learning engine that reads photos, screenshots, skewed scans and Chinese, Japanese, Korean better (see OCR engines). Same price.
translateTostringempty (no translation)Also translate the OCR text into this language, offline (see Translate). Adds translated_text; text stays as read. Same price.
preprocessingstringgrayscaleImage preprocessing: none, grayscale, or threshold (binarize).
pageSegModeinteger3Tesseract PSM: 3 = auto, 6 = block, 7 = line, 8 = word, 11 = sparse.
limitinteger50Max images to process per run (hard cap: 200).
layoutbooleanfalseAdd word, line, paragraph and block bounding boxes in pixels (see below). No extra charge.
outputDetailstringtextParagraphs and lines: text (output unchanged), lines (a lines array with boxes, confidence and words), paragraphs (a paragraphs array with boxes and confidence) or full (the blocks → paragraphs → lines → words tree). No extra charge.
imagesBase64array—Images (or PDFs) as base64 strings or data:image/png;base64,... URIs, for files that are not at a public URL. Rows are labelled base64:1, base64:2, ...
documentUrlsarray—PDF URLs, one row per page with page and source. Pages with a text layer are read directly (source: "text_layer", no OCR); scanned pages are OCR'd (source: "ocr").
maxPdfPagesinteger20Max pages read from each PDF in documentUrls / imagesBase64.
datasetIdstring—Read image or PDF URLs from an Apify dataset (for example a scraper's output). Detected by content: a PDF gives one row per page, as in documentUrls.
urlFieldstringurlDataset field holding the URL (string or list; dotted paths like media.src work).
maxImageSizeMbinteger20Skip larger files with file_too_large (checked on Content-Length and while downloading).
retriesinteger2Retries on 5xx, 408, 429 and timeouts. 404/403 are not retried.
includeMarkdownbooleanfalseAdd a markdown field: one paragraph per paragraph Tesseract found.
pdfTextModestringautoauto: read each PDF page's embedded text layer and OCR only pages whose layer is shorter than minTextLayerChars (much faster on digital PDFs). ocr: OCR every page. text: never OCR. Every PDF page reports page_text_source.
minTextLayerCharsinteger20In auto, a page with fewer visible text-layer characters than this (a bare page number, a footer) is OCR'd.
pdfDpiinteger200Render resolution for OCR'd PDF pages (72-400).
extractTablesbooleanfalseAdd pdf_tables: ruled tables found by pdfplumber on each PDF page, as rows of cells.
extractMetadatabooleanfalseAdd metadata: image width/height/format/EXIF orientation, or the PDF's page count and info dictionary (title, author, dates).
sourceListUrlsarray—URLs of CSV, TXT or JSON files that list image/PDF URLs; merged with urls. Same size cap as images.
sourceListUrlFieldstringurlCSV column or JSON field holding the URL (dotted paths work for JSON).
maxSourceListItemsinteger200Max URLs read from all source lists together.
requestTimeoutSecsinteger30Time limit per download attempt. A file that times out gives an uncharged request_timeout row; the run continues.

Features at a glance

FeatureInputNotes
iPhone photos (HEIC/HEIF)any image inputdecoded in the run, no conversion step
Offline translationtranslateTo: "en"31 source and 29 target languages, OPUS-MT models
PDF text layer first, OCR fallbackpdfTextMode: "auto" (default)page_text_source: text_layer | ocr on every PDF page
PDF tablesextractTables: truepdfplumber, rows of cell strings per page
File metadataextractMetadata: trueimage size/format/EXIF orientation, PDF info dict
URL lists from a filesourceListUrlsCSV / TXT / JSON
Per-download timeoutrequestTimeoutSecstimeouts are never charged
Word/line bounding boxeslayout: trueblocks > paragraphs > lines > words
Change detection + Telegram alertschangeDetection: true

Supported URL types: direct image links, Google Drive share links, and Dropbox share links are all automatically resolved — no manual conversion needed.


Languages

Set language to one code or a + combination (eng+ara, chi_tra+eng). Leave it empty and the Actor detects the script with Tesseract OSD and reports it in detected_language.

Built in (bold below): eng, chi_sim, jpn, kor, deu, fra, spa.

On demand: every other code is downloaded from tesseract-ocr/tessdata_fast (Apache-2.0) once per run, before any image is processed. Each pack is capped at 20 MB and most are 1–5 MB, so the download adds a few seconds. An unknown code or a failed download gives one error row (url = language:<code>, input_type = language) that is never charged. The run continues with the codes that worked; if none did, it falls back to auto-detection. No extra charge for any language.

afr Afrikaansamh Amharicara Arabicasm Assamese
aze Azerbaijaniaze_cyrl Azerbaijani (Cyrillic)bel Belarusianben Bengali
bod Tibetanbos Bosnianbre Bretonbul Bulgarian
cat Catalanceb Cebuanoces Czechchi_sim Chinese (Simplified)
chi_sim_vert Chinese (Simplified, vertical)chi_tra Chinese (Traditional)chi_tra_vert Chinese (Traditional, vertical)chr Cherokee
cos Corsicancym Welshdan Danishdeu German
deu_latf German (Fraktur)div Dhivehidzo Dzongkhaell Greek
eng Englishenm Middle Englishepo Esperantoequ Math / equations
est Estonianeus Basquefao Faroesefas Persian
fil Filipinofin Finnishfra Frenchfrk Frankish
frm Middle Frenchfry Western Frisiangla Scottish Gaelicgle Irish
glg Galiciangrc Ancient Greekguj Gujaratihat Haitian Creole
heb Hebrewhin Hindihrv Croatianhun Hungarian
hye Armenianiku Inuktitutind Indonesianisl Icelandic
ita Italianita_old Italian (Old)jav Javanesejpn Japanese
jpn_vert Japanese (vertical)kan Kannadakat Georgiankat_old Georgian (Old)
kaz Kazakhkhm Khmerkir Kyrgyzkmr Kurmanji (Kurdish)
kor Koreankor_vert Korean (vertical)lao Laolat Latin
lav Latvianlit Lithuanianltz Luxembourgishmal Malayalam
mar Marathimkd Macedonianmlt Maltesemon Mongolian
mri Maorimsa Malaymya Burmesenep Nepali
nld Dutchnor Norwegianoci Occitanori Odia
osd Orientation & script detectionpan Punjabipol Polishpor Portuguese
pus Pashtoque Quechuaron Romanianrus Russian
san Sanskritsin Sinhalaslk Slovakslv Slovenian
snd Sindhispa Spanishspa_old Spanish (Old)sqi Albanian
srp Serbiansrp_latn Serbian (Latin)sun Sundaneseswa Swahili
swe Swedishsyr Syriactam Tamiltat Tatar
tel Telugutgk Tajiktha Thaitir Tigrinya
ton Tongantur Turkishuig Uyghurukr Ukrainian
urd Urduuzb Uzbekuzb_cyrl Uzbek (Cyrillic)vie Vietnamese
yid Yiddishyor Yoruba

Output

Each processed image returns one JSON object:

{
"index": 1,
"url": "https://example.com/invoice.png",
"ok": true,
"text": "Invoice #2024-001\nBill To: Acme Corp\nTotal: $1,250.00",
"word_count": 9,
"confidence_score": 87.4,
"auto_enhanced": false,
"language": "eng",
"error": null
}

auto_enhanced: true means low confidence was detected on the first pass and the actor automatically re-ran OCR with threshold preprocessing. error is populated only when the image could not be processed at all.

Layout output (layout: true)

With layout: true each record also gets image_width, image_height and a blocks → paragraphs → lines → words tree. Every node has text, a bbox {x, y, w, h} in integer pixels of the image Tesseract read, and conf (0–100). The boxes come from the same OCR pass as the text, so layout adds no second OCR run and costs nothing extra (same per-image price).

{
"index": 1,
"url": "https://jeroen.github.io/images/testocr.png",
"ok": true,
"text": "This is a lot of 12 point text to test the\n...",
"language": "eng",
"detected_language": "eng",
"image_width": 640,
"image_height": 480,
"blocks": [
{
"text": "This is a lot of 12 point text to test the\n...",
"bbox": {"x": 36, "y": 92, "w": 582, "h": 92},
"conf": 95.1,
"paragraphs": [
{
"text": "This is a lot of 12 point text to test the\n...",
"bbox": {"x": 36, "y": 92, "w": 582, "h": 92},
"conf": 95.1,
"lines": [
{
"text": "This is a lot of 12 point text to test the",
"bbox": {"x": 36, "y": 92, "w": 582, "h": 24},
"conf": 95.8,
"words": [
{"text": "This", "bbox": {"x": 36, "y": 92, "w": 60, "h": 24}, "conf": 96.2},
{"text": "is", "bbox": {"x": 109, "y": 92, "w": 20, "h": 24}, "conf": 96.6}
]
}
]
}
]
}
]
}

(Values above are illustrative; the shape is exact.) For PDFs each entry in pages carries its own image_width, image_height and blocks, and the record-level blocks lists all pages' blocks, each tagged with page_number. Words below minConfidence are left out of the tree.

Paragraphs and lines (outputDetail)

outputDetail: "lines" adds a flat lines array and outputDetail: "paragraphs" a flat paragraphs array, in reading order, plus image_width / image_height. outputDetail: "full" adds the full blocks tree shown above. Every item has text, bbox and conf; each line also lists its words. On PDF records each item carries page_number. The default text leaves the output unchanged.

{"lines": [
{"text": "This is a lot of 12 point text to test the", "bbox": {"x": 36, "y": 92, "w": 582, "h": 24}, "conf": 95.8,
"words": [{"text": "This", "bbox": {"x": 36, "y": 92, "w": 60, "h": 24}, "conf": 96.2}]}
]}

OCR engines

ocrEngine picks the engine. Both run on the CPU inside the Apify run and cost the same.

tesseract (default)rapidocr
EngineTesseract (LSTM, tessdata_fast)RapidOCR 3.10: PaddleOCR PP-OCRv6 detection + recognition on ONNX Runtime
Best forClean scans, printed documents, PDFs, the 126 languagesPhone photos, screenshots and dark mode, skewed or noisy scans, Chinese, Japanese, Korean
Languages126 (see Languages)English, Chinese (chi_sim, chi_tra), Japanese, Korean and about 45 Latin-script languages (deu, fra, spa, ita, por, nld, pol, tur, vie ...). Any other language is read with Tesseract and the record says so in ocr_engine_warning.
Speed per image (1 GB run)about 0.3 sabout 3-5 s (the first image also loads the models)
Peak memoryunder 170 MBabout 610 MB with its model worker process, within the 1 GB minimum
pageSegModeusedignored (the detector finds the text lines itself)

Character accuracy on the five sample images in tests/bench (a phone photo, a dark-mode screenshot, a skewed noisy scan, a Korean and a Japanese menu card), measured locally with Tesseract 4.1.1:

Sampletesseractrapidocr
Photo96.1%100%
Screenshot43.0%100%
Skewed scan50.8%100%
Korean29.3%100%
Japanese95.6%100%

With rapidocr the output keeps the same fields: text, confidence_score (the recognizer's score x 100), layout, outputDetail lines and paragraphs with pixel boxes, and markdown. Lines come from the text detector; nearby lines with similar height are grouped into paragraphs. Chinese and Japanese lines are one word each, since those scripts have no spaces. RapidOCR runs in a separate worker process that is stopped when the run budget runs out, so a slow image never holds the run past its timeout. Each record adds ocr_engine (the engine that read it, null when no page needed OCR) and ocr_engine_warning.

Licences: RapidOCR code and the PP-OCR models (PP-OCRv6 small det/rec, the v2.0 angle classifier, the PP-OCRv5 Korean recognizer) are Apache-2.0. Model weights copyright Baidu and/or the PaddleOCR rights holders, converted to ONNX by RapidOCR.

Translate (translateTo)

Set translateTo to a language code and every successful record also carries the text translated into that language. Translation runs offline inside the run on OPUS-MT models packaged by Argos Translate (CTranslate2 on CPU). No translation API is called.

{"urls": ["https://example.com/menu.heic"], "language": "fra", "translateTo": "en"}
FieldDescription
translated_textThe OCR text in the target language, line by line (line breaks kept; lines with no letters, such as prices and dates, are copied as they are). null when translation failed.
translation_languageThe target language code.
translation_source_languageThe source, taken from the OCR language (fra → fr).
translation_warningnull on success, otherwise why there is no translation. The record is still delivered with its original text and billed as usual.
  • Targets (29): English (en), Albanian sq, Bengali bn, Bulgarian bg, Catalan ca, Chinese zh / zt (traditional), Czech cs, Danish da, Dutch nl, Finnish fi, French fr, Greek el, Hungarian hu, Indonesian id, Latvian lv, Lithuanian lt, Malay ms, Norwegian nb, Polish pl, Portuguese pt / pb (Brazil), Romanian ro, Slovak sk, Slovenian sl, Tagalog tl, Thai th, Urdu ur, Vietnamese vi.
  • Sources (31): the same languages plus Spanish (spa) and Ukrainian (ukr). A pair with no direct model goes through English (for example French → Polish).
  • Not available yet: German, Italian, Japanese, Korean, Russian, Spanish as a target, and a few others. Their Argos packages state no licence of their own, or list research-only training data, so we do not use them. A request for one returns translation_warning: "translation_unsupported: ...".
  • First use: each model (about 60-300 MB) is downloaded once per run, which adds a few seconds to the first record. In Standby mode it stays loaded for later requests. After that, a line of text translates in tens of milliseconds.
  • Failures: if a model cannot be downloaded or loaded, or the run budget is spent, the record keeps its text, translated_text is null and translation_warning starts with translation_failed or translation_skipped.

Licences: the OPUS-MT models are CC-BY 4.0. Each package we use says "The original OPUS model from which this packaged model is derived is licensed CC-BY 4.0" (credit: Jörg Tiedemann and Santhosh Thottingal, "OPUS-MT — Building open translation services for the World", EAMT 2020). Argos Translate is MIT/CC0.

Speed

Warm per-image latency over the 20 fixture images in tests/bench/latency (receipts, app screenshots, A4 scans, phone photos, 3 of them HEIC), 3 rounds = 60 samples, measured with tests/bench/latency_357.py. The models are loaded first, as the Standby API does at start. Time covers decoding, OCR and layout.

ocrEngine: "rapidocr", warmp50p95ReceiptScreenshotA4 scan (30 lines)
1 thread (CPU share of a 4 GB run)2.5 s8.7 s1.7 s2.3 s7.0 s
2 threads (8 GB run)1.6 s4.6 s1.0 s1.5 s4.0 s

Measured on 2026-11-19 on an Intel Core i7-14700 (local machine, not an Apify run; Apify CPUs may be slower). Time grows with the number of text lines. Raw numbers: tests/bench/latency_results_357.json. Tesseract was not part of this measurement; it takes about 0.3 s per image on the five engine samples above.

REST API mode (Standby)

The Actor also runs as a synchronous HTTP API through Apify Standby. Send one image, get its JSON record back in the response, with no run to start and no dataset to read. Batch runs work exactly as before.

RouteWhat it does
GET /Health check
GET /ocr?url=<image or PDF URL>&lang=eng&outputDetail=linesOCR one file by URL
POST /ocr with JSON {"base64": "...", "lang": "eng", "outputDetail": "paragraphs"}OCR one file sent as base64 (or {"url": "..."})

Optional parameters: lang (any language code; empty = auto-detect), ocrEngine, translateTo, outputDetail, outputFormat, preprocessing, pageSegMode, minConfidence and pdfTextMode. The response is the same record a batch run writes for one urls or imagesBase64 item.

curl "https://gochujang--image-ocr-extractor.apify.actor/ocr?url=https://jeroen.github.io/images/testocr.png&lang=eng&outputDetail=lines" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>"
curl -X POST "https://gochujang--image-ocr-extractor.apify.actor/ocr" \
-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
-d "{\"base64\": \"$(base64 -w0 scan.png)\", \"outputDetail\": \"paragraphs\"}"

Each successful request is charged the same events as a one-item batch run: the start fee plus one "Image/PDF successfully OCR-processed" event, after the free 5 are used. Errors return a 4xx JSON body such as {"ok": false, "error": "invalid_base64"} and are never charged: missing_input, invalid_url, download_failed (422), file_too_large (413), unsupported_format (415), unknown_language and invalid_parameter (400).

With 2 GB of memory or more, Standby loads the RapidOCR models when it starts, so the first ocrEngine=rapidocr request does not wait for them.

OCR runs on self-hosted Tesseract (or RapidOCR) inside the Apify run. No Google or other third-party OCR API is called, and your files never leave the run.


Data fields

FieldTypeDescription
indexintegerPosition in the input list (1-based)
urlstringSource image URL
okbooleanWhether OCR succeeded
textstringExtracted text (newline-separated)
word_countintegerNumber of words extracted
confidence_scorefloatTesseract average confidence score (0–100)
auto_enhancedbooleanWhether automatic threshold preprocessing was applied
languagestringLanguage code used
detected_languagestring or nullLanguage picked by Tesseract script detection (OSD) when language is empty; null when you set a language and detection did not run
ocr_enginestring or nullOnly with ocrEngine: "rapidocr": the engine that read the record (rapidocr, or tesseract after a fallback); null when no page needed OCR
ocr_engine_warningstring or nullOnly with ocrEngine: "rapidocr": why the record was read with Tesseract instead (a language the RapidOCR models do not cover)
image_width, image_height, blocksinteger, arrayOnly with layout: true; see "Layout output"
errorstring or nullError message if OCR failed (file_too_large, invalid_base64, unsupported_format, Download failed, ...)
input_typestringOnly for imagesBase64 (base64), documentUrls (document) and datasetId (dataset) rows
page, source, total_pagesinteger, string, integerPDF page rows: page number, text_layer or ocr, and the PDF's page count
page_text_sourcestringEvery PDF page (page rows and entries of pages): text_layer (read from the PDF) or ocr
pdf_tablesarrayOnly with extractTables: true
metadataobjectOnly with extractMetadata: true
markdownstringOnly with includeMarkdown: true
translated_text, translation_language, translation_source_language, translation_warningstring or nullOnly with translateTo; see Translate

Confidence score guide:

RangeMeaning
85–100High quality, likely accurate
60–84Moderate — review critical fields
< 60Low — actor automatically retries with threshold preprocessing

FAQ

Does the OCR API support handwriting? Tesseract performs best on printed text. Handwriting recognition is possible but accuracy varies. Use preprocessing: threshold and pageSegMode: 6 for best results on handwritten forms.

Can I OCR iPhone photos (HEIC)? Yes. HEIC and HEIF files work as URLs, base64 and dataset items, with no conversion to JPG first. They are decoded inside the run with libheif (pi-heif).

Can it translate the text? Yes, set translateTo (for example "en"). Translation is offline, on OPUS-MT models; see Translate for the languages.

Can I extract text from images with dark backgrounds or colored overlays? Yes. Use preprocessing: grayscale (the default) for colored or photographic backgrounds. For text printed on a white background, threshold gives sharper binarized results.

How accurate is image text extraction? For clean, high-resolution images with standard fonts, confidence scores typically land in the 85–95 range. Low-quality photos or stylized fonts may score lower, but the automatic enhancement retry improves results without manual effort.

Disclaimer: OCR accuracy depends on image quality, resolution, and font type. This actor is not intended for medical, legal, or financial document processing where 100% accuracy is required. Always verify extracted text for critical use cases.


Works Great With

Build a complete document processing pipeline with these actors from the same author:

  • PDF Text & Table Extractor — Extract text from PDF documents in the same pipeline. When your input is a mix of image files and PDFs, run both actors together — images go to OCR Extractor, PDFs go to the PDF actor — and merge results in a single dataset.
  • DOCX Text Extractor — For Word documents. Complete the trifecta: images (this actor), PDFs, and Word docs can all be normalized to plain text in one automated pipeline.
  • Excel & CSV Extractor — For spreadsheets. Digitize entire document archives — scan OCR images, extract PDFs, parse Excel files — and feed all output into the same downstream database or LLM.

Run it on a schedule / from your pipeline

1. Apify Schedule. Apify Console → Schedules → + New schedule, pick Image OCR Extractor, set a cron such as 0 6 * * 1-5 (weekdays 06:00 UTC) and paste this input:

{
"urls": [
"https://example.com/scans/receipt-001.png",
"https://example.com/scans/receipt-002.jpg"
],
"language": "eng",
"preprocessing": "grayscale",
"outputFormat": "json"
}

2. API call from your pipeline. Run the actor and get the dataset items back in a single request:

curl -X POST "https://api.apify.com/v2/acts/gochujang~image-ocr-extractor/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d @input.json

input.json holds the same JSON as above. Synchronous runs wait up to 300 seconds; for bigger batches call POST /v2/acts/gochujang~image-ocr-extractor/runs and read the dataset when the run finishes.

3. Webhooks. For new-file triggers, have your storage or automation tool (S3 event, Zapier, Make, n8n) call the API above whenever a file arrives, and add an Apify webhook on ACTOR.RUN.SUCCEEDED (Actor → Integrations) to push the results to your system as soon as the run finishes.


Feedback

Leave a review on Apify Store


Keywords: image OCR, Tesseract OCR, PDF to text, screenshot OCR, receipt digitizer, document scanner, image text extraction, XLSX OCR, table extraction, multi-language OCR, PNG to text, JPG OCR, document automation