I am trying to detect the pixel position of an object on the screen. In my case: a soccer ball which changes the position on the screen each 10-20s. My first approach was to use a Webcam, record my own screen and then detect the object by using openCV and translate the position to a pixel position. But I think there must be an easier solution. If anybody knows another approach, please tell me your idea. I want to use c/c++ if possible.
Thanks in advance.