Update app.py
Browse files
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 = []
|