配置颜色代码#

颜色代码包含 2 到 4 个已配置的颜色特征,可供 AI 视觉传感器识别。您需要先设置至少 2 个颜色特征。

选择添加颜色代码#

一旦配置了 2 个或更多颜色签名,添加颜色代码按钮将变为可用。

A screenshot of the AI Vision Utility in VEXcode AIM. The left shows the camera feed from the robot with one blue cube and one red cube. The right has a highlight on the Add Color Code button, in the center to the right of the Add Color button.

默认颜色代码配置#

默认情况下,前 2 个配置的颜色特征将设置在新的颜色代码中。

Same image as the previous with a new section beneath the color signatures on the right that is highlighted. This section shows a color code named Color 1 with red box on the left and blue box on the right, creating the code.

更改颜色签名顺序#

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 video below shows each color within the code being selected and changed, to adjust the order of color signatures.

通过在“名称”文本字段中输入颜色代码来重命名#

Zoomed in view of the new color code section of the AI Vision Utility window, with a highlight on the name text box. The Name reads Code 1.

添加其他颜色代码#

您可以通过选择添加颜色代码来添加更多颜色代码。

注意:颜色签名在颜色代码中使用时无法移除。请先将其从所有颜色代码中移除。

Zoomed in view of the new color code section of the AI Vision Utility with a highlight on the Add Color Code button beneath the code configuration, to the right of the Add Color button.

选择“关闭”#

设置完所有所需的颜色代码后,选择关闭

Screenshot of the same AI Vision Utility with a highlight on the close button in the bottom right corner.

所有配置的颜色代码现在都将出现在 AIM 控制面板中。

VEXcode AIM 中的控制面板放大视图,颜色代码部分周围突出显示。其中一行与配置的颜色代码匹配。