Click one of the set buttons to save a raw signature based on the selected region to the corresponding signature slot.
![robotc for vex iq command list robotc for vex iq command list](https://pic4.zhimg.com/v2-bc0a3a850da9da9141874c90e7997783_r.jpg)
If you selected a discernable chunk of color to build a signature out of, the "Set" buttons will change to green. Once you have a stable image to work with, click and drag on the image to create a red rectangle around a swatch of the desired color: If there is no where good to set the camera down while you work, you can click the Freeze button at the lower right of the image pane to hold a frame stationary so that you can put the camera down while you work. This is best done in the same lighting that the robot will be operating in. To set a signature, start by pointing the Vision Sensor at a sample of the target color. The Vision Sensor config window should appear: Once the Vision Sensor is plugged into the computer, click on the "Configure Vision Sensor." button at the bottom left of the device list window. You can use the same micro USB cord used for the IQ Brain, and you don't have to unplug the IQ Smart Cable from the Vision Sensor. The IQ Brain isn't fast enough to transfer live video back to our monitor, so we're going to plug the camera into the computer via USB. To configure the camera, we're going to need the horsepower of a big computer so we can see what the camera sees in real time. Select the Vision Sensor from the list, but don't close the device list yet. Click on the small gear icon opposite the port number you will be plugging the camera into. First, choose which port you would like the camera to connect to the robot's brain on. VEX IQ firmware can be found here.īefore the camera can recognize colors, it must be instructed on which colors to look for. Older firmware will not recognize the Vision Sensor. Vision Sensor support was added to VEX IQ with firmware version 2.1.1 in November of 2018, so be sure to check if your firmware needs to be updated. We then use information about the blobs to decide how to give commands to the robot.We ask the camera to find "blobs" in the snapshot.We can then have our program take a snapshot.These colors are sent to the camera and saved.We teach the camera which blobs of color we want to look for.The vision sensor allows robots to see things.