Image to Text OCR — lines, positions, 8 languages avatar

Image to Text OCR — lines, positions, 8 languages

Pricing

from $1.60 / 1,000 image reads

Go to Apify Store
Image to Text OCR — lines, positions, 8 languages

Image to Text OCR — lines, positions, 8 languages

Extract text from images (PNG, JPEG, WebP, GIF, BMP, multi-page TIFF) with an own OCR engine — no Google Lens. Returns plain text, paragraphs, and each line with its position and confidence. Small screenshots are upscaled automatically.

Pricing

from $1.60 / 1,000 image reads

Rating

0.0

(0)

Developer

DocFlow Tools

DocFlow Tools

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Extract text from images (PNG, JPEG, WebP, GIF, BMP and multi-page TIFF) with an own OCR engine (Tesseract) running inside the Actor. No Google Lens or other third-party OCR service is called. You get the plain text in reading order with paragraphs, and optionally every line with its position and confidence. Small screenshots are upscaled automatically before reading. Images are read in memory and never stored.

What you get

One dataset item per image URL:

FieldDescription
urlThe image URL you gave
statusok, or error with the reason in error
pagesNumber of pages read (more than 1 only for multi-page TIFF)
width, heightSize of the (first) image in pixels
textPlain text in reading order; paragraphs separated by a blank line
markdownThe same text; the pages of a multi-page TIFF are separated by ---
linesOptional (includeLines, on by default): [{page, text, confidence, bbox}], confidence 0-100, bbox [x0, y0, x1, y1] in pixels of the original image
meanConfidenceAverage confidence of the kept lines (0-100), or null if no text was found. Useful to spot bad scans

How an image is read

  1. The image is opened (all pages for TIFF), rotated according to its EXIF orientation, converted to grayscale and auto-contrasted.
  2. If its longest side is under 1,200 px (typical screenshots, small photos), it is enlarged 2x before OCR. Images over 40 megapixels are reduced first.
  3. Tesseract reads it in the languages you choose. Words are grouped into lines; each line gets the average word confidence and a bounding box converted back to the original image coordinates.
  4. Lines below minConfidence are dropped as noise. The rest are sorted top to bottom, left to right, and joined into paragraphs where there is a large vertical gap.

Use cases

  • Get the text of screenshots, scanned pages, photos of documents, posters or labels.
  • Read invoices, receipts and forms and use the line positions to pick fields by area.
  • Make image archives searchable, or feed image text to an LLM or a RAG index.
  • Filter out low-quality scans with meanConfidence.
  • Read every page of a multi-page TIFF fax or scan in one item.

How to use

  1. Open the Actor in Apify Console and paste direct image links into Image URLs.
  2. Choose the Languages present in your images (only the ones you need: fewer languages read better and faster).
  3. Optionally switch off line positions or change the minimum confidence.
  4. Click Start, then open the Output tab or export the dataset.

Input example (field names exactly as the Actor reads them):

{
"imageUrls": [
"https://tesseract-ocr.github.io/tessdoc/images/eurotext.png"
],
"languages": ["eng", "deu", "fra"],
"includeLines": true,
"minConfidence": 30
}
InputDefaultNotes
imageUrls(required)http or https links, up to 25 MB each
languages["eng"]Any of spa, eng, fra, deu, ita, por, cat, nld. Unknown codes are ignored; an empty list uses spa + eng
includeLinestrueReturn lines with positions and confidence
minConfidence300-100. Lines read with lower confidence are discarded

Output example

{
"url": "https://example.com/scans/notice.png",
"status": "ok",
"pages": 1,
"width": 1024,
"height": 768,
"text": "Opening hours\n\nMonday to Friday 9:00 - 18:00 Saturday 10:00 - 14:00",
"markdown": "Opening hours\n\nMonday to Friday 9:00 - 18:00 Saturday 10:00 - 14:00",
"lines": [
{ "page": 1, "text": "Opening hours", "confidence": 95.2, "bbox": [112, 64, 498, 118] },
{ "page": 1, "text": "Monday to Friday 9:00 - 18:00", "confidence": 91.7, "bbox": [112, 190, 702, 228] },
{ "page": 1, "text": "Saturday 10:00 - 14:00", "confidence": 90.4, "bbox": [112, 240, 560, 278] }
],
"meanConfidence": 92.4
}

