Perhatikan bahwa beberapa format gambar ini bersifat "lossy" (misalnya, JPEG). Mengurangi
ukuran file untuk format lossy dapat mengakibatkan penurunan kualitas gambar dan
akurasi hasil dari Document AI.
Resolusi pemindaian dokumen
Untuk hasil OCR yang paling akurat dari Document AI, pindaian dokumen harus memiliki
minimum 200 dpi (dots per inci).
300 dpi dan yang lebih tinggi umumnya menghasilkan hasil terbaik. Akurasi OCR bergantung pada resolusi dan ukuran font minimum, serta faktor lain seperti kualitas dokumen (dan jika tulisan tangan, kualitas tulisan tangan), jadi pengujian direkomendasikan.
Fitur analisis kualitas gambar
dapat membantu mengevaluasi masalah resolusi.
CATATAN: Gambar sisi belakang surat izin mengemudi Amerika Serikat harus berukuran 2.000 x 3.000 piksel agar kode batang dapat dibaca.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 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."]]