unreal.MagicLeapImageTrackerFunctionLibrary
¶
- class unreal.MagicLeapImageTrackerFunctionLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibrary
Magic Leap Image Tracker Function Library
C++ Source:
Plugin: MagicLeap
Module: MagicLeapImageTracker
File: MagicLeapImageTrackerFunctionLibrary.h
- classmethod enable_image_tracking(enable) → None¶
If true, image tracker will detect and track targets.
When enabled Image Tracker will gain access to the camera and start trackingimages. Enabling image tracker is expensive, takes about 1500ms on the average.
When disabled Image Tracker will release the camera and stop tracking images. Internal state of the tracker will be maintained (i.e. list of active/inactive argets and their target_handles).
This is done automatically on application pause / resume.
- Parameters
enable (bool) –
- classmethod get_max_simultaneous_targets() → int32¶
Gets the maximum number of Image Targets that can be tracked at any given time.
- Returns
The maximum number of Image Targets that can be tracked at any given time.
- Return type
int32
- classmethod is_image_tracking_enabled() → bool¶
Gets the active state of the image tracking system.
- Returns
True if image tracking is enabled, false otherwise.
- Return type
- classmethod set_max_simultaneous_targets(max_simultaneous_targets) → None¶
Set maximum number of Image Targets that can be tracked at any given time.
If the tracker is already tracking the maximum number of targets possible then it will stop searching for new targets which helps in reducing the load on the CPU. For example, if you are interested in tracking a maximum of x targets from a list y (x < y) targets then set this parameter to x.
The valid range for this parameter is from 1 through 25.
- Parameters
max_simultaneous_targets (int32) –