Configuring Color Codes with the AI Vision Sensor in VEXcode EXP

A Color Code is a combination of 2 to 5 previously configured Color Signatures that the AI Vision Sensor can identify. To be able to create Color Codes, you must first have 2 or more configured Color Signatures. Read Configuring Color Signatures with the AI Vision Sensor in VEXcode EXP to learn how to configure a Color Signature.

Follow the steps below to learn how to configure Color Codes in the AI Vision Utility.

AI Vision Utility with three defined Color Signatures for the colors Green, Red, and Blue. The video feed shows a Cube of each color being tracked by the AI Vision Sensor.

1. Set your desired color signatures in the configuration window.

The Add Color Code button will become available once 2 or more Color Signatures have been configured. Select Add Color Code.

AI Vision Utility with the three defined Color Signatures above and a new Color Code below. The Color Code has options for a sequence of colors, and in this example the sequence reads Green then Red.

2. By default, the first two configured Color Signatures will be set in the new Color Code.

Video shows the Color Code being changed from Green then Red to Blue then Red. Each option in the sequence can be changed with a dropdown menu.

3. To change what Color Signatures are included inside of a Color Code, select the Color Signature(s) inside the Color Code that you would like to change.

The Color Code's name is highlighted to indicate that it can be changed by selecting it. The name has been changed to BlueRed.

4. Rename the Color Code by selecting into the Name textbox and typing.

The video feed shows the blue and red Cubes placed close together, and the AI Vision Sensor identifies this as the BlueRed Color Code. Check mark icon.
The video feed shows the blue and red Cubes placed too far apart, and the AI Vision Sensor identifies this as two individual Color Signatures. Incorrect X icon.

5. Ensure that the colors are closely aligned; otherwise, they may not be interpreted as a unified Color Code but rather as distinct Color Signatures.

AI Vision Utility with the Add Color Code button highlighted to indicate that more can be added, up to a maximum of 5 Color Codes.

6. Select Add Color Code to add up to 5 configurable Color Codes.

Note: If a Color Signature is currently utilized within a Color Code, you won't be able to remove it until it's no longer part of any existing Color Code.

AI Vision Utility with two set Color Codes, one reads BlueRed and one reads GreenRed. The video feed now shows a red Cube placed next to a blue Cube, and a green Cube placed next to a red one. Both of these pairs are identified as their respective Color Codes. The Close button is highlighted in the bottom right corner.

7. Once all desired Color Codes have been set, select Close.

VEXcode EXP Devices menu is opened to the AI Vision Sensor Settings menu. The Done button in the bottom right corner is highlighted.

8. Once the AI Vision Sensor window is gone, select Done to exit the Devices menu and save your configuration changes.

You can now disconnect the AI Vision Sensor from the computer.

Now that your AI Vision Sensor is configured, you can start using the sensor in VEXcode! Read Learning the Basics of Using the AI Vision Sensor with VEXcode EXP Blocks to learn about the new blocks introduced to VEXcode EXP with the AI Vision Sensor.

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

Last Updated: