Object Tracking Example
HUSKYLENS 2 object tracking outputs each detected target’s ID, name, XY position, width and height via serial, like a live GPS tag for every object in view. It’s like giving each object its own labeled box on screen so Mind+ can read and use that data. Users upload the sample program, enter Object Tracking mode on the touch screen, select a target, then open the Mind+ serial monitor to observe the streaming tracking data. One block grabs a full data set from the current frame, while the others simply check whether any trackable target is present in that frame.
1.Object Tracking Blocks
Before You Start:
1.1 Object Tracking Output Data
When HUSKYLENS 2 detects a trackable target, it can obtain related tracking data and print it through the serial port. The readable data includes object ID, name, XY coordinates, width, and height.For detailed steps, read Object Tracking.
Example program is as follows.
Click “Upload” in Mind+ and wait for the upload to complete.
Use the touch screen to enter the Object Tracking function of HUSKYLENS .
Point the HUSKYLENS 2 camera at the object to be tracked (the target must be selected first). After the target is selected, open the serial port in Mind+ and observe the output.
Result: The tracked object’s ID, name, XY coordinates, width, and height can be output. The default name of the tracked object is “track.” To modify the name, refer to Object Tracking.
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. |
|
Determines whether there is a trackable target in the current frame. |
Was this article helpful?
