So I have a video of a tennis ball bouncing up and down (for project). The tennis ball is always the same color. I want to write a simple program that watches one spot and waits until it is the tennis ball color, starts a timer, waits for the spot to be tennis ball color again, stores the timer value, and keeps doing this until the ball stops/the user stops it. I can handle the timers but i was wondering what method of pixel color recognition i should use, this is my first graphics program so some help would be very nice.

i thought possibly easier than video recognition, possibly just watch a screen pixel and then make sure the video is full size???

thanks