Upload live_stream_processor.py with huggingface_hub
Browse files- live_stream_processor.py +7 -3
live_stream_processor.py
CHANGED
|
@@ -226,12 +226,16 @@ class LiveStreamProcessor:
|
|
| 226 |
frame_data = FrameData(
|
| 227 |
frame_path=None, # Live frame, no file path
|
| 228 |
timestamp=timestamp,
|
| 229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
)
|
| 231 |
keyframe = KeyframeResult(
|
| 232 |
frame_data=frame_data,
|
| 233 |
-
|
| 234 |
-
|
| 235 |
)
|
| 236 |
|
| 237 |
# Store frame temporarily for detection
|
|
|
|
| 226 |
frame_data = FrameData(
|
| 227 |
frame_path=None, # Live frame, no file path
|
| 228 |
timestamp=timestamp,
|
| 229 |
+
frame_number=self.frame_count,
|
| 230 |
+
quality_score=0.8,
|
| 231 |
+
motion_score=1.0 if motion_detected else 0.0,
|
| 232 |
+
burst_active=False,
|
| 233 |
+
enhancement_applied=False
|
| 234 |
)
|
| 235 |
keyframe = KeyframeResult(
|
| 236 |
frame_data=frame_data,
|
| 237 |
+
keyframe_score=0.8,
|
| 238 |
+
selection_reason='live_frame'
|
| 239 |
)
|
| 240 |
|
| 241 |
# Store frame temporarily for detection
|