AjaykumarPilla commited on
Commit
185b0b9
·
verified ·
1 Parent(s): 050b929

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 6 # For very slow motion (6x slower)
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):