composer colour check
To perform a color check using the robot's camera, you should use the Color Sensor processor via the ConceptVisionColorSensor Sample OpMode, which determines the predominant color in a specified Region of Interest (ROI). As explained in the official FTC Docs, this processor allows the camera to detect colors from a much greater distance than traditional physical color sensors. The system uses a "k-means" clustering algorithm to group similar colors within the ROI, identifying the cluster with the most pixels as the predominant color.
To set up this color check, the FTC Docs instruct you to configure two main inputs in the Sample OpMode. First, you define the ROI, which can be set to the entire camera frame, a sub-region using standard image coordinates, or a sub-region using a normalized coordinate system. Second, you provide a list of candidate color "Swatches" (such as RED, BLUE, or YELLOW) that you expect to find, which the software will use to select a match.
When running the OpMode, the Driver Station will display telemetry indicating the matched color inside your specified zone. For more advanced applications, the FTC Docs note that teams can bypass the generic swatch matches and directly extract the raw RGB color values from the ROI to process in their own custom code.