# Image to Text OCR - Handwriting & Tables (`helenisapi/image-to-text-ocr-handwriting-tables`) Actor

Extract 🖼️ Text from Images, photos & scans, handwriting included, with Markdown tables. ✅ Multilingual. ⚡ Results in seconds. 📦 No API key.

- **URL**: https://apify.com/helenisapi/image-to-text-ocr-handwriting-tables.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 image ocrs

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🖼️ Image to Text OCR - Handwriting & Tables

**Paste image links, get the text.** Photos, scans, screenshots, receipts, menus, handwritten notes, signs, posters: every image becomes **plain text in reading order** plus **Markdown that keeps the layout**, headings, lists and **tables**. Add a **translation** in one click.

Works on a plain list of image links **or on the dataset of another actor**, such as an Instagram, product or real-estate scraper. No API key, no Tesseract to tune: add links and hit **Run**.

***

### ⚡ Why this actor?

- ✍️ **Handwriting included:** notes, letters, forms and whiteboards, with unreadable words marked `[illegible]` instead of guessed.
- 🧾 **Tables stay tables:** receipts, invoices, menus and price lists keep each item on the same row as its price.
- 🌍 **Multilingual:** the text stays in its original language, and the languages found are listed.
- 🔁 **Translation:** get the same text, with its layout, in the language you choose.
- 🧹 **Two formats:** plain text for search and NLP, Markdown for documents and LLM pipelines.
- 🔗 **Chains with other actors:** point it at a dataset ID and it reads the images listed in it.
- 💸 **Pay per image read:** failed images cost nothing, and the translation is charged only when one was produced.

***

### 🏆 How it compares

| Feature | This actor | Classic OCR (Tesseract) | Lens-style OCR |
|---|:---:|:---:|:---:|
| ✍️ Handwriting | ✅ | ❌ | ⚠️ |
| 🧾 Tables kept as tables | ✅ | ❌ | ❌ |
| 📐 Reading order on complex layouts | ✅ | ⚠️ | ⚠️ |
| 🌍 Languages without configuration | ✅ | ⚠️ Language packs | ✅ |
| 🔁 Translation | ✅ | ❌ | ⚠️ |
| 📦 Word bounding boxes | ❌ | ✅ | ✅ |
| 💸 Failed images charged | ❌ Never | — | ⚠️ Varies |

***

### 📊 What data do you get?

One row per image. Examples come from a real run on a public-domain photo of a Dutch supermarket receipt, translated into English.

#### 🖼️ Text

| Field | Description | Example |
|---|---|---|
| `imageUrl` | The image link you sent | `https://upload.wikimedia.org/.../Sahan_Supermarket_receipt...jpg` |
| `success` | `true` when the image was read | `true` |
| `error` | `code` and `message` when it was not (not charged), otherwise `null` | — |
| `text` | Plain text in reading order; table cells separated by tabs | `SAHAN Supermarkt\nBergweg 170\n3036 BL Rotterdam` |
| `markdown` | The same text with headings, lists and Markdown tables | `SAHAN Supermarkt\nBergweg 170\n...` |
| `languages` | ISO 639-1 codes of the languages found | `["nl"]` |
| `handwriting` | `true` when the text is handwritten | `false` |
| `hasText` | `false` when the image contains no text | `true` |
| `mimeType` | Image type sent for reading | `image/jpeg` |
| `source` | Final URL of the image | `https://upload.wikimedia.org/.../Sahan_Supermarket_receipt...jpg` |

#### 🔁 Translation (when on)

| Field | Description | Example |
|---|---|---|
| `translation` | Translated plain text | `SAHAN Supermarket\n...\nDescription\tAmount` |
| `translationMarkdown` | Translated Markdown, layout kept | `SAHAN Supermarket\n...` |
| `translationLanguage` | The language you asked for | `English` |

The translation keeps numbers, codes and proper names as they are.

***

### 🚀 How to use it

1. Add **direct links** to images (one per line), or a **dataset ID** from another actor.
2. Optionally set **Translate into** (e.g. `English`).
3. Click **Run**, then export the table as CSV, Excel or JSON.

#### ⚙️ Input

| Option | Default | Description |
|---|:---:|---|
| 🔗 **Image links** | — | One direct link per line: PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB each. |
| 📦 **Dataset ID (optional)** | — | Read the images listed in an existing Apify dataset. |
| **Image link field in the dataset** | — | Field holding the link. Empty: tries `imageUrl`, `image`, `displayUrl`, `photoUrl`, `thumbnailUrl`, `fileUrl`, `url`. |
| **Maximum images** | `0` | Stop after this many images (0 = no limit). |
| 🌍 **Translate into (optional)** | — | Also translate the text, e.g. `English`, `French`, `es`. |
| **Parallel images** | `5` | 1 to 10 images read at the same time. |

#### Input example

```json
{
  "urls": ["https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg"],
  "maxImages": 0,
  "maxConcurrency": 5
}
```

Add `"translateTo": "English"` to fill `translation` and `translationLanguage` as below.

#### Output example (one row per image)

