Unable to read white on black Data Matrix barcode

五迷三道 提交于 2020-01-13 02:46:07

问题


Data Matrix barcode support was added to iOS 8 and I'm able to use it to read Data Matrix barcodes if they are black on white (dark on light). However, it never reads a white on black (light on dark) barcode.

Reads this fine:

Unable to read this:

Per Data Matrix ECC 200, light on dark should be supported.

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


回答1:


You can invert the colors of your AVCaptureSession in real time, allowing you to read the Data Matrix code.

You can use GPUImage to invert the colors. It's fast and plugs in easily. Just invert and let AVFoundation find it as normal.



来源:https://stackoverflow.com/questions/27580953/unable-to-read-white-on-black-data-matrix-barcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!