سؤال

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.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top