```json
{
  "imageUrl": "https://example.com/receipt.jpg",
  "success": true,
  "languages": ["nl"],
  "handwriting": false,
  "text": "SAHAN Supermarkt\nBergweg 170\n...\nOmschrijving\tBedrag\nMIRAS OLIJFOLIE (GLAS) 1L\t3,99\n...",
  "markdown": "SAHAN Supermarkt\n...\n| Omschrijving | Bedrag |\n| :--- | ---: |\n| MIRAS OLIJFOLIE (GLAS) 1L | 3,99 |\n...",
  "translation": "SAHAN Supermarket\n...\nDescription\tAmount\nMIRAS OLIVE OIL (GLASS) 1L\t3.99\n...",
  "translationLanguage": "English"
}
```

*Shortened from a real run on a public-domain receipt photo.*

Available as **JSON**, **CSV**, **Excel**, or via the **Apify API** and **dataset exports**.

#### 📁 Supported images

**PNG, JPEG, WEBP, HEIC, GIF, BMP, TIFF**, up to **20 MB** each. Very large images are resized to 3,072 px on their long side, which keeps small print readable. For PDFs, use our **PDF to Text** actor.

***

### 💰 Pricing

Pay only for images that were read:

| Event | When |
|---|---|
| 🖼️ Image OCR | Each image read successfully |
| 🌍 Translation | Each image also translated |

Images that cannot be downloaded or are not images are listed with their error and **not charged**. Set a maximum cost per run in the run options and the actor stops cleanly when it is reached.

> 🆓 On the Apify **free plan**, each run reads the first 10 images.

***

### 💡 Use cases

- 🧾 **Expense apps:** read receipts and invoices into rows.
- 📝 **Note taking:** digitise handwritten notes, letters and whiteboards.
- 🏠 **E-commerce & real estate:** read text on product photos, labels and listing pictures.
- 🗄️ **Archives:** turn scanned letters and forms into searchable text.
- 🌍 **Accessibility & translation:** read and translate signs, menus and posters.
- 🤖 **LLM & RAG pipelines:** feed clean Markdown, tables included, to your models.
- 📸 **Social media research:** run it on the dataset of an Instagram scraper to read the text in posts.

***

### ❓ FAQ

**Does it return word positions (bounding boxes)?**
No: it returns the text in reading order and the layout as Markdown. If you need pixel coordinates, a Lens-style OCR is the better tool.

**How good is it on handwriting?**
Very good on clear handwriting; hard-to-read words are marked `[illegible]` rather than invented.

**Can it read text in photos (signs, packaging, screenshots)?**
Yes, any text visible in the image.

**Does it describe the image?**
No: it only transcribes the text. An image without text returns `hasText: false`.

**Which image formats and sizes?**
PNG, JPEG, WEBP, HEIC, GIF, BMP and TIFF, up to 20 MB. GIF, BMP, TIFF and very large images are converted to JPEG first. The file type is detected from the file's content, not from what the server claims.

**What about PDFs?**
Use our **PDF to Text** actor, which handles digital and scanned PDFs page by page.

**What do failed images cost?**
Nothing. Server errors are retried once; images that cannot be downloaded or are not images get a row with their `error` and no charge. The translation is charged only when a translation was actually produced.

**How many images per run?**
As many as you add, 1 to 10 read in parallel. On the Apify free plan, the first 10 images of each run.

***

### 🔌 Integrations

Connect results to your existing workflow:

- 📗 **Google Sheets**: Auto-export text and translations to a spreadsheet
- 🪝 **Webhooks**: Trigger downstream actions when a run completes
- ⚡ **Zapier / Make**: Send extracted text to your apps, docs and databases
- 🛠️ **API**: Start runs and fetch results from any language
- 🔄 **Scheduled runs**: Process new images on a schedule
- 🤖 **AI agents**: call it from Claude, Cursor or any MCP client through Apify's MCP server

***

### 🌐 Also available as an API

The same engine is sold as a REST API on RapidAPI as **Image to Text OCR - Handwriting & Tables AI** by **Helenis API**, with direct image uploads as well as links.

***

### 🔒 Privacy

Images are downloaded, read and discarded: neither the image nor the text is stored by our backend. The AI sub-processor may keep requests temporarily for abuse monitoring. Only process images you have the right to process.

# Actor input Schema

## `urls` (type: `array`):

One direct link per line: PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB each. For PDFs, use our PDF to Text actor.

## `datasetId` (type: `string`):

Read the images listed in an existing Apify dataset.

## `datasetUrlField` (type: `string`):

Name of the field holding the image link. Leave empty to try imageUrl, image, displayUrl, photoUrl, thumbnailUrl, fileUrl and url.

## `maxImages` (type: `integer`):

Stop after this many images (0 = no limit).

## `translateTo` (type: `string`):

Also translate the text, e.g. English, French, es. Charged per image on top of the OCR.

## `maxConcurrency` (type: `integer`):

How many images are read at the same time.

## Actor input object example

```json
{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg"
  ],
  "maxImages": 0,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `texts` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/image-to-text-ocr-handwriting-tables").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg"] }

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/image-to-text-ocr-handwriting-tables").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://upload.wikimedia.org/wikipedia/commons/6/69/Sahan_Supermarket_receipt%2C_Hillegersberg%2C_Rotterdam_%282021%29_01.jpg"
  ]
}' |
apify call helenisapi/image-to-text-ocr-handwriting-tables --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/image-to-text-ocr-handwriting-tables"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xmqWeSRuDBWBEaH1S/builds/Y1g6ADncyc9IObdeH/openapi.json
