Image to Text OCR - Scanned PDF, HEIC, Screenshot + Translate
Pricing
from $3.00 / 1,000 image ocr extracteds
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
Maintained by CommunityActor stats
0
Bookmarked
146
Total users
31
Monthly active users
3 days ago
Last modified
Categories
Features
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:
| Event | Price |
|---|---|
| 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?
- Invoice and receipt digitization — Extract totals, line items, vendor names, and dates from receipt photos or scanned invoices to feed accounting workflows automatically.
- Screenshot text extraction — Turn UI screenshots, error messages, and social media screenshots into searchable, indexable text in seconds.
- 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+arafor 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. - Form and survey digitization — Process handwritten or typed paper forms from scanned documents without manual data entry.
- 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
- Open the actor on Apify Store and click Try for free.
- Paste one or more image URLs into the
urlorurlsinput field. - Pick a language (default: empty = auto-detect; see Languages) and a preprocessing mode.
- Click Start — results arrive in seconds.
- Fetch structured JSON from the Apify dataset or connect via API for automation.
Input
| Parameter | Type | Default | Description |
|---|---|---|---|
url | string | — | Single image URL. Used when urls is empty. |
urls | array | — | Batch list of image URLs (up to 50 per run). |
language | string | empty (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. |
ocrEngine | string | tesseract | OCR 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. |
translateTo | string | empty (no translation) | Also translate the OCR text into this language, offline (see Translate). Adds translated_text; text stays as read. Same price. |
preprocessing | string | grayscale | Image preprocessing: none, grayscale, or threshold (binarize). |
pageSegMode | integer | 3 | Tesseract PSM: 3 = auto, 6 = block, 7 = line, 8 = word, 11 = sparse. |
limit | integer | 50 | Max images to process per run (hard cap: 200). |
layout | boolean | false | Add word, line, paragraph and block bounding boxes in pixels (see below). No extra charge. |
outputDetail | string | text | Paragraphs 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. |
imagesBase64 | array | — | 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, ... |
documentUrls | array | — | 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"). |
maxPdfPages | integer | 20 | Max pages read from each PDF in documentUrls / imagesBase64. |
datasetId | string | — | 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. |
urlField | string | url | Dataset field holding the URL (string or list; dotted paths like media.src work). |
maxImageSizeMb | integer | 20 | Skip larger files with file_too_large (checked on Content-Length and while downloading). |
retries | integer | 2 | Retries on 5xx, 408, 429 and timeouts. 404/403 are not retried. |
includeMarkdown | boolean | false | Add a markdown field: one paragraph per paragraph Tesseract found. |
pdfTextMode | string | auto | auto: 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. |
minTextLayerChars | integer | 20 | In auto, a page with fewer visible text-layer characters than this (a bare page number, a footer) is OCR'd. |
pdfDpi | integer | 200 | Render resolution for OCR'd PDF pages (72-400). |
extractTables | boolean | false | Add pdf_tables: ruled tables found by pdfplumber on each PDF page, as rows of cells. |
extractMetadata | boolean | false | Add metadata: image width/height/format/EXIF orientation, or the PDF's page count and info dictionary (title, author, dates). |
sourceListUrls | array | — | URLs of CSV, TXT or JSON files that list image/PDF URLs; merged with urls. Same size cap as images. |
sourceListUrlField | string | url | CSV column or JSON field holding the URL (dotted paths work for JSON). |
maxSourceListItems | integer | 200 | Max URLs read from all source lists together. |
requestTimeoutSecs | integer | 30 | Time limit per download attempt. A file that times out gives an uncharged request_timeout row; the run continues. |
Features at a glance
| Feature | Input | Notes |
|---|---|---|
| iPhone photos (HEIC/HEIF) | any image input | decoded in the run, no conversion step |
| Offline translation | translateTo: "en" | 31 source and 29 target languages, OPUS-MT models |
| PDF text layer first, OCR fallback | pdfTextMode: "auto" (default) | page_text_source: text_layer | ocr on every PDF page |
| PDF tables | extractTables: true | pdfplumber, rows of cell strings per page |
| File metadata | extractMetadata: true | image size/format/EXIF orientation, PDF info dict |
| URL lists from a file | sourceListUrls | CSV / TXT / JSON |
| Per-download timeout | requestTimeoutSecs | timeouts are never charged |
| Word/line bounding boxes | layout: true | blocks > paragraphs > lines > words |
| Change detection + Telegram alerts | changeDetection: 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 Afrikaans | amh Amharic | ara Arabic | asm Assamese |
aze Azerbaijani | aze_cyrl Azerbaijani (Cyrillic) | bel Belarusian | ben Bengali |
bod Tibetan | bos Bosnian | bre Breton | bul Bulgarian |
cat Catalan | ceb Cebuano | ces Czech | chi_sim Chinese (Simplified) |
chi_sim_vert Chinese (Simplified, vertical) | chi_tra Chinese (Traditional) | chi_tra_vert Chinese (Traditional, vertical) | chr Cherokee |
cos Corsican | cym Welsh | dan Danish | deu German |
deu_latf German (Fraktur) | div Dhivehi | dzo Dzongkha | ell Greek |
eng English | enm Middle English | epo Esperanto | equ Math / equations |
est Estonian | eus Basque | fao Faroese | fas Persian |
fil Filipino | fin Finnish | fra French | frk Frankish |
frm Middle French | fry Western Frisian | gla Scottish Gaelic | gle Irish |
glg Galician | grc Ancient Greek | guj Gujarati | hat Haitian Creole |
heb Hebrew | hin Hindi | hrv Croatian | hun Hungarian |
hye Armenian | iku Inuktitut | ind Indonesian | isl Icelandic |
ita Italian | ita_old Italian (Old) | jav Javanese | jpn Japanese |
jpn_vert Japanese (vertical) | kan Kannada | kat Georgian | kat_old Georgian (Old) |
kaz Kazakh | khm Khmer | kir Kyrgyz | kmr Kurmanji (Kurdish) |
kor Korean | kor_vert Korean (vertical) | lao Lao | lat Latin |
lav Latvian | lit Lithuanian | ltz Luxembourgish | mal Malayalam |
mar Marathi | mkd Macedonian | mlt Maltese | mon Mongolian |
mri Maori | msa Malay | mya Burmese | nep Nepali |
nld Dutch | nor Norwegian | oci Occitan | ori Odia |
osd Orientation & script detection | pan Punjabi | pol Polish | por Portuguese |
pus Pashto | que Quechua | ron Romanian | rus Russian |
san Sanskrit | sin Sinhala | slk Slovak | slv Slovenian |
snd Sindhi | spa Spanish | spa_old Spanish (Old) | sqi Albanian |
srp Serbian | srp_latn Serbian (Latin) | sun Sundanese | swa Swahili |
swe Swedish | syr Syriac | tam Tamil | tat Tatar |
tel Telugu | tgk Tajik | tha Thai | tir Tigrinya |
ton Tongan | tur Turkish | uig Uyghur | ukr Ukrainian |
urd Urdu | uzb Uzbek | uzb_cyrl Uzbek (Cyrillic) | vie Vietnamese |
yid Yiddish | yor 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 | |
|---|---|---|
| Engine | Tesseract (LSTM, tessdata_fast) | RapidOCR 3.10: PaddleOCR PP-OCRv6 detection + recognition on ONNX Runtime |
| Best for | Clean scans, printed documents, PDFs, the 126 languages | Phone photos, screenshots and dark mode, skewed or noisy scans, Chinese, Japanese, Korean |
| Languages | 126 (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 s | about 3-5 s (the first image also loads the models) |
| Peak memory | under 170 MB | about 610 MB with its model worker process, within the 1 GB minimum |
pageSegMode | used | ignored (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:
| Sample | tesseract | rapidocr |
|---|---|---|
| Photo | 96.1% | 100% |
| Screenshot | 43.0% | 100% |
| Skewed scan | 50.8% | 100% |
| Korean | 29.3% | 100% |
| Japanese | 95.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"}
| Field | Description |
|---|---|
translated_text | The 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_language | The target language code. |
translation_source_language | The source, taken from the OCR language (fra → fr). |
translation_warning | null 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), Albaniansq, Bengalibn, Bulgarianbg, Catalanca, Chinesezh/zt(traditional), Czechcs, Danishda, Dutchnl, Finnishfi, Frenchfr, Greekel, Hungarianhu, Indonesianid, Latvianlv, Lithuanianlt, Malayms, Norwegiannb, Polishpl, Portuguesept/pb(Brazil), Romanianro, Slovaksk, Sloveniansl, Tagalogtl, Thaith, Urduur, Vietnamesevi. - 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_textisnullandtranslation_warningstarts withtranslation_failedortranslation_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", warm | p50 | p95 | Receipt | Screenshot | A4 scan (30 lines) |
|---|---|---|---|---|---|
| 1 thread (CPU share of a 4 GB run) | 2.5 s | 8.7 s | 1.7 s | 2.3 s | 7.0 s |
| 2 threads (8 GB run) | 1.6 s | 4.6 s | 1.0 s | 1.5 s | 4.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.
| Route | What it does |
|---|---|
GET / | Health check |
GET /ocr?url=<image or PDF URL>&lang=eng&outputDetail=lines | OCR 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
| Field | Type | Description |
|---|---|---|
index | integer | Position in the input list (1-based) |
url | string | Source image URL |
ok | boolean | Whether OCR succeeded |
text | string | Extracted text (newline-separated) |
word_count | integer | Number of words extracted |
confidence_score | float | Tesseract average confidence score (0–100) |
auto_enhanced | boolean | Whether automatic threshold preprocessing was applied |
language | string | Language code used |
detected_language | string or null | Language picked by Tesseract script detection (OSD) when language is empty; null when you set a language and detection did not run |
ocr_engine | string or null | Only with ocrEngine: "rapidocr": the engine that read the record (rapidocr, or tesseract after a fallback); null when no page needed OCR |
ocr_engine_warning | string or null | Only with ocrEngine: "rapidocr": why the record was read with Tesseract instead (a language the RapidOCR models do not cover) |
image_width, image_height, blocks | integer, array | Only with layout: true; see "Layout output" |
error | string or null | Error message if OCR failed (file_too_large, invalid_base64, unsupported_format, Download failed, ...) |
input_type | string | Only for imagesBase64 (base64), documentUrls (document) and datasetId (dataset) rows |
page, source, total_pages | integer, string, integer | PDF page rows: page number, text_layer or ocr, and the PDF's page count |
page_text_source | string | Every PDF page (page rows and entries of pages): text_layer (read from the PDF) or ocr |
pdf_tables | array | Only with extractTables: true |
metadata | object | Only with extractMetadata: true |
markdown | string | Only with includeMarkdown: true |
translated_text, translation_language, translation_source_language, translation_warning | string or null | Only with translateTo; see Translate |
Confidence score guide:
| Range | Meaning |
|---|---|
| 85–100 | High quality, likely accurate |
| 60–84 | Moderate — review critical fields |
| < 60 | Low — 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.
Related actors
- PDF Text & Table Extractor — PDF version with table detection, password-protected PDFs, batch processing
- DOCX Text Extractor — Word document extraction, same URL/Drive/Dropbox pattern
- Excel & CSV Extractor — .xlsx/.xls/.csv to JSON, full row/column structure
- Web Page to Markdown Converter — HTML text extraction
Feedback
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