Configuring Color Signatures in VEXcode IQ

A color signature is one of the two types of Visual Signatures utilized by the VEX IQ AI Vision Sensor  for color identification. To enable the AI Vision Sensor to recognize color signatures, they need to be configured initially. Follow the steps outlined in this article to properly configure color signatures.

Before beginning, the AI Vision Sensor must be connected and configured in VEXcode IQ. See these articles for more information:


Configure a Color Signature

AI Vision Utility open. A yellow ball can be seen in the window.

Put the solid-colored object you want the AI Vision Sensor to be able to recognize in front of it.

Position your cursor over the solid-colored object, then select and drag across the desired color to configure it. A red box will appear across the edge of the area that was selected.

Note: Make sure to stay within the confines of the color you want to select. Otherwise, you may accidentally grab colors from the background that can throw off the AI Vision Sensor’s detection.

AI Vision Utility open. A highlight is around the Set Color button on the righthand side below the AI Classifications toggle.

The Set Color button will become available. Select it to save the color.

Once a color is set, the AI Vision Sensor will save it as a Color Signature.

Zoomed in view of the AI Vision Utility. A highlight is on the name option for the color signature.

Rename the color signature by selecting into the Name textbox and typing.

Zoomed in view of the AI Vision Utility. A highlight is on the Add Color button below the hue range slider.

Select Add Color to configure additional color signatures for other objects.

The AI Vision Sensor can track up to 7 color signatures at a time.

Close button in the lower right corner of the AI Vision Utility highlighted.

Once all desired colors have been set, select Close.

Color Signature 1 is shown in the configured colors section of the Devices Window. A hue value of 10 degrees and a Saturation of 0.2 is noted.

All configured color signatures will now appear in the Configured Colors section of the Devices Window for the AI Vision Sensor.

The done button in the bottom right corner of the Devices Window is highlighted.

Select Done to save your changes to the AI Vision Sensor's configuration.


Tune a Color Signature

Color Signatures can have their Hue Range and Saturation Range tweaked so the sensor can detect the color easier.

Close up of the AI Vision Utility showing the configured color named Yellow Ball. Sliders are below the name showing Hue Range from 0 to 100 and Saturation Range 0.00 to 1.00.

When configuring a color signature, options appear for both Hue and Saturation Ranges. These allow you to tune the color signature to be more resilient. A color signature is considered resilient when the object can be moved around and still be tracked by the AI Vision Utility.

Circle with cascading rainbow colors. Red is at the 0 degree heading, green is at approximately the 120 degree heading, and blue is at approximately the 240 degree heading.

The first slider is the Hue Range. Hue is the color perceived, as defined by its position on the color wheel. This color wheel has a range of 0 to 359.9 degrees and each color on the wheel has a defined degree value. 

The Hue Range allows you to choose the degrees above and below the configured color that will report as that color. For example, a dark blue may have the hue value of 240 degrees. With a Hue Range of 20 degrees, anything from 220 degrees to 260 degrees will report as that dark blue configured color.

To tune your color configuration, slowly move the Hue Range slider until the target box is stable around the object. Do not move it any further than it needs to.

Table showing the change of colors based on saturation values. At the furthest left equal to 0% saturation, the color appears grey. The brightness of the color increases as you move to the right and see increases in saturation values.

The second slider is the Saturation Range. Saturation is the intensity or purity of the color. The brighter the color, the more saturated it is. Saturation is a relative scale measured with percentages from 0%, being a muted grey tone, and 100% being a intense version of that hue. 

The saturation range allows you to choose the percent of saturation above and below the configured color that will report as that color. For example, a yellow ball in dimmer lighting may appear as 50% saturation. With a saturation range of .25 (the decimal equivalent of 25%), anything from 25% to 75% saturation will report as that yellow configured color.

Move the slider for the Saturation Range until the object you want to track is fully surrounded by the target box.

Now you can test the resiliency of your Color Signature. Put the object in different lighting conditions or move it around to see if the AI Vision Sensor can continue to track it in different settings and conditions.

Once two or more Color Signatures have been set, you can begin to configure Color Codes.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: