AtomScott / SportsLabKit

A python package for turning sports video into csv files
https://sportslabkit.rtfd.io
GNU General Public License v3.0
223 stars 18 forks source link

How to convert GNSS coordinates from 'lat, lon' to the pitch coordinates? #33

Open mcjeong95 opened 1 year ago

mcjeong95 commented 1 year ago

Hi, I've just downloaded SoccerTrack dataset and try to explore GNSS data.

However, the coordinates of GNSS data are in 'lat, lon', so I couldn't compare the coordinates which were obtained from camera.

How can I convert GNSS coordinates from 'lat, lon' to the pitch coordinates?

Thanks for releasing valuable soccer dataset publicly!

AtomScott commented 1 year ago

Hi! Thanks for the question.

You need to calculate the homography transform and project the coordinates.

Here's a file containing the corresponding points between standard pitch coordinates (in meters) and Lat-Lon coordinates.

https://drive.google.com/file/d/1tnYiwtSjdLf1J8qXjvN2A0_ZBGBIwEvl/view?usp=drivesdk

I'm sorry the docs are lacking, I promise we're working hard towards making everything easier to use!

Btw, I'm guessing you are one of the authors from the MLSA paper:

https://dtai.cs.kuleuven.be/events/MLSA22/papers/MLSA22_paper_8096.pdf

GPS-OTS alignment is something we thought would be useful in alleviating GT annotation cost for soccertrack so it would be great to see the results in 11 vs 11 setting.

mcjeong95 commented 1 year ago

Yes, as you guessed I'm one of the authors from the MLSA paper, and we're trying to apply our algorithm to SoccerTrack.

If it works well, I'll let you know :)

Thanks for all your help, Scott!