Get marker coordinates in ARToolKit

How to get marker coordinates in ARToolKit and save as 2D coordinates. So I can try to slice the jpg file using these coordinates.

+3


source to share


1 answer


The two-dimensional positions of both corners and marker center are easy to extract. They are stored in the ARMarkerInfo structure. The corners are ARMarkerInfo.vertex [] [] and the center is ARMarkerInfo.pos [].



The easiest place to get it is in the main detection loop, for example. mainLoop in simple or simple examples.

+3


source







All Articles