AndroidX icon indicating copy to clipboard operation
AndroidX copied to clipboard

Bind "play-services-mlkit-document-scanner"

Open afriscic opened this issue 2 months ago • 7 comments

Description

Last updated graduated Document Scanner out of Beta to General Availability, so it would be useful to have bindings for this artifact. Thank you.

afriscic avatar Oct 18 '25 08:10 afriscic

@afriscic can you give some details on what you'd use this for? Links to Android docs or an example of a feature in an app?

Everyone please upvote if you need this.

As always, contributions are also welcome, thanks!

jonathanpeppers avatar Oct 20 '25 19:10 jonathanpeppers

Link to Android docs: https://developers.google.com/ml-kit/vision/doc-scanner

Used for scanning documents such as invoices, delivery notes and so on. Uses the camera to crop the image of the document to its size and to correct the orientation automatically.

andreaspfeiffer1988 avatar Oct 24 '25 07:10 andreaspfeiffer1988

This would enable automatic document scanning using Google's API without any additional image processing code. It would bring dotNET Android implementation to a feature parity with dotNET iOS that has similar feature implemented and would enable development of MAUI document scanning libraries or apps for both platforms.

afriscic avatar Nov 15 '25 08:11 afriscic

dotNET iOS that has similar feature implemented

Do you have a link to this? or is it just an API that is bound in Microsoft.iOS.dll?

It would bring dotNET Android implementation to a feature parity

Is there anything preventing you from binding these APIs yourself? or use the slim bindings feature?

jonathanpeppers avatar Nov 17 '25 20:11 jonathanpeppers

Do you have a link to this? or is it just an API that is bound in Microsoft.iOS.dll?

Apple documentation .NET 10 page

Is there anything preventing you from binding these APIs yourself? or use the slim bindings feature?

Not really... But it would be easier for more devs to have official NuGet though...

afriscic avatar Nov 19 '25 17:11 afriscic

I am a bit confused.

I'm sure bindings are done:

https://github.com/dotnet/android-libraries/blob/main/config.json#L2921-L2929

I remember I did it few weeks ago, but then it was merged into another branch and then into main:

https://github.com/dotnet/android-libraries/blame/main/config.json#L2921-L2929

Tho the package[s] was[were] not published:

https://www.nuget.org/packages?q=Xamarin.GooglePlayServices.MLKit.DocumentScanner

Why? Dunno.

moljac avatar Nov 22 '25 11:11 moljac

Signing is blocking a package, attempting a build again this week:

  • https://github.com/dotnet/android-libraries/pull/1318

jonathanpeppers avatar Nov 24 '25 14:11 jonathanpeppers