Using AI Classifications with the AI Vision Sensor

AI Classifications are Game Objects that an AI Vision Sensor can detect. These classifications allow the AI Vision Sensor to distinguish between different types of objects in its field of view.

AI Classification Models

There are three different AI Classification Models available for the AI Vision Sensor to use. These Models change what objects the AI Vision Sensor can detect.

Classroom Objects

The Classroom Objects model includes game objects found within the EXP Classroom Bundles and IQ Classroom Bundle.

The AI Classifications include:

  • Blue and Red Buckyballs
  • Blue, Red, and Green Rings
  • Blue, Red, and Green Cubes

In Text-based VEXcode, each of these classifications has an assigned ID which is what is used to differentiate between them in projects.

Game Object AI Classification Python ID C++ ID

Blue and Red Buckyballs.

Blue and Red Buckyballs

Blue Ball ClassroomElements.BLUE_BALL blueBall
Red Ball ClassroomElements.RED_BALL redBall

 

Blue, Red, and Green Rings.

Blue, Red, and Green Rings

Blue Ring ClassroomElements.BLUE_RING blueRing
Green Ring ClassroomElements.GREEN_RING greenRing
Red Ring ClassroomElements.RED_RING redRing

 

Blue, Red, and Green Cubes.

Blue, Red, and Green Cubes

Blue Cube ClassroomElements.BLUE_CUBE blueCube
Green Cube ClassroomElements.GREEN_CUBE greenCube
Red Cube ClassroomElements.RED_CUBE redCube

 

V5RC Push Back

The V5RC Push Back model includes game objects for the 2025-2026 V5RC game "Push Back".

Game Object AI Classification Python ID C++ ID

2025-2026 V5RC Push Back Red and Blue Blocks.

Red and Blue Blocks

Blue Block GameElementsPushBack.BLUE_BLOCK blueBlock
Red Block GameElementsPushBack.RED_BLOCK
redBlock

 

V5RC High Stakes

The V5RC High Stakes model includes game objects for the 2024-2025 V5RC game "High Stakes".

Game Object AI Classification Python ID C++ ID
2024-2025 V5RC High Stakes Mobile Goal. Mobile Goal
GameElementsHighStakes.MOBILE_GOAL
mobileGoal
2024-2025 V5RC High Stakes Red Ring. Red Ring
GameElementsHighStakes.RED_RING
redRing
2024-2025 V5RC High Stakes Blue Ring. Blue Ring
GameElementsHighStakes.BLUE_RING
blueRing

 


Enable AI Classification Detection

To be able to detect AI Classifications, the AI Vision Sensor's Detection Mode must first be enabled in the AI Vision Utility.

AI Vision Sensor Settings menu in VEXcode EXP with the sensor labeled as AIVision1. A large AI Vision Sensor icon is displayed, and beneath it a blue button labeled Configure is highlighted.

Select Configure in the AI Vision Sensor's device menu.

AI Vision Utility menu with the AI Classification option highlighted. By default this option is turned off.

The AI Vision Utility will open. Select the toggle underneath AI Classification to turn on the AI Classification Detection Mode.

AI Vision Utility menu with the AI Classification Model dropdown menu opened. The Classroom Objects model is selected by default, and the three options read Classroom Objects, V5RC Push Back, and V5RC High Stakes.

Select which AI Classification model to use.

For more information on what AI Classifications are included in each model, go to the "AI Classification Models" section in this article.

AI Vision Utility with the AI Classification option turned on and a blue Buckyball identified in the sensor's video feed. The Close button is highlighted in the bottom right corner.

Select Close to exit the AI Vision Utility.

VEXcode EXP Devices menu is opened to the AI Vision Sensor Settings menu. The settings menu lists that the AI Classification Detection Mode is set to on. The Done button in the bottom right corner is highlighted.

You will see the new AI Classification Detection Mode be set to on and the AI Classifications that will be detected are added at the bottom of the AI Vision Sensor's device menu.

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

Coding with AI Classifications

Example project thumbnail that reads Detecting AI Classifications (AI Vision).

To see the AI Vision Sensor move in real time and interact with AI Classifications, use the Detecting AI Classifications (AI Vision) Example Project found within VEXcode.

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

Last Updated: