mobile_scanner icon indicating copy to clipboard operation
mobile_scanner copied to clipboard

Scan inverse datamatrix not working

Open Auramel opened this issue 1 year ago • 4 comments

I'm trying to scan datamatrix code on black background and it not working. I think it need to be reverse. How I can do it?

image

Auramel avatar Mar 04 '24 11:03 Auramel

The image itself needs to be rotated? I think your best option is to ensure that the input image is in the correct orientation when it is going to be scanned. I don't think we have options to tell MLKit that the source image is actually rotated.

navaronbracke avatar Mar 05 '24 09:03 navaronbracke

The image itself needs to be rotated? I think your best option is to ensure that the input image is in the correct orientation when it is going to be scanned. I don't think we have options to tell MLKit that the source image is actually rotated.

No rotate needed. Inverse colors need only. Black -> white, white -> black. I worked with flutter_zxing it has arguments: tryInverse, need argument like it.

Auramel avatar Mar 11 '24 06:03 Auramel

I don't think MLKit exposes such a configuration option. You could try opening a feature proposal at MLKit for this.

navaronbracke avatar Mar 11 '24 07:03 navaronbracke

I don't think MLKit exposes such a configuration option. You could try opening a feature proposal at MLKit for this.

is there an opportunity to do this from flutter? for example, try to invert the colors before transferring the image to MLKit

Auramel avatar Mar 11 '24 07:03 Auramel