How determine if the color was detected?
Replies (1)
(1-1/1)
Added by Piero Cabassa almost 6 years ago
Hello, I've a question, what is the function uses to determine if the color is detected by the CMUcam4?
Thanks!
Look at the data in the tracking data struct. http://www.cmucam.org/docs/cmucam4/arduino_api/struct_c_m_ucam4__tracking__data__t.html
When pixels is greater than 0. However, random noise can make it greater than zero. So, it's best to use the confidence too. A confidence greater than 50 is good. Depends on what you are tracking however.
(1-1/1)