Pergunta

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.

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top