Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify specified marker #6

Open
JDok opened this issue Jun 11, 2012 · 1 comment
Open

Identify specified marker #6

JDok opened this issue Jun 11, 2012 · 1 comment

Comments

@JDok
Copy link

JDok commented Jun 11, 2012

Hello,

I want to use the same marker twice at the same time and place a 3d model on each.
Is it possible to check which of the two markers is moved so I know which model I have to move?
Hava a marker a unique ID or something like this?

I tried other AR Librarys but these dont track markers, they return every frame a new list of detected markers without relation
to the frame(s) before.
Does this JSARToolKit do too?

@kig
Copy link
Owner

kig commented Jun 11, 2012

If you print two different ID markers, you can manually track them by the ID. There's some code in the detector to track markers frame-by-frame, I guess you could co-opt that to your purposes. Or roll your own, the basic idea is that you hang on to the marker positions from the previous frame and match current frame markers to the closest previous frame markers.

But yeah, print two different ID markers, that's the easiest way. See the video tests with the whale model and 22 cube on the iPhone to see an example of getting the ID of the marker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants