Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -356,7 +356,7 @@ class HRCollectorVideoProcessor:
|
|
| 356 |
|
| 357 |
def stop_and_dump_to_file(self) -> Optional[str]:
|
| 358 |
self.recording = False
|
| 359 |
-
|
| 360 |
return None
|
| 361 |
h, w = self.frames[0].shape[:2]
|
| 362 |
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
|
|
|
|
| 356 |
|
| 357 |
def stop_and_dump_to_file(self) -> Optional[str]:
|
| 358 |
self.recording = False
|
| 359 |
+
if len(self.frames) < 30: # ~1s
|
| 360 |
return None
|
| 361 |
h, w = self.frames[0].shape[:2]
|
| 362 |
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
|