Object Classification Example

HUSKYLENS 2 object classification lets Mind+ projects detect learned items and read their fixed IDs and names in real time. It’s like giving your camera flashcards so it can say which card it sees. After training, run the sample code, scan the scene once to get recognition results, check whether a specific object is present, and retrieve its pre-assigned ID and label while confidence remains only on-screen.

1.Object Classification

Before You Start:

1.1 Recognize Learned Objects and Output ID/Name

Under the Object Classification function, HUSKYLENS 2 can classify 1000 fixed categories of objects. 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: Object Classification.

Output Result:As shown below, when a learned object appears in the frame, its name, ID, and confidence level will be displayed (confidence level cannot currently be retrieved via program).

Interface Diagram

1.2 Object Classification Blocks Description

block Description
Under the HUSKYLENS 2 Object Classification function, used to acquire the recognition result of a learned object from one scan.
Judges if a specific learned object has been detected.
Gets data for a specific learned object, including ID and Name. The IDs in Object Classification are pre-assigned in the model, so the user's learning order is not related to the object ID.

Was this article helpful?

TOP