Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ model = YOLO("best.pt") # Assumes best.pt is in the same directory as app.py
|
|
14 |
STUMPS_WIDTH = 0.2286 # meters (width of stumps)
|
15 |
BALL_DIAMETER = 0.073 # meters (approx. cricket ball diameter)
|
16 |
FRAME_RATE = 30 # Input video frame rate
|
17 |
-
SLOW_MOTION_FACTOR =
|
18 |
CONF_THRESHOLD = 0.3 # Lowered confidence threshold for better detection
|
19 |
|
20 |
def process_video(video_path):
|
|
|
14 |
STUMPS_WIDTH = 0.2286 # meters (width of stumps)
|
15 |
BALL_DIAMETER = 0.073 # meters (approx. cricket ball diameter)
|
16 |
FRAME_RATE = 30 # Input video frame rate
|
17 |
+
SLOW_MOTION_FACTOR = 2 # For slow motion (6x slower)
|
18 |
CONF_THRESHOLD = 0.3 # Lowered confidence threshold for better detection
|
19 |
|
20 |
def process_video(video_path):
|