How can I retrieve the coordinates of a marker in ARToolKit and save like a 2D coordinates.
So I can try to cut a jpg file using those coordinates.
How can I retrieve the coordinates of a marker in ARToolKit and save like
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The 2D positions of both the corners and center of a marker are easily retrievable. They are stored in the ARMarkerInfo structure. The corners are ARMarkerInfo.vertex[][] and the center is ARMarkerInfo.pos[].
The easiest place to retrieve this is in the main detection loop, e.g. mainLoop in the simple or simpleLite examples.