问题
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