Self-Learning Classifier Example

HUSKYLENS 2 self-learning classifier lets you train custom objects and then read their ID and name via Mind+ blocks, like a camera that remembers faces. It’s like a smart labeler that tags each learned object with an incremental ID and an optional custom name, and then reports whether that object is detected and what its stored name is through the serial port.

1.Self-Learning Classifier Blocks

Before You Start:

1.1 Recognize Learned Object and Output ID & Name

In the self-Learning Classification function, HUSKYLENS 2 can learn any custom object and recognize it after training. For more details, refer to Self-Learning Classifier.

Once an object has been learned, HUSKYLENS 2 can recognize it when it appears again. The following sample program can be used to obtain the ID and name of the recognized object.

Interface Diagram

Click “Upload” in Mind+ and wait for the upload to complete. Then use the touchscreen to enter the self-Learning Classification function of HUSKYLENS 2.

Interface Diagram

Result:If a learned object has a custom name, the name output via the serial port matches the name displayed on the HUSKYLENS 2 screen

Interface Diagram

1.2 Self-Learning Classification Blocks Description

block description
Used to obtain one recognition result of a learned object under the Self-Learning function of HUSKYLENS 2. 。
Determines whether a previously learned object has been detected.
Obtains the related data of a learned object, including its ID and name. IDs start from 1 in learning order. If no custom name is set, the default is “Object.” If customized, the name matches the one shown on the HUSKYLENS 2 screen.

Was this article helpful?

TOP