[Arduino][MindPlus][Blocks] Object Tracking

Last revision 2026/08/07

This tutorial covers graphical programming of object tracking function with Arduino and HUSKYLENS 2.HUSKYLENS 2 object tracking outputs ID, name, X Y position and box size via serial, like giving each target a labeled bounding box; Mind+ blocks read one frame of data and check if a trackable target exists.

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.

Interface Diagram

Click “Upload” in Mind+ and wait for the upload to complete.
Use the touch screen to enter the Object Tracking function of HUSKYLENS .

Interface Diagram

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.

Interface Diagram

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?

TOP