Object Tracking Example
HUSKYLENS 2 object tracking blocks output each detected target’s ID, name, center XY, width and height in real time, like giving every object a digital label on screen. It can check if a trackable target exists in the current frame and fetch data for the object closest to the crosshair.
1.Object Tracking Blocks
Before You Start:
1.1 Object Tracking - Output Relevant Data
When HUSKYLENS 2 detects a trackable target object, it can acquire relevant tracking data. The data that can be acquired includes: the object's ID, Name, XY coordinates, Width, and Height.
Example Program:
Click to upload the program to the device in Mind+, and wait for the upload to complete.
Point the HUSKYLENS 2 camera at the object to be tracked (the target object must be framed first, see Object Tracking for details).
After framing is complete, aim at the target object to observe the output results.
Output Result: It can output the tracked object's ID, Name, XY coordinates, Width, and Height. The default object name is "Obj". To modify the name, see the Object Tracking usage instructions.
1.2 Object Tracking Blocks Description
| block | Description |
|---|---|
|
Used to obtain one set of Object Tracking data under the Object Tracking function of HUSKYLENS 2. |
|
Determines whether there is a trackable target in the current frame. |
|
Obtains data for the object closest to the crosshair on the screen, including object ID, name, center X coordinate, center Y coordinate, width, and height. |
Was this article helpful?
