Sections08
Reading time8 min
EvidencePractical OCR guide
Phone photos of paper documents
Screenshots that contain forms or tables
PNG, JPG, JPEG, and WebP scans

How Image OCR works

Dynamite Docs logoDynamite Docs
The handoff
Image OCR: Read the imageCheck image quality. Correct geometry. Read by region. Return reviewable data. Illustrative example, not extracted customer data.FROM SOURCE FILE TO A RESULT YOU CAN USEImage OCRReview workspaceRead theimage1Check imagequality2Correct geometry3Read by region
  1. 01Check image quality
  2. 02Correct geometry
  3. 03Read by region
  4. 04Return reviewable data
Check the photo against the fields. Illustrative example.
01

Check image quality

Measure resolution, blur, glare, orientation, cropping, and whether small text is still legible.

02

Correct geometry

Deskew the page and correct perspective so rows and labels line up.

03

Read by region

Recognize text while preserving its page position, grouping, and likely field role.

04

Return reviewable data

Provide fields or rows with the source image available for visual comparison.

Structured output

Example output

Dynamite Docs logoDynamite Docs
Inside the output
Image OCR: Read the imageText regions: Paragraph, label, value, caption. Key-value fields: Order number: PO-7714. Table cells: Row 4, amount 128.50. Illustrative example, not extracted customer data.Source-linked field inspectorImage OCRParagraph, label, value,…Order number: PO-7714Row 4, amount 128.50Text regionsParagraph, label, value,captionKey-value fieldsOrder number: PO-7714Table cellsRow 4, amount 128.50
Text regions
Paragraph, label, value, caption
Key-value fields
Order number: PO-7714
Table cells
Row 4, amount 128.50
Check the photo against the fields. Illustrative example.
Field or structureExample
Text regionsParagraph, label, value, caption
Key-value fieldsOrder number: PO-7714
Table cellsRow 4, amount 128.50
Reading orderHeader before body and footnotes
CoordinatesSource region for review
Review rules

A better source image means less correction work

Image preparation often improves the result more than retrying the same poor file with another model.

Use the original image and highest practical resolution.
Photograph the page straight on with even light and all corners visible.
Avoid fingers, shadows, folds, and highlights over important text.
Do not over-sharpen or apply filters that erase punctuation and thin strokes.
Split contact sheets or collages into one document image per file when possible.

Implementation guide

Prepare image OCR inputs without erasing useful evidence

Use the original photo or scan whenever possible. Repeated compression can blur punctuation, thin type and grid lines even when the image still looks acceptable on a phone. Keep all page edges visible so perspective can be corrected and the model can tell where a form or table begins.

Improve capture before adding aggressive filters. Even light, a camera held parallel to the page and sharp focus usually provide better evidence than heavy contrast or sharpening. A filter that removes a faint decimal point may make the page look cleaner while making the extracted amount wrong.

Choose the output around the document. A screenshot of a table needs rows and columns. A photographed form needs labels and values. Retain dimensions and source coordinates when the review interface will draw highlights over the image, then route unreadable regions to a person.

For Ollama image to text extraction, select a vision model that can read the smallest important characters in your photo or screenshot. The Windows Ollama companion connects local inference to the review workspace. Ollama image to JSON extraction adds a second requirement: consistent labels, complete rows and values that match the source. Review that structure before exporting.

OCR API

Design the response for review.

Document extraction API guide
01

Declare supported MIME types and size limits, and reject empty or unsupported files before inference.

02

Preserve image dimensions and return normalized coordinates if another interface will draw highlights over the source.

Mobile capture

Extract fields from a document photographed outside the office.

Screenshot recovery

Turn a table or form trapped in an image into editable data.

Mixed upload intake

Accept [image documents alongside PDFs](/ai-ocr-software-for-document-data/extract-scanned-pdf-data-using-ai) in one extraction workflow.

Image OCR questions

Which image format is best for OCR?

A clear PNG or high-quality JPEG usually works well. Resolution, focus, contrast, and compression matter more than the file extension.

Can OCR read text from a screenshot?

Yes, if the text is large enough and not heavily compressed. Screenshots often lose page context, so keep the whole form or table visible.

How can I improve OCR on a phone photo?

Use even lighting, hold the camera parallel to the page, include all four corners, tap to focus, and upload the original photo.

Can Ollama extract text from screenshots on Windows?

Yes, with a suitable vision model. Keep the whole table or form visible in the screenshot and preserve the original resolution. Dynamite Docs can return structured fields and rows through the [local Ollama OCR workflow](/guides/local-ai), then export checked image data as JSON, Excel or CSV.

Can we save optional cookies?

Essential cookies keep you signed in. With your permission, optional analytics cookies and masked session replays help us understand usage and diagnose errors. Privacy policy. Change your choice anytime in Cookie settings.