DelegIA
Get started

What is OCR (optical character recognition)

Optical character recognition (OCR) is the technology that turns the letters in an image into text you can search, copy, and edit. For example, optical character recognition lets you find a clause in a scanned contract or copy an amount from a photo of a receipt.

Albert López·Founder of DelegIA·Updated

Also called
Optical character recognition
Type
Technology
Related to
LLM, generative AI, RPA, API
Reading time
8 minutes

How does OCR work

What's OCR doing when you scan a page? To a computer, the scan is a picture made up of colored pixels. OCR technology identifies the letters a person can read so the computer can work with the text.

The OCR engine in your scanner, PDF application, or phone app first locates the text on the page, then recognizes the characters in each line. Optical character recognition can use machine learning: engines such as Tesseract have used neural networks for line recognition since version 4. [2] Straightening a crooked page or improving its contrast before processing can help the software read it. [5] Depending on the software, the output may also record where each piece of text appears on the page.

That definition of optical character recognition (OCR) stops at reading the text. Identifying what each value means takes another step: reading “Total $1,210.00” alone doesn't tell your accounting system that this is the amount to pay. Poor photos, handwriting, and tables without clear boundaries can make recognition harder, so check the results from those documents.

The result of text extraction with optical character recognition is often called OCR text. A poor image can lead to mistakes in that text, such as a 0 in place of an O.

What is a searchable PDF

What does OCR mean in a PDF? A scanned PDF may contain only a picture of each page, so you can view it but can't search for a word or copy a sentence. A searchable PDF uses optical character recognition to add an invisible text layer while keeping the original page images. The document looks the same, and you can now search and copy its text. [4]

Scanned PDFImage only

Appearance
Clear
Find a word
No match
Copy a sentence
Not available

PDF with OCRWith a text layer

Appearance
Unchanged
Find a word
Match found
Copy a sentence
Available

To check whether a PDF has recognized text, search for a word you can see on the page. A match means that area contains searchable text. If there's no match, try another word or select a line. OCR may have misread a letter in your search word, so one failed search doesn't settle it. If you can't select any text either, the page may still be image only.

If you need to know how to OCR a PDF, open it in PDF OCR software such as Adobe Acrobat and use its text recognition feature. [4]

Adding OCR to a PDF lets you search scanned contracts, signed delivery slips, or paper invoices in a PDF reader. You can also send the text to another application.

OCR isn't a file format. What some applications call an OCR format is a PDF with a text layer, though you can also save recognized text as a Word document or plain text. An “OCR file” or “OCR document” usually means one of these files containing recognized text.

The OCR setting on a scanner or printer

What is OCR scanning? Many scanners have a setting called “Searchable PDF,” “Recognize Text,” or “Scan to OCR.” Turn it on if you want to search for words later. OCR scanner software recognizes the text during document scanning and saves it in a PDF with a text layer or a Word document. An OCR scanner is an optical character recognition device that combines image capture with software to recognize the text. On an all-in-one printer, the process works the same way: either the device or the software on your computer handles recognition.

Enable this setting when you need to send the document's text to another application, too. Recognition takes extra processing time and can increase the file size, but it makes the contents searchable afterward.

Passport OCR and the machine-readable zone

The two lines of letters, numbers, and < symbols at the bottom of a passport's photo page are its machine-readable zone, or MRZ. For a passport booklet, ICAO's Doc 9303 specifies two lines of 44 characters with information about the document and its holder, plus check digits. [1]

The MRZ uses OCR-B, a typeface designed for machine reading, and its check digits help detect reading errors. [1] Passport OCR software uses optical character recognition to capture those details so you don't have to type each field. The software can run in a document reader or a camera app.

OCR software: Tesseract, Readiris, and AI models

What is OCR software doing when it uses AI technology to read a document? The optical character recognition (OCR) program turns the image into text, whether it runs inside a PDF application or scanner software. If you need to search your office PDFs, check whether your current software already includes it. OCR software examples include Tesseract, Readiris, Acrobat, and FineReader, which you may come across when choosing a separate tool or adding recognition to an application.

What is Tesseract OCR? It's a free, open-source engine that developers can use inside other applications. If you need free OCR software, keep in mind that Tesseract has no graphical interface: you run it from the command line or integrate it into another program. It began at HP in the 1980s. HP released it as open source in 2005, and Google developed it from 2006 until August 2017. [2]

