Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def categorize_activity(detected_objects):
|
|
32 |
|
33 |
# Function to process the video, detect objects, and generate a categorized journal with images
|
34 |
@spaces.GPU
|
35 |
-
def generate_journal_with_images(video_path):
|
36 |
cap = cv2.VideoCapture(video_path)
|
37 |
journal_entries = {}
|
38 |
saved_images = []
|
|
|
32 |
|
33 |
# Function to process the video, detect objects, and generate a categorized journal with images
|
34 |
@spaces.GPU
|
35 |
+
def generate_journal_with_images(video_path, frame_interval=30):
|
36 |
cap = cv2.VideoCapture(video_path)
|
37 |
journal_entries = {}
|
38 |
saved_images = []
|