Net.Google.MLKit.DocumentScanner 16.0.0-beta1

This is a prerelease version of Net.Google.MLKit.DocumentScanner.
dotnet add package Net.Google.MLKit.DocumentScanner --version 16.0.0-beta1
                    
NuGet\Install-Package Net.Google.MLKit.DocumentScanner -Version 16.0.0-beta1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Net.Google.MLKit.DocumentScanner" Version="16.0.0-beta1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net.Google.MLKit.DocumentScanner" Version="16.0.0-beta1" />
                    
Directory.Packages.props
<PackageReference Include="Net.Google.MLKit.DocumentScanner" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Net.Google.MLKit.DocumentScanner --version 16.0.0-beta1
                    
#r "nuget: Net.Google.MLKit.DocumentScanner, 16.0.0-beta1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Net.Google.MLKit.DocumentScanner@16.0.0-beta1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Net.Google.MLKit.DocumentScanner&version=16.0.0-beta1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Net.Google.MLKit.DocumentScanner&version=16.0.0-beta1&prerelease
                    
Install as a Cake Tool

Document scanner with ML Kit on .NET for Android Nuget

Learn more about ML Kit document scanner | Official docs

Digitizing physical documents, which allows users to convert physical documents into digital formats has become a very common user journey in mobile apps. ML Kit's document scanner API provides a comprehensive solution with a high-quality, consistent UI flow across Android apps and devices. Once the document scanner flow is triggered from your app, users retain full control over the scanning process. They can optionally crop the scanned documents, apply filters, remove shadows or stains, and easily send the digitized files back to your app.

The UI flow, ML models and other large resources are delivered using Google Play services, which means:

  • Low binary size impact (all ML models and large resources are downloaded centrally in Google Play services).
  • 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.

The entire document scanner flow operates on-device.

Key capabilities

  • High-quality and consistent user interface for digitizing physical documents.
  • Automatic capture with document detection.
  • Accurate edge detection for optimal crop results.
  • Automatic rotation detection to show documents upright.
  • Editing functionalities to crop, apply filters, remove shadows, clean stains, and seamlessly send digitized files back to your app.
  • On-device processing, preserving user's privacy.
  • No camera permission is needed from your app.
  • Low apk binary size impact.

Customization

The document scanner API provides a high-quality fully fledged UI flow that is consistent across Android apps. However, there is also room to customize some aspects of the user experience:

  • Maximum number of pages: Set a limit to the number of pages scanned.

  • Gallery import: Enable or disable the capability to import from the photo gallery.

  • Editing functionalities: Customize the editing functionalities available to the user by choosing from 3 modes:

    • SCANNER_MODE_BASE: basic editing capabilities (crop, rotate, reorder pages, etc…).
    • SCANNER_MODE_BASE_WITH_FILTER: adds image filters (grayscale, auto image enhancement, etc…) to the SCANNER_MODE_BASE mode.
    • 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.
Product Compatible and additional computed target framework versions.
.NET net9.0-android35.0 is compatible.  net10.0-android was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
16.0.0-beta1 75 6/27/2025