Академический Документы
Профессиональный Документы
Культура Документы
17
7
ARToolKit NFT trackers
• ARToolKit NFT is able to recognize and track natural features of photos and
documents, specifically, **planar textured surfaces**
• The system has to be trained with a surface in advance to recognize and
track the surface
• The output of this training is a set of data that can be used for realtime
tracking in application using the ARToolKit
19
0
ARToolKit
• Go to: http://artoolkit.org/download-artoolkit-sdk
• Download latest ARToolKit SDK
19
1
ARToolKit NFT trackers
• Print the file “pinball.jpg” from c:\Program Files (x86)\ARToolKit5\doc\Marker
images\
19
2
ARToolKit NFT trackers
• Open “nftSimple.exe” from c:\Program Files (x86)\ARToolKit5\bin\ and press “q”
19
3
ARToolKit NFT trackers
• Open a Command Prompt
• Move to folder "bin“ for example cd c:\Program Files (x86)\ARToolKit5\bin\
19
4
ARToolKit NFT trackers
• Use genTexData.exe to generate tracker data
• Insert command line: genTexData.exe C:/path/to/target.jpg
where C:/path/to/target.jpg is path to the template image
• Use the implicit settings
19
5
ARToolKit NFT trackers
• After running the genTexData.exe program there are generated the files:
• target1.fset; target1.fset3; target1.iset
• After running the dispFeatureSet.exe to display the features that have been
found: dispFeatureSet.exe C:/path/to/target
19
6
ARToolKit NFT trackers
• Modify the nftSimple.exe example
• copy the files target1.fset; target1.fset3; target1.iset to
ARToolKit5\bin\DataNFT\
• Open the file ARToolKit5\bin\Data2\markers.dat in a text editor (fro
example: wordpad, notepad++)
• Change at line 16 the name of the target from pinball to your target
name used by genTexData.exe (for example: target1)
19
7
ARToolKit NFT trackers -Result
• Run the nftSimple.exe
19
8
ARToolKit NFT trackers in Unity
• Copy the files target1.fset; target1.fset3; target1.iset to Streamming Assets
19
9
ARToolKit NFT trackers -Unity
• Add component ARMarker to scene
• Enter a name to the "Tag" field of ARMarker (E.g. "marker1"). This tag is
used to associate ARMarker with ARTrackedObject
• Select NFT to the Type files
• Enter the NFT dataset name; for example target1
20
0