Spaces:
Runtime error
Runtime error
Ubuntu
commited on
Commit
·
e9de992
1
Parent(s):
2f4dab4
init
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -2
- app.py +1 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -121,8 +121,7 @@ def video_identity(video,user_name,class_name,trainortest,ready):
|
|
121 |
success, frame = capture.read()
|
122 |
|
123 |
if success:
|
124 |
-
|
125 |
-
frame=frame.save(f'{class_d}/frame_{frameNr}.jpg')
|
126 |
|
127 |
else:
|
128 |
break
|
|
|
121 |
success, frame = capture.read()
|
122 |
|
123 |
if success:
|
124 |
+
cv2.imwrite(f'{class_d}/frame_{frameNr}.jpg', frame)
|
|
|
125 |
|
126 |
else:
|
127 |
break
|
app.py
CHANGED
@@ -121,8 +121,7 @@ def video_identity(video,user_name,class_name,trainortest,ready):
|
|
121 |
success, frame = capture.read()
|
122 |
|
123 |
if success:
|
124 |
-
|
125 |
-
frame=frame.save(f'{class_d}/frame_{frameNr}.jpg')
|
126 |
|
127 |
else:
|
128 |
break
|
|
|
121 |
success, frame = capture.read()
|
122 |
|
123 |
if success:
|
124 |
+
cv2.imwrite(f'{class_d}/frame_{frameNr}.jpg', frame)
|
|
|
125 |
|
126 |
else:
|
127 |
break
|