Note that some of these image formats are "lossy" (for example, JPEG). Reducing
file sizes for lossy formats may result in a degradation of image quality and
accuracy of results from Document AI.
Document scan resolution
For most accurate OCR results from Document AI, document scans should be
a minimum of 200 dpi (dots per inch).
300 dpi and higher generally produce the best results. OCR accuracy is dependent
on both the resolution and the minimum font size, along with other factors like
document (and if handwritten, handwriting) quality, so testing is recommended.
The image quality analysis
feature can help evaluate resolution concerns.
NOTE: 2k x 3k pixels are required for the US driver's license back side image in
order to read the barcode.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-25 UTC."],[[["Document AI supports various image file types, including PDF, GIF, TIFF, JPEG, PNG, BMP, and WebP, as well as HTML files."],["File size and page limits for Document AI are detailed on the Quotas and Limits page."],["Reducing file sizes for lossy image formats like JPEG may result in a degradation of image quality and accuracy of the output from Document AI."],["For optimal OCR results, document scans should be at least 200 dpi, with 300 dpi or higher recommended, and US driver's license back side images require 2k x 3k pixels for barcode reading."],["HTML support is restricted to the Layout Parser feature in Document AI."]]],[]]