Skip navigation
Cool video capturing how computer vision can accurately analyze a random basketball game.
0:00 / 1:12

Cool video capturing how computer vision can accurately analyze a random basketball game.

Jason Syversen

@JSyversen2.4K followers

Visit on X
111 likesDownloadOriginal post

14,619 views

Cool video capturing how computer vision can accurately analyze a random basketball game. Some stuff to notice: 1) This is a random court, not one it was trained on. 2) The camera is moving, meaning the model has to calibrate where all the lines are accordingly. 3) It detects 10 players (plus the bench) and the refs and the ball and the hoops accurately. 4) There are multiple hoops in the frame (picking the right one is important!) 5) 2-d homography shows where they are from a top down view.

16 Comments

Comments from the original post on X (Twitter)

  • Alex's profile picture

    @ashorts52

    @SportsVisioAI Ex-college player here but beginning to coach my son. I've dreamed of this. Dual monitors, one with the video the other top down 2d view of plays executing all live with stats being recorded. Excited!

    2 likes

  • Jason Syversen's profile picture

    @JSyversen

    @SportsVisioAI Follow us and it will be ready to go when your son is! The AI just keeps getting faster and cheaper as we build it, hoping to be realtime by sometime next year Lord willing.

  • Shawn Becket's profile picture

    @becketsm

    @SportsVisioAI This is good stuff.

    1 like

  • Paul Chen's profile picture

    @paulcx

    @SportsVisioAI Is this open source?

    1 like

  • Jason Syversen's profile picture

    @JSyversen

    @SportsVisioAI No, but we have contributed some code to open source. We spent millions to get this far, building a business around it. But the goal is to be much more affordable than paying humans, only a dollar and change per player or even less!

  • Risk of Ruin Podcast's profile picture

    @halfkelly

    @SportsVisioAI how many frames per second to get this result?

    1 like

  • Jason Syversen's profile picture

    @JSyversen

    @SportsVisioAI We like 30 fps but can go down to 24 without much degradation. Below that it gets dicey and you start to really see the accuracy fall off as you head downwards. 1080p video is also ideal but we can handle 720, again below that you see real performance impact

  • Risk of Ruin Podcast's profile picture

    @halfkelly

    @SportsVisioAI thx. sorry i should have asked how many frames are you actually achieving on analysis/inference? assume with 10 players and a ball you are not at real time?

  • Jason Syversen's profile picture

    @JSyversen

    @SportsVisioAI Sorry I don’t understand the question. We are processing ALL the frames. An hour game takes us about 6 hours to process (down from 22!) and we are trying to get to realtime next year.

    2 likes

  • Risk of Ruin Podcast's profile picture

    @halfkelly

    @SportsVisioAI Thank you that’s what I was trying to ask. Appreciate it

    1 like

  • The Footy Network's profile picture

    @TheAussieGeezer

    @SportsVisioAI how do you keep the track the metrics of each player and are you storing them in a relational database?

  • HappyVolley's profile picture

    @LearningVolley

    @SportsVisioAI How do you do ball possession to players? Is it box overlap or distance to nearest player center? How would you tackle adding the ball to the homography chart?

  • Jason Syversen's profile picture

    @JSyversen

    We built a ton of custom tracking algorithms. Player tracking, ball tracking, possession tracking, jersey detection, action detection, line detection, etc. Each one was specially trained for that task against our training corpus. We have over 30,000 full games with video and over 100,000 in total now just for basketball. We actually have a crude model showing it on the homography chart, the player with the yellow circle around them.

    2 likes

  • Jatin Mahajan (Johnathan)'s profile picture

    @jatinmahajan712

    Love it that people are seeing and brining full potential of ML and CV, Building Similar for Canadian practice games/ sessions, Just reaching good level of Detection + Segmentation + OCR + Team Association actually took me around 3-4 months as a Solo Researcher and Developer. Built it by finetuning the fully open sourced model within our domain.. Also for saving compute resources, I use sam segmentation to segment the Court for scoring system just before the x second of identifying a Make / Miss event.. : ) .. Rn not keeping track of positions.. But I just explored the PTZ for panning camera, and Yes we can create a whole court Panorma and use SIFT for player Position/ feet detection. Its gonna be fun

  • Brian Raney's profile picture

    @laser158689

    @SportsVisioAI Got anything for field hockey? I’m two years out from needing this.

  • Jason Syversen's profile picture

    @JSyversen

    @SportsVisioAI Not yet but always interested in what new sports to pursue. We do volleyball also currently, and have prototypes for baseball and tennis. Have a lot of requests for lacrosse and flag football, and of course soccer comes up a lot too