Spaces:
Running
Running
Update app.py
Browse files
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
|
100 |
|
101 |
-
It also estimates camera movement with
|
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**:
|
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 |
|