[Arduino][MindPlus][Blocks] Self‑Learning Classifier
This tutorial covers graphical programming of the self-learning classification function with Arduino and HUSKYLENS 2.HUSKYLENS 2 self-learning classifier lets you train custom objects, then recognize them and read their ID and name via Mind+ blocks, like tagging items so the camera remembers and reports each label accurately.
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.
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.
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
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?
