-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ghost tag detection #361
Comments
Generally, false positive detections are always possible, and some tag families work better than others. For example, the |
I'm surprised that detection is showing up, I would have expected the min corner angle check to invalidate it. I don't think I have time to look deeper into this right now, but here are some workarounds for this issue:
|
If you need a quick solution for your application and want to keep the
So if you just set a threshold of e.g. 10 there, you can ignore tag 43 and keep tag 2. |
Hi Christian, thank you for this suggestion. We are running into this exact same issue with tag family 16h5 and cannot change to a different family. Your idea of setting a threshold for What do you think is the most straight forward set a Thanks! |
The apriltag library does not have a function to load parameters via a yaml file in general. And as you can see from the example programs, only those have to option to read command line arguments via the Then, a threshold on the When you check how parameters are passed to the detector, you will find the See where this fits best in the pipeline. Maybe we need another parameter subset in |
Thank you, Christian, for suggesting the fix of using the decision margin, which worked perfectly for our requirements. Also, thank you, Max, for recommending parameter tuning for improved detection—it was very helpful. |
If you use such a parameter, can you send a PR that with some documentation? |
Describe the bug
The AprilTag detection code correctly identifies tags in images, but it randomly and frequently detects tag IDs on the ground or on various objects, even when no tags are present at those locations.
To Reproduce
Steps to reproduce the behavior:
Run the opencv_demo from the examples folder with provided images.
Observe the detection results for instances where non-existent tags are identified.
Expected behavior
No ghost tags should be detected; the algorithm should only identify actual tags present in the images.
Input Image
Screenshots
Operating Sytem
Ubuntu 22.04
Installation Method
I built AprilTag from source following the instructions in the README.
Code version
Current GitHub HEAD
Additional context
To troubleshoot the issue, I initially used a static image and tuned the parameters to minimize faulty tag detection. This approach worked with other images captured simultaneously. However, upon deploying the detection on fresh images, the issue of detecting ghost tags reappeared. Despite using the same commit from the AprilTag main branch, the problem persists.
The text was updated successfully, but these errors were encountered: