Spaces:
Runtime error
Runtime error
Update video_processing.py
Browse files- video_processing.py +2 -2
video_processing.py
CHANGED
|
@@ -43,11 +43,11 @@ def extract_frames(video_path, output_folder, desired_fps, progress_callback=Non
|
|
| 43 |
return frame_count, original_fps
|
| 44 |
|
| 45 |
|
| 46 |
-
def process_frames(frames_folder,
|
| 47 |
embeddings_by_frame = {}
|
| 48 |
posture_scores_by_frame = {}
|
| 49 |
posture_landmarks_by_frame = {}
|
| 50 |
-
|
| 51 |
frame_files = sorted([f for f in os.listdir(frames_folder) if f.endswith('.jpg')])
|
| 52 |
|
| 53 |
for i, frame_file in enumerate(frame_files):
|
|
|
|
| 43 |
return frame_count, original_fps
|
| 44 |
|
| 45 |
|
| 46 |
+
def process_frames(frames_folder, faces_folder, frame_count, progress):
|
| 47 |
embeddings_by_frame = {}
|
| 48 |
posture_scores_by_frame = {}
|
| 49 |
posture_landmarks_by_frame = {}
|
| 50 |
+
face_paths = []
|
| 51 |
frame_files = sorted([f for f in os.listdir(frames_folder) if f.endswith('.jpg')])
|
| 52 |
|
| 53 |
for i, frame_file in enumerate(frame_files):
|