I do NOT want this to be a camera detection program. This is a program that will detect the passing of a color on the screen in an application.
What I want to do is detect when the color black, bigger than a 5x5 px, passes through a defined area of space on the screen. I thought about using one big area to stretch the entire width, but I think that might be improbable. So I figure that I will have to do it between 4 individual areas and detect which one is getting the passing of a black color.
I have been very unlucky in finding what I need in Google. So if anyone has any pointers to a good example, tutorial, or has done something like this and can show me the way, I will be greatly appreciative.
If I need to add something to this request, comment what I need to add.
Edit: see the second comment (mine) for more clarification.