ixxan commited on
Commit
776ce65
·
verified ·
1 Parent(s): a7888ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -96,15 +96,15 @@ def process_video(input_video, player_stats=True, ball_stats=True):
96
  # Gradio Interface
97
  title="Football Match Analytics with YOLO and OpenCV"
98
  description="""
99
- This tool processes football game videos to detect players and referees, track the ball, assign players to teams using color pixel clustering, and compute ball possession.
100
 
101
- It also estimates camera movement with Optical Flow, applies perspective transformation for scene depth, and calculates real-time speed and total distance traveled by each player and the ball.
102
 
103
- The YOLO model was fine-tuned with https://universe.roboflow.com/roboflow-jvuqo/football-players-detection-3zvbc
104
 
105
- Original Reference: https://www.youtube.com/watch?v=neBZ6huolkg
106
 
107
- **Note**: the space is running on CPU, so inferencing new video may take a bit of time. (Avg time during test: 1min processing per 5 second of video)"""
108
 
109
  examples = [["input_videos/121364_0_small.mp4", True, True]]
110
 
 
96
  # Gradio Interface
97
  title="Football Match Analytics with YOLO and OpenCV"
98
  description="""
99
+ This demo processes football game videos to detect players and referees, track the ball, assign players to teams using color pixel clustering, and compute ball possession per team.
100
 
101
+ It also estimates camera movement with Lucas-Kanade optical flow and applies perspective transformation to calculate the real-time speed and total distance traveled by each player and the ball.
102
 
103
+ The YOLO detection model was fine-tuned with this dataset: https://universe.roboflow.com/roboflow-jvuqo/football-players-detection-3zvbc/dataset
104
 
105
+ Original Tutorial Reference: https://www.youtube.com/watch?v=neBZ6huolkg
106
 
107
+ **Note**: this space is running on a CPU, so inferencing new video may take some time. (Avg time during test: 1min processing per 5 second of video)"""
108
 
109
  examples = [["input_videos/121364_0_small.mp4", True, True]]
110