Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1004,9 +1004,10 @@ def list_bigquery_resources():
|
|
1004 |
return resources
|
1005 |
|
1006 |
def process_video_file(video_file, analysis_types, processing_mode="Hybrid (Google Vision + OpenCV)",
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
|
|
1010 |
"""Process an uploaded video file with enhanced Vision AI detection and analytics"""
|
1011 |
# Create a temporary file to save the uploaded video
|
1012 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.mp4') as temp_file:
|
|
|
1004 |
return resources
|
1005 |
|
1006 |
def process_video_file(video_file, analysis_types, processing_mode="Hybrid (Google Vision + OpenCV)",
|
1007 |
+
track_update_frames=5, confidence_threshold=0.5, vision_update_interval=1.0,
|
1008 |
+
max_results=10, enable_face_landmarks=True, tracking_algorithm="KCF",
|
1009 |
+
motion_sensitivity=32, prioritize_vision=True, blend_results=True,
|
1010 |
+
yolo_confidence=0.5, enabled_classes=None):
|
1011 |
"""Process an uploaded video file with enhanced Vision AI detection and analytics"""
|
1012 |
# Create a temporary file to save the uploaded video
|
1013 |
with tempfile.NamedTemporaryFile(delete=False, suffix='.mp4') as temp_file:
|