Function Introduction-Color Recognition
Last revision 2026/01/19
Explore the comprehensive guide on color recognition using HuskyLens, covering techniques to learn, recognize, and track multiple colors, adjust settings for accuracy, and understand firmware capabilities for enhanced functionality.
This function can learn, recognize, and track the specified color.
The default setting is to learn, recognize, and track a single color. This chapter uses learning, recognizing, and tracking multiple colors as an example to demonstrate.
Color recognition is greatly affected by ambient light. Sometimes HuskyLens may misidentify similar colors. Please try to keep the ambient light unchanged.
Operation and Setting
-
Dial the function button to the right or left until the word "Color Recognition" is displayed at the top of the screen.
-
Long press the function button to enter the parameter setting of the color recognition function.
-
Dial the function button until "Learn Multiple" is displayed, then short press the function button, and dial to the right to turn on the "Learn Multiple" switch, that is, progress bar turns blue and the square icon on the progress bar moves to the right. Then short press the function button to confirm this parameter.

-
Dial the function button to the left until "Save & Return" shows. And the screen prompts "Do you want to save the parameters?" Select "Yes" in default, now short-press the function button to save the parameters and return automatically.
Learning and Detection
-
Color Detection:
Point the icon "+" in the center of the HuskyLens screen to the target color block, and a white frame will appear on the screen, which selects the target color block automatically.
Adjust the angle and distance of the HuskyLens to the color block so that the white frame can include the entire target color block as far as possible.

-
Color Learning:
Point the “+” symbol at the first color block, and long press the “learning button”. A yellow frame will be displayed on the screen, indicating that HuskyLens is learning the color. At this time, adjust the distance and angle between HuskyLens and the color block, to let HuskyLens learn the color block in various distances and angles. Then, release the "learning button" to complete learning the first color block, meanwhile, a message "Click again to continue! Click other button to finish" will be displayed. Please short press the "learning button" before the countdown ends if you want to learn other color blocks. If not, short press the "function button" before the countdown ends, or do not press any button to let the countdown ends.

-
Color Recognition:
When encountering the same or similar color blocks, some color frames with IDs will be automatically displayed on the screen, and the size of the frames are same as the size of the color blocks.
The ID number is related to the order of learned color. For example, if a yellow block is marked for the first time and a green block is marked for the second time, when the yellow block is recognized, the words "Color: ID1" will be displayed on the screen, and when the green block is recognized, the words "Color: ID2" will be displayed on the screen.

In the firmware below V0.5.1, when there are multiple same or similar color blocks appear at the same time, the other color blocks cannot be selected, that is, only one color block can be recognized at each time.
In firmware version V0.5.1 and above, this function is optimized. when there are multiple same or similar color blocks appear at the same time, these color blocks can be recognized and selected at the same time. This function can be used to count the color blocks.
-
Count Color blocks
In firmware V0.5.1 and above, HUSKYLENS can count the color blocks in the color recognition function, that is, calculate the number of color blocks in the HUSKYLENS screen. The following is an example of recognizing multiple balloons of similar colors.
-
Learn and Recognize Colors
Point the "+" symbol at the target balloon, then press the "learning button" to learn the color of the balloon, and then release the "learning button" to complete the learning. You can see that the color of the balloon can be recognized , but for balloons with similar colors, it may not be able to identify them.

-
Adjust the Threshold
When recognizing color blocks of similar colors, the recognition accuracy can be adjusted by setting the threshold. For example, in the figure above, some yellow balloons with similar colors are not recognized, and the threshold may be set higher. In the parameter setting of the color recognition function, there is the "Block Sized Threshold" parameter. The lower the value of this parameter, the lower the accuracy, but the more similar color blocks can be recognized. As shown in the figure below, when the threshold is 20, only one yellow ball can be recognized, and when the threshold is 0, all three yellow balls can be recognized. Please adjust the threshold according to the actual effect, so that the recognition accuracy is within your acceptable range.

With this function, you can easily obtain the number of yellow balls on the screen in real time.
-
Was this article helpful?
