Tieni presente che alcuni di questi formati immagine sono "lossy" (ad esempio, JPEG). La riduzione
delle dimensioni dei file per i formati con perdita puรฒ comportare un peggioramento della qualitร dell'immagine e
dell'accuratezza dei risultati di Document AI.
Risoluzione della scansione di documenti
Per ottenere risultati OCR piรน precisi da Document AI, le scansioni dei documenti devono avere una risoluzione minima di 200 dpi (punti per pollice).
In genere, 300 dpi e valori superiori producono i risultati migliori. L'accuratezza dell'OCR dipende
sia dalla risoluzione che dalla dimensione minima dei caratteri, oltre ad altri fattori come
la qualitร del documento (e della scrittura a mano, se presente), pertanto รจ consigliabile eseguire dei test.
La funzionalitร di analisi della qualitร dell'immagine
puรฒ aiutarti a valutare i problemi di risoluzione.
NOTA: per l'immagine del retro della patente di guida statunitense sono necessari 2000 x 3000 pixel per leggere il codice a barre.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema รจ stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-02 UTC."],[[["\u003cp\u003eDocument AI supports various image file types, including PDF, GIF, TIFF, JPEG, PNG, BMP, and WebP, as well as HTML files.\u003c/p\u003e\n"],["\u003cp\u003eFile size and page limits for Document AI are detailed on the Quotas and Limits page.\u003c/p\u003e\n"],["\u003cp\u003eReducing file sizes for lossy image formats like JPEG may result in a degradation of image quality and accuracy of the output from Document AI.\u003c/p\u003e\n"],["\u003cp\u003eFor 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.\u003c/p\u003e\n"],["\u003cp\u003eHTML support is restricted to the Layout Parser feature in Document AI.\u003c/p\u003e\n"]]],[],null,["# Supported Files\n===============\n\nFile Types\n----------\n\nDocument AI supports the following image types.\n\nFor information about file size and page limits, refer to the [Quotas and Limits](/document-ai/quotas#content_limits)\npage.\n\nNote that some of these image formats are \"lossy\" (for example, JPEG). Reducing\nfile sizes for lossy formats may result in a degradation of image quality and\naccuracy of results from Document AI.\n| **Note:** Prior JPEG compressions for TIFF are unsupported. Type of JPEG encapsulation defined by the TIFF [version 6.0 specification](https://gitlab.com/libtiff/libtiff/-/commit/f0a54a4fa0cfa377f493d57ee2af393005d5bbe5).\n| **Note:** HTML support is only available with [layout parser](/document-ai/docs/layout-parse-chunk). [Custom splitter](/document-ai/docs/custom-splitter) only supports PDF, TIFF, TIF, and GIF file types.\n\n### Document scan resolution\n\nFor most accurate OCR results from Document AI, document scans should be\na minimum of 200 dpi [(dots per inch)](https://en.wikipedia.org/wiki/Dots_per_inch).\n300 dpi and higher generally produce the best results. OCR accuracy is dependent\non both the resolution and the minimum font size, along with other factors like\ndocument (and if handwritten, handwriting) quality, so testing is recommended.\nThe [image quality analysis](/document-ai/docs/process-documents-ocr#image-quality_analysis)\nfeature can help evaluate resolution concerns.\n\nNOTE: 2k x 3k pixels are required for the US driver's license back side image in\norder to read the barcode."]]