Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Pemindai dokumen
Mendigitalkan dokumen fisik, yang memungkinkan pengguna mengonversi dokumen fisik menjadi format digital telah menjadi perjalanan pengguna yang sangat umum di aplikasi seluler.
API pemindai dokumen dari ML Kit menyediakan solusi komprehensif dengan
alur UI berkualitas tinggi dan konsisten di seluruh aplikasi dan perangkat Android. Setelah alur pemindai dokumen dipicu dari aplikasi, pengguna akan tetap memegang kendali penuh atas proses pemindaian. Mereka dapat memangkas dokumen yang dipindai, menerapkan
filter, menghilangkan bayangan atau noda, dan dengan mudah mengirim kembali file yang telah didigitalkan ke
aplikasi Anda.
Alur UI, model ML, dan resource besar lainnya dikirim menggunakan layanan
Google Play, yang berarti:
Dampak ukuran biner yang rendah (semua model ML dan resource besar didownload secara terpusat di layanan Google Play).
Tidak ada izin kamera yang diperlukan - pemindai dokumen memanfaatkan izin kamera layanan Google Play, dan pengguna dapat mengontrol file mana yang akan dibagikan kembali ke aplikasi Anda.
Seluruh alur pemindai dokumen beroperasi di perangkat.
Antarmuka pengguna yang berkualitas tinggi dan konsisten untuk mendigitalkan dokumen fisik.
Perekaman otomatis dengan deteksi dokumen.
Deteksi tepi yang akurat untuk hasil pemangkasan yang optimal.
Deteksi rotasi otomatis untuk menampilkan dokumen tegak.
Mengedit fungsi untuk memangkas, menerapkan filter, menghilangkan bayangan, membersihkan
noda, dan mengirim file digital kembali ke aplikasi Anda dengan lancar.
Pemrosesan di perangkat, yang menjaga privasi pengguna.
Tidak ada izin kamera yang diperlukan dari aplikasi Anda.
Dampak ukuran biner APK rendah.
Penyesuaian
Document pemindai API menyediakan alur UI lengkap berkualitas tinggi yang
konsisten di seluruh aplikasi Android. Namun, ada juga ruang untuk menyesuaikan beberapa
aspek pengalaman pengguna:
Jumlah maksimum halaman:
Menetapkan batas jumlah halaman yang dipindai.
Impor galeri:
Mengaktifkan atau menonaktifkan kemampuan untuk mengimpor dari galeri foto.
Mengedit fungsi:
Sesuaikan fungsi pengeditan yang tersedia bagi pengguna dengan memilih
dari 3 mode:
SCANNER_MODE_BASE: kemampuan pengeditan dasar (memangkas, memutar,
mengurutkan ulang halaman, dll...).
SCANNER_MODE_BASE_WITH_FILTER: menambahkan filter gambar (skala abu-abu,
peningkatan kualitas gambar otomatis, dll...) ke mode SCANNER_MODE_BASE.
SCANNER_MODE_FULL (default): menambahkan kemampuan pembersihan gambar
yang didukung ML (menghapus noda, jari, dll...) ke
mode SCANNER_MODE_BASE_WITH_FILTER. Mode ini juga akan memungkinkan fitur-fitur utama
di masa mendatang ditambahkan secara otomatis bersama dengan update layanan
Google Play, sedangkan dua mode lainnya akan mempertahankan set fiturnya
saat ini dan hanya menerima sedikit peningkatan kualitas.
Mode dasar
Mode dasar dengan filter
Mode penuh
Hasil contoh
Gambar asli
Dokumen yang dipindai dengan perspektif dikoreksi, dihapus kerut, dan filter hitam putih diterapkan
Gambar asli
Dokumen yang dipindai diputar otomatis dengan noda dihapus dan filter warna diterapkan
Gambar asli
Dokumen yang dipindai dengan noda dihapus dan filter otomatis diterapkan
Gambar asli
Dokumen yang dipindai diputar otomatis dengan bayangan dihapus dan filter otomatis diterapkan
Gambar asli
Dokumen yang dipindai diputar otomatis dengan jari dilepas dan filter otomatis diterapkan
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eML Kit's Document Scanner API enables digitization of physical documents within Android apps, providing a high-quality and consistent user interface.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers on-device processing, ensuring user privacy and eliminating the need for camera permissions from the app.\u003c/p\u003e\n"],["\u003cp\u003eUsers have control over the scanning process, including cropping, applying filters, removing imperfections, and sharing the digitized files.\u003c/p\u003e\n"],["\u003cp\u003eCustomization options are available to tailor the user experience, such as limiting pages, enabling gallery imports, and adjusting editing functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe API leverages Google Play services for model delivery, minimizing app size and enabling automatic updates for enhanced features.\u003c/p\u003e\n"]]],["The document scanner API allows users to digitize physical documents within Android apps. Key actions include automatic document capture, edge and rotation detection, and editing features like cropping, filtering, and stain/shadow removal. The API operates on-device and uses Google Play services, ensuring low binary size impact and eliminating the need for camera permissions. Customization options are provided for the maximum number of pages, gallery import, and three editing modes, with the full mode offering the most feature set.\n"],null,["Document scanner\n----------------\n\n| This API is offered in beta, and is not subject to any SLA or deprecation policy. Changes may be made to this API that break backward compatibility.\n\nDigitizing physical documents, which allows users to convert physical documents\ninto digital formats has become a very common user journey in mobile apps.\nML Kit's document scanner API provides a comprehensive solution with a\nhigh-quality, consistent UI flow across Android apps and devices. Once the\ndocument scanner flow is triggered from your app, users retain full control over\nthe scanning process. They can optionally crop the scanned documents, apply\nfilters, remove shadows or stains, and easily send the digitized files back to\nyour app.\n\nThe UI flow, ML models and other large resources are delivered using Google Play\nservices, which means:\n\n- Low binary size impact (all ML models and large resources are downloaded centrally in Google Play services).\n- No camera permission is required - the document scanner leverages the Google Play services' camera permission, and users are in control of which files to share back with your app.\n\nThe entire document scanner flow operates on-device.\n\n[Android](/ml-kit/vision/doc-scanner/android)\n\n### Key capabilities\n\n- High-quality and consistent user interface for digitizing physical documents.\n- Automatic capture with document detection.\n- Accurate edge detection for optimal crop results.\n- Automatic rotation detection to show documents upright.\n- Editing functionalities to crop, apply filters, remove shadows, clean stains, and seamlessly send digitized files back to your app.\n- On-device processing, preserving user's privacy.\n- No camera permission is needed from your app.\n- Low apk binary size impact.\n\n### Customization\n\nThe document scanner API provides a high-quality fully fledged UI flow that is\nconsistent across Android apps. However, there is also room to customize some\naspects of the user experience:\n\n- **Maximum number of pages:** \n\n Set a limit to the number of pages scanned.\n\n- **Gallery import:** \n\n Enable or disable the capability to import from the photo gallery.\n\n- **Editing functionalities:** \n\n Customize the editing functionalities available to the user by choosing\n from 3 modes:\n\n - `SCANNER_MODE_BASE`: basic editing capabilities (crop, rotate, reorder pages, etc...).\n - `SCANNER_MODE_BASE_WITH_FILTER`: adds image filters (grayscale, auto image enhancement, etc...) to the `SCANNER_MODE_BASE` mode.\n - `SCANNER_MODE_FULL` (default): adds ML-enabled image cleaning capabilities (erase stains, fingers, etc...) to the `SCANNER_MODE_BASE_WITH_FILTER` mode. This mode will also allow future major features to be automatically added along with Google Play services updates, while the other two modes will maintain their current feature sets and only receive minor refinements.\n\n| Base mode | Base mode with filter | Full mode |\n|-----------|-----------------------|-----------|\n| | | |\n\n### Example results\n\n| Original picture | Scanned document with perspective corrected, wrinkle removed and grayscale filter applied |\n|------------------|-------------------------------------------------------------------------------------------|\n| | |\n\n| Original picture | Scanned document auto-rotated with stain removed and color filter applied |\n|------------------|---------------------------------------------------------------------------|\n| | |\n\n| Original picture | Scanned document with stain removed and auto filter applied |\n|------------------|-------------------------------------------------------------|\n| | |\n\n| Original picture | Scanned document auto-rotated with shadow removed and auto filter applied |\n|------------------|---------------------------------------------------------------------------|\n| | |\n\n| Original picture | Scanned document auto-rotated with finger removed and auto filter applied |\n|------------------|---------------------------------------------------------------------------|\n| | |"]]