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

reset errno at the beginning of Python function that check it in the end #323

Closed christian-rauch closed 3 months ago

christian-rauch commented 3 months ago

Another Python module may set the errno but not inform the user about an error. This will affect the errno checking in the Python bindings apriltag_new and apriltag_detect. Avoid this by resetting errno at the beginning of those functions.

Fixes #320 .