tracking colors with cmucam
maxx
Posts: 14
Is it possible using the CMUcam to track specific color on the screen. so the boe bot can follow the color instead of following the object?
Comments
The CMUcam can track colors just fine. In fact, it's what the camera does best. Look in te manual for information on the TC command.
It'll track colors in RGB format, or, alternatively, in YCrCB format. That has the advantage that it is less dependent on brightness of the image.
It takes a little bit of practice to figure out how to ask for the color you want, but practice is the best teacher. While you are looking up the TC command, have a peek at the effects of the TW command. It will allow you to "show" the camera what you want to track, just like the demo mode does. The results from the TW command· are the parameters you set for the TC command.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Larry) : 11/23/2005 7:11:23 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
If indoors, is the side of the object you are tracking directly lit, or is it in shadow. Are you sure you locked onto the object during the TW command phase of your code?
Also describe how you focussed the camera. Do you have the parallax version of the camera (no RS232 chip on the board) or the original version (with the socketted· 232 chip)?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