![]() To set the tolerance, click on the bidirectional arrow (↔) to the right of the signature. Press Enter or click outside the naming window to save the name. To set a name, click on the existing name (s1-7 by default), highlight the old name, and type in a new name. After doing so, the red box will be cleared, the Set buttons will change back to blue, and your new color signature will be highlighted in the frame wherever it appears, along with some basic information on each identifiable blob of color the camera could find:Īfter a signature is saved, you can give it a name and adjust how selective the camera should be. Click one of the set buttons to save a raw signature based on the selected region to the corresponding signature slot. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |