flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
952 stars 727 forks source link

New ML Kit Support to Flutter #581

Closed myavuzokumus closed 5 months ago

myavuzokumus commented 7 months ago

Google announced a new ML Kit, which is a Document scanner. Can you implement this in Flutter?

https://developers.google.com/ml-kit/vision/doc-scanner

Sahil-kachhap commented 7 months ago

@bensonarafat @bharat-biradar, I am interested in working on this issue. If you can please let me know how and from where can I start my contribution, it would be much helpful for me.

bensonarafat commented 7 months ago

@Sahil-kachhap I have plans on adding this new feature. No issue, we could work it together. That will cool thanks

Sahil-kachhap commented 7 months ago

@Sahil-kachhap I have plans on adding this new feature. No issue, we could work it together. That will cool thanks

Oh Ok, Let me know if I could of some help anywhere in here.

edwinmacalopu commented 7 months ago

You can take guidance from https://pub.dev/packages/cunning_document_scanner I already implement Mlkit Document scanner

fbernaly commented 7 months ago

I do not have an ETA for this. Feel free to send a PR with your contributions.

bensonarafat commented 7 months ago

Can be assigned to me also @Sahil-kachhap

@Sahil-kachhap we can start from the docs from google here and the package developed by @edwinmacalopu here

Document Scanner is still on beta for Android and not currently on IOS

ablause commented 6 months ago

Hi @bensonarafat, can you confirm whether you are currently working on this feature or whether you intend to start it? I'd like to understand the status and if you need any further help to make it happen. Thanks!

bensonarafat commented 6 months ago

@ablause yeah, i am currently working on the feature

bensonarafat commented 6 months ago

@edwinmacalopu @ablause can we connect on this?
Trying to get activity on onAttachedToActivity can we talk about this. thanks

ablause commented 5 months ago

@bensonarafat, could you share the repository or link a PR to this issue so we can better understand or help you implement it. Thanks!

bensonarafat commented 5 months ago

Great @ablause Here is my fork repo https://github.com/bensonarafat/google_ml_kit_flutter We can continue from here. thanks

fbernaly commented 5 months ago

@bensonarafat Thanks for the contributions, once you have the feature ready send me the PR and I will review and release a new version ASAP

fbernaly commented 5 months ago

The feature is in development and testing. If you want to give it a try edit your yaml file and point it to

google_mlkit_document_scanner:
  git:
    url: https://github.com/flutter-ml/google_ml_kit_flutter.git
    ref: feature/doc_scanner
    path: packages/google_ml_kit_flutter
bensonarafat commented 5 months ago

This is also help.

Wrote an article on it

https://bensonarafat.medium.com/implementing-the-new-document-scanner-ml-kit-to-your-flutter-app-e3d978ef2957

bensonarafat commented 5 months ago

Closing this. Document scanner is now available

ChenAce commented 5 months ago

hey guys, may i know any plan to add iOS platform?

ChenAce commented 5 months ago

if the phone no google service, that means can not use the feature....

ablause commented 5 months ago

@ChenAce, it all depends on whether Google decides to integrate it into iOS as well.

I suggest exploring another package if you need iOS support. One option could be leveraging VisionKit by Apple for iOS and MLKit by Google for Android. Perhaps consider using this one: flutter_doc_scanner.

ChenAce commented 5 months ago

@ChenAce, it all depends on whether Google decides to integrate it into iOS as well.

I suggest exploring another package if you need iOS support. One option could be leveraging VisionKit by Apple for iOS and MLKit by Google for Android. Perhaps consider using this one: flutter_doc_scanner.

Thank you for your reply, but I have a suggestion. If we could extract the edge detection model for developers to use separately, wouldn't it be possible to take a single frame from the camera, pass it to the model, and after the model identifies the edges, return the position of the bounding box to be rendered on the preview frame? Wouldn't this make it dynamic?