# AprilTag Marker Tracking in Unity ## Survey source 1. April Tag: https://april.eecs.umich.edu/software/apriltag 2. OpenMV(official): https://openmv.io/ 3. OpenMV(CN): https://book.openmv.cc/image/apriltag.html 4. Unity Package: https://github.com/keijiro/jp.keijiro.apriltag --- ## Support system: Windows (x86-64), macOS (x86-64), Linux (x86-64), iOS (arm64), Android (arm64) ## Environment 1. OS: Windows11 2. Unity Editor: 2021.3.7f1 3. Keijiro/AprilTag: 1.0.2 4. Keijiro/Test Tools: 1.0.4 ## Prepare Apriltag 1. TagDetector component only supports the `tagStandard41h12`. 2. Download `tagStandard41h12` from the repo: https://github.com/AprilRobotics/apriltag-imgs 3. Use imagemagick to rescale image. https://imagemagick.org/script/index.php  4. Scale image commond line: ```convert <small_marker>.png -scale <scale_chosen_in_percent>% <big_marker>.png``` https://github.com/AprilRobotics/apriltag-imgs  5. Result: Convert Tag-0  to  Convert Tag-66  to  ## Tracking apriltag in Unity 1. Setup scoped registrise  2. Package Manager/Packages: My Registries/ Import `AprilTag` and `Test Tools`.  3. Open Scene `DetectionTest` 4. Drop test video into project. 5. Change `Source Type` to `Video` on inspector and run project. Or choose sources type to Webcam.  6. Result  
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up