OpenCV PingPong Tracking

Here is something I quickly hacked together ripping off other people’s ideas (not fully comprehending them). Mainly from DX11 get darkest pixel from a given texture - question - Forum.
You’ll need DX11 and the addon pack (and vlc).

It’s currently using the ping pong video linked below the yt video you posted.
Which isnt’t really good in terms of lighting , sharpness etc. and it being interlaced also doesn’t help.

Other than that there is certainly much room for improvement.

BadTracker.7z (12.3 MB)