Image Tracking
Last updated
Last updated
Provide a Class externally, owned relative functional API.
Resources required to initialize tracking.
Parameter
Constraint
Available value
Introduction
Track Width
Required
Int. 320, 480 or 720
Width value of tracked image data.
Track Height
Required
Int. Arbitrary value
Width value of tracked image data.
Vertical FoV
Required
Float. Suggest 40deg
Field of view of the tracking matrix.
Return value: Promise. Resolve presents Initialization successful, reject presents Initialization failed.
Set the identification map data to be tracked.
Parameter
Constraint
Available value
Introduction
Marker
Required
Array Buffer
Identification map data to be tracked
Return value: marker Id: Int. Identification map Id.
Remove all identification map data.
Parameter
Constraint
Available value
Introduction
Null
Return value: Null
Track a certain camera frame.
Parameter
Constraint
Available value
Introduction
Camera Frame
Required
Array Buffer
Certain camera frame data
Return value: track Matrix: Object { tx, ty, tz, rxx, rxy, rxz, ryx, ryy, ryz, rzx, rzy, rzz, marker Id } | null.
When return to track Matrix, it presents identification map data to be tracked; when return to null, it presents identification map data not to be tracked.