The Vision Sensor allows your robot to collect visual data from a streaming video camera transmission. The Vision Sensor can collect information about the robot’s environment, including recognizing colors and color codes.
Adding a Vision Sensor Device
Open the Devices window.
Select "Add a device".
Select the Vision Sensor icon.
Select the port in which the Vision Sensor is attached to the VEX EXP Brain. Ports that are already configured will be unavailable.
Once the port has been selected, you will see the Vision Sensor’s Configure screen. To Configure, follow the next set of steps.
Opening the Vision Utility
Select "Open Utility" to open the Vision Utility in a new web browser tab.
The web-based Vision Utility will open. Select the camera icon in the upper left corner to capture an image.
Note: The web-based Vision Utility is unable to store or load previous configuration data. Every time the web-based Vision Utility is loaded, all signatures will be cleared.
A dialogue box will open, prompting you to choose the vision sensor. Select the Vision Sensor.
If no devices appear in this list, make sure your Vision Sensor is connected to your computer via the microUSB cable.
Select connect.
Configuring Signatures
Once the Vision Sensor is connected, an image will be captured.
You can select the camera icon again after the Vision Sensor is connected to capture a new image.
Note: Live streaming video from the Vision Sensor is not available with the web-based Vision Utility.
Select a colored area on the object that will be used to configure the color. The "Set" icons will turn green when a new signature is being configured.
Once the colored area has been selected, configure the color by selecting the "Set" button.
Type in the signature box to name the configuration.
Note: Make sure to capture any other necessary colors during this step.
The signature’s configuration code will appear in the box below. Select "Copy Config" to copy the code.
Important: Afterwards, make sure to close this page.
Other functionality includes:
- Brightness Slider - Use the slider at the top of the page to adjust the brightness of the image that the camera sees. It is important that this brightness remains consistent every time the Vision Sensor is used.
- Color Threshold Slider - Click the arrows beside a signature box to adjust how close a color can be recognized as the specified color within the designated signature box.
- Clear - Select "Clear" beside any of the signature boxes to clear that specific signature.
- Clear All - Select "Clear All" at the bottom to clear all signature boxes.
Return to VEXcode with the Devices Window open and select ‘Paste Config’.
You may get a browser security prompt asking for permission to paste the text - if so, please choose “Allow".
The configuration code will appear in the window.
Select "Done". Your vision sensor is now configured and ready to use.