OCR
What OCR is, how it works, where it's used, and common mistakes to avoid when making screenshots and scans searchable.
OCR (optical character recognition) converts images of text into machine-readable characters. The input can be a scan, a photo or a screenshot. The output is plain text, often with the position of each word, line and block on the page.
Modern OCR engines use neural network models trained on many fonts and languages. Widely used engines include Tesseract, an open-source project, and Apple's Vision framework, which apps on macOS and iOS can call. Recent macOS versions also offer Live Text, which lets you select text in images in Photos, Preview and other apps.
When OCR output is placed as an invisible layer over the page images of a PDF, the PDF becomes searchable while it looks unchanged.
How OCR works
- Preprocess the image: adjust contrast, straighten, remove noise.
- Analyze layout: find text blocks, columns, lines and words.
- Recognize characters and words with a trained model.
- Apply language models to correct likely errors.
- Output text with coordinates.
Where OCR is used
- Making scanned documents and screenshot PDFs searchable.
- Copying text from images, slides and video frames.
- Reading receipts, invoices and forms into other systems.
- Accessibility, where a screen reader needs text instead of pictures.
OCR for screenshots
Screenshots are good OCR input: text is straight, sharp and high in contrast. Accuracy drops with very small text, low-contrast colors, decorative fonts, mathematical notation and text inside diagrams. Retina captures and lossless PNG give the engine more detail than downscaled JPGs.
Temposhot runs OCR when it exports a PDF from the results pane, and everything runs on your Mac.
Common mistakes with OCR
- Running OCR on heavily compressed or downscaled images.
- Trusting OCR output for numbers and names without checking.
- Expecting equations, tables and footnotes to come out in the right structure.
- Mixing languages on one page without checking the result.
Turning pages into a PDF?
Export a searchable PDF from Temposhot, see save screenshots as PDF on Mac, or convert existing images with Screenshot to Searchable PDF.
Common questions
Is OCR text exact?
No. Accuracy is high on clear text but not perfect. Check important details against the image.
Can I get text out of one screenshot?
Yes. Extract Text from Image reads the text in the browser.
Sources
Related resources
- OCR misses equations, footnotes and diagrams: known limits.
- Export formats: searchable PDF export.
Taking the same screenshots again and again?
Temposhot captures a screen, window or area on a timer and exports the set as a PDF, images, ZIP or MP4. The free browser tools fix single images.
Related resources
Related terms
- Searchable PDFWhat makes a PDF searchable, how to tell if yours is, and common mistakes when working with image-only PDFs.
- Text LayerWhat a text layer is, how it gets into a document, and why it determines whether your PDF is truly searchable.
- Document ScanningWhat document scanning is, how it differs from photographing documents, and how scanning connects to OCR and searchable PDFs.
- Image-Only PDFWhat an image-only PDF is, why it limits search and accessibility, and how to make it searchable.