dmtx / libdmtx

libdmtx Library
Other
297 stars 133 forks source link

The extracted rectangle is wrong (specifically the top error) #44

Open SeventhBlue opened 3 years ago

SeventhBlue commented 3 years ago

QQ截图20210818104047 Thanks for this library, very much. May I ask the author what caused this and how to solve it?

msva commented 2 years ago

Hi there! 1) Actually, original author is unavailable long ago, and I'm just keeping kind of maintenance when I have enough spare time (I'm not even guru on the entire codebase and last time I looked in the code was about few years ago). For now, project is in "active maintainers wanted" stage and I'm ready to give push access to anyone willing to co-maintain it.

2) Actually, I didn't get what is wrong on attached image and what exactly do you wat to "solve"?

raulaguila commented 2 years ago

The position of the rectangle it returns is inverted. Pylibdmtx is referenced to the lower left corner.

yao-xiaofei commented 1 year ago

I have encountered a similar issue, but I am not sure if it is the problem you are referring to:

In libdmtx, the origin of the image coordinates is located at the bottom left corner of the image, while in OpenCV, the origin is located at the top left corner of the image. They have a mirror relationship in the Y direction.

This is the explanation I found in the libdmtx documentation: http://libdmtx.wikidot.com/data-structures

1