Failed to read white on black barcode. Matrix Data Matrix

Data matrix barcode support was added in iOS 8, and I can use it to read data matrix barcodes if they are black on white (dark in the light). However, he never reads the white barcode on black (light dark).

Reads this tone:

enter image description here

Unable to read the following:

enter image description here

Light should be maintained in the dark in each ECC 200 data matrix.

Does anyone have an idea how to get iOS 8 to read light on a dark Data Matrix barcode?

+5
source share
1 answer

You can invert the colors of your AVCaptureSession in real time, which allows you to read the data matrix code.

You can use GPUImage to invert colors. It connects quickly and easily. Just invert and let AVFoundation find it as usual.

0
source

Source: https://habr.com/ru/post/1209606/


All Articles