Self-Learning Classifier Example

HUSKYLENS 2 self-learning classifier lets you train it once and auto-recognize objects later with ID, name and confidence; it’s like giving the camera flashcards so it remembers each item. Mind+ blocks fetch one result, check if a learned object appears, and read its ID/name in order.

1.Self-learning Classifier Blocks

Before You Start:

1.1 Recognize Learned Objects and Output ID/Name

Under the self-learning classification function, after an object has been learned, HUSKYLENS 2 can recognize it when it sees it again. The following example program can be used to get the corresponding ID and name of the recognized learned object.

Interface Diagram

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

After HUSKYLENS 2 finishes learning the object, point the HUSKYLENS 2 camera at the learned object and observe the output results. For detailed instructions on how to learn objects, refer to: Self-Learning Classifier.

Output Result:As shown below, when a learned object appears in the frame, it will be framed, and its name, ID, and confidence level will be displayed. If the object's name has not been set, the default output name is: Object. For how to set the name, please see Self-Learning Classifier.

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