AprilRobotics / apriltag

AprilTag is a visual fiducial system popular for robotics research.
https://april.eecs.umich.edu/software/apriltag
Other
1.47k stars 522 forks source link

change default decimation parameter for python wrapper #285

Closed wonjune23 closed 11 months ago

wonjune23 commented 11 months ago

I was stunned for a while when using Python wrapper, because the behavior was different from that of C. Specifically, when the image is blurry and noisy (bad lighting & bad focus), and a tag is close enough so that it takes a good portion of an image, the Apriltag detection fails for Python wrapper, while the original C implementation manages to detect it nevertheless. The problem was that the default decimation value was 2.0 for C, and 1.0 for Python wrapper. As having different default behavior can be deceiving to many, and is counter-intuitive, I open this PR.