Apriltag ID Detection In Code

Hello, quick question. I Searched nearly Everywhere but Did not Find Anything On The Topic Of Reading The ID Of The Apriltag From a Camera in code. We are Using limelight 2+ To Detect The AprilTag.

But again, Can i Read The ID Value Of An Apriltag From a Camera, In This Specific Example: Limelight 2+?

1 Like

Checked that Already, but thanks for the help.

Found on the API Part the “tid” command in NetworkTables, But i am Stuck with getting this number to the SmartDashboard. Because it is Refered as NetworkTableEntry, you can convert it by giving it: “getNumber()” but you will need to write down A Default Number and then after Writing it Down, Will not Register The ID You Got On You`r Limelight and only Uses the Given Default Value

To my understanding, the Limelight 2+ cannot detect apriltags by default. Only the Limelight 3 can. However, you can get a Limelight 2+ to detect apriltags by putting the Photonvision firmware onto it. Limelight Installation - PhotonVision Docs Here is the link to the documentation both on how to flash the Limelight 2+ as well as how Photonvision works as a whole.

Nice. Never knew that. Just assumed it couldn’t do apriltags without Photonvision.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.