jhoogstraat / fast_barcode_scanner

A flutter plugin that allows your users to scan any type of barcode on iOS and Android
41 stars 53 forks source link

Capture image in addition to barcode #46

Open diogoroos opened 2 years ago

diogoroos commented 2 years ago

Congratulations on the brilliant package! I had problems with others... I would like to suggest an implementation at least in the fast_barcode_scanner interface for me or others to implement in Flutter. The idea would be to capture an image passing parameter (perhaps with name format?) to the interface to return bytes (or something else) of the capture. Instead of also having to implement other packages that already use CameraX, I could use it to capture images... even thinking about using other features of MLKit...

jhoogstraat commented 2 years ago

Thanks, glad to hear!

Do you mean extending this plugin to a broader camera-plugin which also happens to support ML stuff (like barcode scanning and all the other shenanigans of ML Kit and Apple AVFoundation / Vision)?

That would indeed be cool, but you would always have the dependency on ML Kit and ML-Models, even if you only take photos.

alholan commented 1 year ago

hi jhoogstraat, Congratulations on the brilliant package! too. I suggest to capture the [paused video] and export the image file in parallel to code. As iS now: 1- mode: DetectionMode.pauseVideo, 2- onScan: (code) => codeStream.add(code), To Be: 1- mode: DetectionMode.pauseVideoandsafeimage, 2- onScan: (code, Image) => codeStream.add(code, Image), String code, File Image

that will be helpful in audit for scan...