Auxiliary Function-Customize ID Name

Last revision 2026/01/20

The article provides a detailed guide on customizing ID names for enhanced recognition using algorithms, supporting only English names. It includes demonstration programs for Mind+, MakeCode, and Arduino, showcasing how to change 'Face:ID1' to 'Jack:ID1', improving the recognizability of objects and people.

You can change the corresponding name of the ID, for example: change “Face:ID1” to “Jack:ID1”, and “Color:ID1” to “Red:ID1”.

This function is used to name a people or object, and make the result of recognition more recognizable.

All 6 algorithms support customizing the ID name except line tracking. And only English names are supported.

Demonstration: Change the name of ID1 to Jack in face recognition

  • Mind+ Sample Program:
    Custmoize_ID_Name_Mindplus

  • MakeCode Sample Program:

Custmoize_ID_Name_Makecode

  • Arduino Sample Program:
#include "HUSKYLENS.h"

HUSKYLENS huskylens;

void setup() 
{
    Serial.begin(115200);
    Wire.begin();
    while (!huskylens.begin(Wire))
    {
        Serial.println(F("Begin failed!"));
        delay(100);
    }
    while (!huskylens.setCustomName("Jack",1))  // bool setCustomName(String name,uint8_t id)
    {
      Serial.println(F("ID1 customname failed!")); 
      delay(100);
    }
}

void loop() 
{

}

Result

“Jack:ID1” will be shown on screen after HUSKYLENS learning the first face ID1. As shown below:

Custmoize_ID_Name_Result

Was this article helpful?

TOP