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.
VLC can stream your screen over RTP/HTTP/etc and opencv video capture can open it, e.g. cv::VideoCapture("http://...")
For VLC's settings follow the description here: https://grok.lsu.edu/m/article.aspx?articleId=14625