flutter-ml / google_ml_kit_flutter

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

Extreme Slow on Google Pixel 9 XL #677

Closed FantaMagier closed 3 days ago

FantaMagier commented 4 days ago

Title: I am useing the normal Code as always with the newest version of the google_ml_kit_flutter package but the respons from the text ml kit is extreme slow. The barcode ml kit is working fast and fine.

To Reproduce Steps to reproduce the behavior:

  1. Use normal demo on Google Pixel 9 Pro Text ML Kit

Expected behavior Faster Result instead 3-4 seconds delay even after the text is gone, text is getting scanned,.

Platform (please complete the following information):

Can someone reproduce the error?

Additional context The Barcode Scanning works as exspected and the Imageformat or changing Camera from CameraX to Camera1 doesn't change something

Older Versions works as exspected: google_mlkit_text_recognition: ^0.9.0 and google_mlkit_text_recognition: ^0.4.0

FantaMagier commented 3 days ago

Maybe we need to update to the newest text reco kit version for android 16.0.1

https://developers.google.com/ml-kit/release-notes

fbernaly commented 3 days ago

Fixed in PR: https://github.com/flutter-ml/google_ml_kit_flutter/pull/671