A failed image gets a short item, and the other images keep going:

{ "url": "https://example.com/file.svg", "status": "error", "error": "not a supported image (PNG, JPEG, WebP, GIF, BMP, TIFF)" }

Pricing

Prices by Apify discount tier: the prices below are for the Bronze tier. Free plan: 50 % off. Silver: 10 % off. Gold and higher: 20 % off. Apify applies the right price automatically.

Pay per event, in USD. Platform compute is included in the event prices.

EventPriceWhen it is charged
Actor start$0.00005Charged by Apify when a run starts, per GB of run memory (default memory: 1 GB)
image-read$0.002Per image read successfully; a multi-page TIFF is charged once per page

Failed images are not charged (download errors, files over 25 MB, unsupported formats). An image that is read successfully but contains no text is charged like any other image.

Examples:

  • 100 screenshots: 0.00005 + 100 x 0.002 = $0.20005
  • One 10-page TIFF: 0.00005 + 10 x 0.002 = $0.02005
  • 1,000 product photos: 0.00005 + 1,000 x 0.002 = $2.00005

You can set a maximum cost per run in Apify; once it is reached no further images are charged.

Use it from code, AI agents and integrations

Apify API (runs the Actor and returns the dataset items in one call):

curl -X POST "https://api.apify.com/v2/acts/docflow-tools~image-ocr-own-engine/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"imageUrls": ["https://tesseract-ocr.github.io/tessdoc/images/eurotext.png"], "languages": ["eng", "deu", "fra"]}'

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("docflow-tools/image-ocr-own-engine").call(
run_input={
"imageUrls": ["https://tesseract-ocr.github.io/tessdoc/images/eurotext.png"],
"languages": ["eng"],
"includeLines": False,
}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["status"], item.get("meanConfidence"), item.get("text", "")[:200])

AI agents: the Actor can be called by AI agents (Claude, Cursor and other MCP clients) through the Apify MCP server at https://mcp.apify.com.

No-code: connect it to Make, Zapier or n8n through the Apify integrations.

Limits and notes

  • Up to 25 MB per image; only http:// and https:// URLs; redirects are followed; download timeout 120 s.
  • Up to 2 images are processed at the same time.
  • Formats: PNG, JPEG, WebP, GIF, BMP, TIFF. For GIF and animated WebP only the first frame is read. SVG, HEIC and PDF are not supported (for PDFs, use Document to Markdown for RAG below).
  • Languages: Spanish, English, French, German, Italian, Portuguese, Catalan and Dutch (Latin script). Other scripts such as Chinese, Arabic or Cyrillic are not installed.
  • Printed text works best. Handwriting, very low resolution, strong blur or perspective reduce accuracy; check meanConfidence and the per-line confidence.
  • Tables are returned as lines of text, not as table structures.
  • The URL must return the image itself; the Actor does not log in or render web pages.

FAQ

Does it use Google Lens, Google Vision or another cloud OCR? No. OCR runs inside the Actor with Tesseract.

Which languages should I select? Only those that appear in your images. Each extra language makes recognition slower and can add mistakes.

What are bbox coordinates? [x0, y0, x1, y1] of each line in pixels of the original image, top-left origin, even when the image was enlarged or reduced internally.

Why is some text missing? Lines with confidence below minConfidence (default 30) are dropped. Lower it to keep more text, or raise it to remove noise.

Is a multi-page TIFF one item? Yes: one item with all pages, lines tagged with their page, and pages separated by --- in markdown. It is charged once per page.

Are my images stored? No. Each image is held in memory while it is read and then discarded; only the text result goes to your dataset.