juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
893 stars 515 forks source link

Deprecate MLKit for iOS #1225

Open navaronbracke opened 3 weeks ago

navaronbracke commented 3 weeks ago

mobile_scanner currently uses MLKit on both iOS and Android.

However, for iOS there is a first-party library, namely the Vision API from Apple. We already use this implementation for MacOS.

We should switch iOS over to use that implementation, which brings a bunch of improvements. The following checklist lists the points that we should tackle when doing this migration:

juliansteenbakker commented 3 weeks ago

I have created a first draft/beta of a shared ios & macos implementation of the Vision API. Please see ios-vision for the current code. It is working right now, but still needs some work on some of the features like zoom control. I will update this in the comming days.

P0labrD commented 2 weeks ago

Hello @juliansteenbakker My project would very much benefit from this change, I thank you for it 🙏 If you need any help to fasten the new release, I'd be happy to help 🙂

juliansteenbakker commented 2 weeks ago

I have uploaded a new version, v7.0.0-beta.2, with some fixes. Feel free to try it out!

RutgerVleuten commented 3 days ago

Just tested an integration of v7.0.0-beta.3, no issues found so-far ... looking forward to the public release!