Spaces:
Runtime error
Runtime error
Commit
·
aed4057
1
Parent(s):
9e3243b
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def video_processing(video):
|
|
55 |
gaze_percentage = on_camera / total * 100
|
56 |
except Exception as e:
|
57 |
print(f"An error occurred while processing the video: {e}")
|
58 |
-
gaze_percentage = '
|
59 |
print(f'Total = {total},on_camera = {on_camera},off_camera = {off_camera}')
|
60 |
# print(f'focus perfectage = {on_camera/total*100}')
|
61 |
# Release the video capture object and close all windows
|
|
|
55 |
gaze_percentage = on_camera / total * 100
|
56 |
except Exception as e:
|
57 |
print(f"An error occurred while processing the video: {e}")
|
58 |
+
gaze_percentage = 'no face detected'
|
59 |
print(f'Total = {total},on_camera = {on_camera},off_camera = {off_camera}')
|
60 |
# print(f'focus perfectage = {on_camera/total*100}')
|
61 |
# Release the video capture object and close all windows
|