fenaux / soccer-applications

GNU General Public License v3.0
60 stars 4 forks source link

ball_xy data in your code and after ball detector are different #1

Closed ul611 closed 1 week ago

ul611 commented 1 week ago

Hello!

Thank you for your magnifique work. I'm trying to reproduce the result, but after running the ball detector from roboflow repo (https://github.com/roboflow/sports/tree/main/examples/soccer) I'm getting totally different results for ball_xy data. image

Could you please provide your data/2e57b9_0_ball.npy file?

Thanks in advance.

fenaux commented 1 week ago

Hi,

Please note the coordinates corresponding to ball_xy are coordinates in the pitch frame. Coordinates at the output of ball detector are in the image frame. So they need to be transformed transformed_xy = transformer.transform_points(points=xy) as done in run_ball_radar function

Anyway as you asked I uploaded the npy file. If you run run_ball_radar function with the same viedo you shouyld obtain this npy file

ul611 commented 1 week ago

Thank you!