This is contribution coming after this great repo https://github.com/roboflow/sports/blob/main/examples/soccer/main.py Special problems occurs when the ball is not on the ground as homography assume objects are in a plane.
The proposed solution includes various techniques (ML, signal processing). A video with the radar view including the ball is availble here https://drive.google.com/file/d/1FJvpVmD1kMLt1hgrkiUTy1bgqHvTp-e8/view?usp=sharing (the ball is the yellow dot)
If you wish to use this solution for commercial purpose please contact me [email protected]
Other sports applications are available here https://drive.google.com/drive/folders/1e46ZnjIH-q74C0QHa8-QB9Oy9iyxk7vT?usp=sharing