How determine if the color was detected?

Added by Piero Cabassa over 2 years ago

Hello, I've a question, what is the function uses to determine if the color is detected by the CMUcam4?
Thanks!


Replies (1)

RE: How determine if the color was detected? - Added by Kwabena Agyeman over 2 years ago

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)