yasserrmd commited on
Commit
15b92fc
1 Parent(s): a9777c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def is_frame_different(frame1, frame2, threshold=0.9):
42
 
43
  # Function to process the video, detect objects, and generate a categorized journal with images
44
  @spaces.GPU
45
- def generate_journal_with_images(video_path, frame_interval=30):
46
  cap = cv2.VideoCapture(video_path)
47
  journal_entries = []
48
  image_paths = []
 
42
 
43
  # Function to process the video, detect objects, and generate a categorized journal with images
44
  @spaces.GPU
45
+ def generate_journal_with_images(video_path, frame_interval=30,confidence_threshold=0.8):
46
  cap = cv2.VideoCapture(video_path)
47
  journal_entries = []
48
  image_paths = []