Readiris is paid OCR software for Windows and Macintosh computers, designed for office work. It's made by I.R.I.S., a Belgian company that's part of Canon. [6] You may also see it called IRIS OCR. Adobe Acrobat and ABBYY FineReader include OCR in their PDF software. [4] [7]

On your phone, an optical character recognition app is an OCR tool for reading text in a scan. If you need a searchable document, search for a word in the exported PDF to check that the app kept the recognized text.

Is OCR AI? Some recognition engines use neural networks, and generative AI can help interpret a document after optical character recognition has extracted its text. AI OCR software may therefore do more than recognize the characters on the page. DeepSeek-OCR, released in 2025, has openly available model files and can run on your own server. It can turn a page into formatted text, including tables. [3] At DelegIA, we start with the fields your business needs to extract, then choose a model for that job.

OCR or AI for reading invoices

Invoice OCR extracts the text from an invoice, but text recognition alone doesn't assign each value to an accounting field. You might get two company names, three dates, several amounts, and payment details, all in their original order. Before recording the invoice in your accounting system, the system still needs to identify the vendor, invoice date, subtotal, any sales tax shown, and total. If a tax ID appears, it needs to work out whose it is. A vendor's U.S. taxpayer identification number can be supplied separately on Form W-9. [8]

Artificial intelligence (AI) can identify fields in the text read by optical character recognition. A language model can read the invoice itself or the text extracted by OCR, identify the vendor, dates, and amounts across different layouts, and return structured data to your application. Document extraction systems also use machine learning for this task. [9] Your application then checks the totals against the tax, discount, and withholding rules that apply to the invoice.

A system that reads familiar invoices can still struggle with a photographed receipt, an invoice in another language, or billing details pasted into an email. AI can help interpret the information in those situations.

From an invoiceOCRAI document reading
OutputAll the words on the page, possibly in their original orderStructured data for your application
Vendor identificationTwo company names, without identifying their rolesIdentifies the vendor
Invoice dateThree datesIdentifies the invoice date
Subtotal, tax, and totalSeveral amountsEach value assigned to a field; the application checks the totals
Different vendor layoutsText with no fields identifiedCan identify fields across layouts

At a construction company, OCR makes a long project document searchable. Preparing an estimate also requires matching each line item to its quantity, unit of measure, and price, and telling it apart from a paragraph of terms. A model that interprets the document can help make those connections.

What a person checks

A person reviews anything the system can't accept with confidence. That might be a poorly scanned invoice with part of the vendor identifier missing, a total that doesn't add up, a new vendor, or an amount far outside the usual range. At DelegIA, we propose setting those invoices aside and showing why each one needs review, so your team can check them before approval. The rest go into the application awaiting approval. In this workflow, a person always authorizes payment.

An invoice can contain a customer's or vendor's tax ID, account details, and payment instructions, so check how a chat app handles company data before uploading one. For a business workflow, your company's system can access the model through an API under that API's data terms. Another option is to run the model on a server your company controls.

If someone at your company enters vendor invoices by hand, our Invoice automation page explains how we read them and send the data to your software. You can also request a free initial call.

Sources

  1. International Civil Aviation Organization, Doc 9303, Part 4: Machine readable passports; Part 3: Common specifications Accessed November 26, 2026.www.icao.int
  2. Tesseract OCR, official repository Accessed November 26, 2026.github.com
  3. DeepSeek, DeepSeek-OCR official repository Accessed November 26, 2026.github.com
  4. Adobe, Recognize text in scanned documents; What is OCR Accessed November 26, 2026.helpx.adobe.com
  5. Tesseract, Improving the quality of the output Accessed November 26, 2026.tesseract-ocr.github.io
  6. IRIS, Readiris PDF, official U.S. store; About IRIS Accessed November 26, 2026.www.irislink.com
  7. ABBYY, FineReader PDF Accessed November 26, 2026.pdf.abbyy.com
  8. Internal Revenue Service, Instructions for the requester of Form W-9 Accessed November 26, 2026.www.irs.gov
  9. Amazon Web Services, Analyzing invoices and receipts Accessed November 26, 2026.docs.aws.amazon.com
Albert López

Albert López

Founder of DelegIA

He helps small and mid-sized businesses in Spain decide where artificial intelligence makes sense. He then implements the systems they've agreed on and supports the teams using them. These glossary entries draw on what he learns working with each business.

Last reviewed: