Skip to content

Text recognition (OCR)

Read the text in screenshots, receipts and photos with Avenvail OCR, a local worker that keeps images on your server.

The Extract text step reads the text in an image so later steps can store it, search it or hand it to an AI step. It runs through an OCR connection. The first-party one is Avenvail OCR: Tesseract 5 in a small container next to Avenvail, so images never leave your server.

OCR is optional. Avenvail runs, uploads and runs every other workflow without it, and the main Avenvail image contains nothing OCR needs. To use it, start the worker and connect it.

Extract text

  1. Add Extract text after a step that gives content, such as Load content.
  2. Choose an OCR connection. With none yet, the step says how to start the worker and offers to create the connection.
  3. Choose the Image, a Language if it isn't the connection's default, and a Preset.

It continues on one of two paths:

  • Next when it found text. text holds it as a working attachment, line by line, which Add attachment stores with the file and every AI step's Text setting takes as it is.
  • No text found when the image has none. That's a success, not a failure: connect steps to it, or leave it empty to end the run there.

A failure, such as a worker that isn't running or an image over its limits, fails the step like any other, with the worker's reason. Avenvail never falls back to a hosted service or an AI model when OCR is unavailable.

Output
textThe text, as a working attachment named OCR text. Empty on No text found.
previewThe first 500 characters, for conditions and templates.
hasTextWhether any text was found.
confidenceHow sure Tesseract is, from 0 to 1, weighted by word length.
wordsEach word with its confidence and box, in the original image's pixels, up to 2,000.
ocrThe languages, preset and image size used, and how long it took.

text, preview and words are marked sensitive, so run history shows them only to you.

Presets

PresetForWhat it does
AutomaticMost imagesLets Tesseract find the layout. Enlarges images under 1,600 pixels on their longest side.
ScreenshotInterface text, light or darkEnlarges images under 2,600 pixels, so small text gets large enough, and inverts dark mode.
DocumentReceipts, forms, single-column pagesReads line by line, so an amount stays on the line with its label.
Sparse textPhotos, signs, busy imagesLooks for scattered words in any order, and stretches weak contrast.

How often each preset found the expected words in the test fixtures (a light and a dark screenshot, a receipt, and a photo of the receipt):

FixtureAutomaticScreenshotDocumentSparse text
Screenshot, light100%100%100%100%
Screenshot, dark100%100%100%100%
Receipt56%56%89%100%
Receipt photo56%56%89%89%

Automatic and Screenshot miss a receipt's amounts, because Tesseract reads the right-aligned column as a separate block it then drops. Use Document for receipts when the line order matters (an amount next to its label), or Sparse text to catch every number in any order.

Preprocessing, under Advanced, overrides how the preset prepares the image: page segmentation, scale (1 to 4 times), inverting colors and turning the image black and white. Leave them on Preset default unless text is being missed.

Languages and formats

Avenvail OCR reads PNG, JPEG, WebP, GIF (the first frame) and BMP images, and comes with English. The connection's Default language applies to steps that don't choose one; a step's Language lists what the worker has. To read more than one language at once, choose several, such as English and German. To add languages, see Adding languages.

Store the text with Add attachment and search finds it like any text attachment. A match shows the attachment's name and the scan icon of the step that made it, such as OCR text from Extract text, so you can tell text read from the image apart from notes you wrote.

The Make images searchable template does this for every new image. It's a library workflow, so uploads finish first and the text arrives a moment later. See Make screenshots searchable.

To add text to images you uploaded before, add the template a second time and change its trigger to Run manually. Then in Files, select the images and choose More actions › Run automation, up to 100 files at a time. Images that already have an OCR text attachment get theirs replaced.

Privacy

Avenvail sends the image to the address of the OCR connection and nowhere else, through the same guarded outbound rules as every connection. The worker:

  • keeps nothing: it reads the image, answers, and deletes its temporary copy;
  • never sees Avenvail's database, storage, S3 credentials, workflows or accounts;
  • needs no internet access, and never downloads language data while running;
  • doesn't log images or text, only sizes, timings and the run and step that asked.

Extract text is marked as sending file content to an outside service, because the worker is one, even on your own server. A test run runs it only when you allow that.