khoren93 / flutter_zxing

Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
https://pub.dev/packages/flutter_zxing
MIT License
100 stars 56 forks source link

Convert CameraImage to grayscale before processing #141

Open bonsoirelliot opened 6 months ago

bonsoirelliot commented 6 months ago

Hello! Now there is a problem with recognizing codes that are on a colored background. Is it possible to add an option to switch the camera image to black and white mode before processing it?

khoren93 commented 6 months ago

@bonsoirelliot

Could you please provide a demo image where you are experiencing this issue? This will help me better understand the problem and test potential solutions.

Thanks!

bonsoirelliot commented 6 months ago

@khoren93 image image