I have long been fascinated by the use of Computer Vision in sports. After all, it is a combination of two things I love. Almost three years ago, I wrote a post on my personal blog in which I tried — at that time, still using YOLOv3 — to detect and classify basketball players on the court.
FIFA World Cup 2022 has motivated me to revisit this idea. This time I used a combination of YOLOv5 and ByteTrack to track football players on the field. This blog post accompanies the Roboflow video where I talk through how to track players on a football field.
football-players-tracking-25.mp4
I was watching a FIFA 2022 World Cup match the other day, and one of the things that caught my eye was VAR - Video Assistant Referee, or to be more precise, the part of it responsible for analyzing whether a player was on the offside. I did a little research and found that the system performs pose estimation on multiple cameras at once. I decided to check how difficult it would be to reproduce it at home using two cameras and YOLOv7.