Tracking configuration parameters for setting up a poster tracker.
The "posterTracker" uses feature-based tracking with a reference image for determining the camera pose.
On HoloLens, the poster tracker works in meters, so setting the realWidth
of the poster leads to interpretation in meters. In order to stay compatible with your units, you may set the metric
to m
.
The following parameters can be set inside the tracking configuration file:
Parameter | Type | Default value | Example |
---|---|---|---|
imageURI | string | mandatory to set | "imageURI": "project-dir:myimage.png" "imageURI": "http://myserver.com/myimage.png" |
This string defines a URI to the reference image. Supported are PNG and JPEG images. If the image file is in the same directory as the configuration file, it can be set using for instance The usage of http URIs is currently not possible on UWP, which includes HoloLens. If you require this feature, please contact us. | |||
metric | string | mm | "metric": "m" |
Only interpreted on iOS with | |||
realWidth | float | 1 | "realWidth": 0.269 |
This value defines the real world width of the reference image in the unit measure of the virtual scene. If you have an A4 printed image you want to track - we recommend setting a value in meters in order to stay compatible with the HoloLens poster tracker. | |||
transform | json struct | identity transformation | "transform": { "t": [ 0.0, 0.0, 0.0], "r": [ 1.5707963, 0.0, 0.0 ] } |
If this transformation is not set, the origin is located in the center of the reference image. The reference image lies in the xy-plane, with z pointing away from the camera. If this is not desired, the parameter can be used to transform the coordinate system of the reference image. The vector | |||
featurePrediction | bool | true | "featurePrediction": false |
If the reference poster cannot be tracked safely, the camera pose is predicted without a strong validation. To disable this feature, set this parameter to | |||
maxFramesFeaturePrediction | int | 15 | "maxFramesFeaturePrediction": 20 |
This value defines the number of frames of the prediction step. If the number of frames is reached, the re-initialization is executed. The prediction is only used for non-extendible tracking. | |||
extendibleTracking | bool | false | "extendibleTracking": true |
Turns the extendible tracking on or off. If extendible tracking is turned on, features in the surrounding of the reference image are additionally reconstructed and tracked. Which makes it possible that the camera can be tracked, even if the reference image is not visible any more. The user needs to perform a SLAM dance, which means to translate and rotate the camera, so that there is enough baseline for the feature reconstruction. | |||
debugLevel | int | 0 | "debugLevel": 1 |
This value specifies the amount of visual output for debugging purposes. Debug level 1 produces some images for visualizing several debug information. Debug level 0 generates no debug information at all. This mode is faster and should be use for a final release. Debug level 2 is a mode for internal debugging purposes. Only use this if you know what you want to do with it. Enabling this feature can significantly harm the performance of the tracking pipeline. | |||
synchronous | boolean | false | "synchronous": true |
This parameter exists ONLY FOR TESTING PURPOSES. Don't set it to true unless you really know what your are doing! Usually the tracking utilizes multiple threads. If this parameter is set to true the whole tracking process will run in only one thread. This will reduce the performance, but in combination with the synchronous worker interface it allows you to get deterministic tracking results. This is useful if you want to get the same tracking results for a sequence of images independent from the current processor and GPU utilization. |