문제

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