Marker Tracking
Overview
This example demonstrates ArUco marker tracking on the Magic Leap 2.
The example scene help text may contain information on image tracking or barcode scanning, however, those features have not been implemented yet. Pressing the bumper to "change modes" will also have no effect. Currently the only feature is marker tracking.
Requirements and Setup
Follow the SDK Examples Project Setup page for steps on how to open the SDK Examples Project and build the MarkerTracking example scene, located under Assets/MagicLeap/Examples/Scenes/Meshing.unity
.
Permissions
You must enable the CAMERA
and MARKER_TRACKING
permissions in the Unity Project Settings. Refer to the Permissions Guide for more information.
Configuration
Open the MarkerTracking example scene and select the CombinedTrackingExample GameObject in the hierarchy under the Example parent. In the inspector, under the Marker Tracking Example script, enable Marker Scanning and select ArUco as the marker type.
ArUco Tracking
Show your headset an ArUco marker from a dictionary matching that of the configured marker type on the CombinedTrackingExample object and press the trigger to begin scanning. Logs will appear in the help text box.
You can find markers at https://chev.me/arucogen/.