I am new to using vision sensors, and I want to use it to detect different colors. For example, I want to use if statements when either black, white, and blue, are detected so something can happen after it is detected. I know the different commands you can do with the vision sensors, but I don’t know which one to use in this case.
by the way I am using vexcode. thanks
Before you do anything, go into the vision sensors setup and program in the colors that it needs to recognize. I don’t use them very much, so that’s about all I got.
These links may be helpful:
have a look at these knowledge base articles.
There are two different ways to configure the sensor depending on whether you want to use the robot config panel or just create vision header files.
There still seems to be some issues setting up the vision sensor. Although we do know that VCS 1.0/vision sensor utility has a few bugs in this area, it is still pretty simple, I’m not sure why the theories about needing to freeze the image are running around. Anyway, here’s a quick demo showing how easy it is.
The configuration that is hidden inside robot-config.h looks like this and is what is used in your program to setup the vision sensor when it runs.
vex::vision::signature SIG_1 (1, -…
Not really, they are the values for a bounding box in a uv (as in
yuv ) like color space, not easy to do by hand.
I’m having a hard time setting up my vision sensor. I set up the objects in the vision sensor utility, in the utility is consistently tracks the flag signitures. However, once if try to use the vision sensor in actual code, the data I get back is wayy off of that in the utility. Vision.objectCount for the blue flag signiture is usually zero, occasionally jumping to 1 or 2, where in the vision utlity it’s always seen tracking a steady 3. I tried jpearmans vision program from a while back (sorry, …