Object Tracking Example

HUSKYLENS 2 object tracking blocks capture an object’s ID, name, center XY, width and height in real time; it’s like a smart tape measure that follows one chosen item. In Mind+ you run the sample, frame a target, then use blocks to check if a trackable object exists and read data for the one nearest the crosshair.

6.Object Tracking Blocks

Before You Start:

6.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:

Interface Diagram

Click 'Run' in Mind+ and wait for the program to upload.

Point the HUSKYLENS 2 camera at the object to be tracked (the target object must be framed first, read Object Tracking.

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 "Object" .

Interface Diagram

6.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?

TOP