vbalagovic / flutter_scalable_ocr

Flutter scalable OCR package is a wrapper around google_mlkit_text_recognition where you can partialy select part of camera which text will be processed of.
https://pub.dev/packages/flutter_scalable_ocr
MIT License
60 stars 34 forks source link

can we turn on flash / torch camera ? #5

Open yogithesymbian opened 1 year ago

yogithesymbian commented 1 year ago

i only read readme.md and not install yet. but i looking for first information, want to know..., this package support for torch / flash ? and how about other device ( ios ) also can be working ? thankyou ...

vbalagovic commented 1 year ago

Hi, it works on iOS and Android, the torch is not implemented through this package, but you can add torch on/off on the screen where you're using this package. But good idea, I will implement it when I upgrade everything to 3.10 :)

yogithesymbian commented 1 year ago

Thanks for your feedback! I'm glad to hear that the package works on both iOS and Android. Adding the torch on/off functionality sounds like a great idea, especially for enhancing user experience. Looking forward to the upgrade to version 3.10 and seeing the new features. Keep up the good work!

yogithesymbian commented 1 year ago

which package ? ( i use dart 2.17 )

torch [EnableTorchExistentUserException: There is an existent camera user, cannot enable torch: android.hardware.camera2.CameraAccessException: CAMERA_IN_USE (4): setTorchMode:2065: Torch for camera "0" is not available due to an existing camera user]

i have tried with torch_light: ^1.0.0 but it cannot be use on camera position is ready, still looking for toggleFlash like on qr_scanner ,,,