An android project that can read different markers(multiple) and provide different output(video) for each tracked marker.
What have we achieved so far: 1) We have used the example project provided in ARToolkit(ARMultiProj) for tracking of multiple marker, it tracks one marker only.
What we are left to achieve:
1) we are trying to implement the multiple marker tracking concept for playing different video on tracking of different markers using NFT.
2) I have used the ARMultiProj right out of the box from android studio example projects provided with ARToolkit 5.3.2 and thats where the ARMultiProj failed to detect multiple trackers, instead it tracked just one all the time.
In this case, its the cubes for 6 markers in the following;
Marker.dat
the number of patterns to be recognized
6
marker 1
a.patt
40.0
1.0000 0.0000 0.0000 0.0000
0.0000 1.0000 0.0000 0.0000
0.0000 0.0000 1.0000 0.0000
marker 2
b.patt
40.0
1.0000 0.0000 0.0000 100.0000
0.0000 1.0000 0.0000 0.0000
0.0000 0.0000 1.0000 0.0000
marker 3
c.patt
40.0
1.0000 0.0000 0.0000 200.0000
0.0000 1.0000 0.0000 0.0000
0.0000 0.0000 1.0000 0.0000
marker 4
d.patt
40.0
1.0000 0.0000 0.0000 0.0000
0.0000 1.0000 0.0000 -100.0000
0.0000 0.0000 1.0000 0.0000
marker 5
f.patt
40.0
1.0000 0.0000 0.0000 100.0000
0.0000 1.0000 0.0000 -100.0000
0.0000 0.0000 1.0000 0.0000
marker 6
g.patt
40.0
1.0000 0.0000 0.0000 200.0000
0.0000 1.0000 0.0000 -100.0000
0.0000 0.0000 1.0000 0.0000
For understanding and convenience, i have put below the specific log from the project.
Logs:
E/ARToolKit: marker config():multi;Data/multi/marker.dat
E/libARWrapper: ARController (native): [info]Added marker (UID=0), total markers loaded: 1.
E/libARWrapper: ARController (native): [info]Marker 0 now visible
E/libARWrapper: ARController (native): [info]Marker 0 no longer visible
As you can see above, the project is able to track and create the assets from assets/data/multi folder of the different patt files along with the camera_para.dat and marker.dat yet it doesnt track other markers.
Kindly provide me with some guidelines on what would be the possible implementation for achieving the above scenario with code snippets and exact changes in ARToolkit files(if required). Thanks in advance!
Regards & Thanks,
Ganeshan P