Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

How to track an specific ArUco code with pan-tilt head example?

0 votes

Hello everyone.

I have been studying the tutorial, and the code for the following example:


However, now I wonder how I can do to follow a single ArUco code, I mean, I would like to make the camera capable of following only the ArUco code corresponding to number 5, and ignore the rest of the codes that it presents.

Could you give me an idea of how to do this? or a related link?

Thanks a lot.

asked May 10, 2018 in Programmer Questions by cbodington (710 points)

1 Answer

0 votes

By default, the T2 x y messages do not contain the ID. But if you do

setpar serstyle Normal

Then you will get messages

N2 id x y w h

See http://jevois.org/doc/UserSerialStyle.html for details.

Then you need to modify the state machine in the arduino code to look for N2 first, then get the id, etc

Note that aruco ids start with a U and then a number. Once you have the id, you can ignore the ones you do not care about.

answered May 10, 2018 by JeVois (46,580 points)