ZXing ResultPoints to pixels

假如想象 提交于 2020-01-16 17:35:51

问题


I am using ZXing.NET to detect a location of a QR code. When I call the BarcodeReader.Decode(bitmap); function I get an a Result object with ResultPoint[]s as a property that represent the markers in the QR code. It has X and Y coordinates but they are floats and it gives strange results with decimal numbers. I just need the location in pixels not in banana's or something else...

Is this possible? How to convert the ResultPoints to pixels? Why am I the only person on the planet asking this question? Is it so precise that it can recogise that something is between two pixels because of greyscale / vague pixels?

UPDATE I tried setting TryHarder to true and now it gives a logical position in pixels. Still does not make sense to me that I get half pixels as a result.

来源:https://stackoverflow.com/questions/54711536/zxing-resultpoints-to-pixels

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