Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ model = YOLO("best.pt")
|
|
| 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.25 # Confidence threshold for detection
|
| 19 |
IMPACT_ZONE_Y = 0.85 # Fraction of frame height where impact is likely (near stumps)
|
| 20 |
|
|
|
|
| 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 = 4 # For slow motion (4x slower)
|
| 18 |
CONF_THRESHOLD = 0.25 # Confidence threshold for detection
|
| 19 |
IMPACT_ZONE_Y = 0.85 # Fraction of frame height where impact is likely (near stumps)
|
| 20 |
|