Spaces:
Runtime error
Runtime error
Commit
·
2ede220
1
Parent(s):
18344c1
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,8 @@ def take_photo(filename='photo.jpg', quality=0.8):
|
|
23 |
# program to capture single image from webcam in python
|
24 |
|
25 |
# importing OpenCV library
|
26 |
-
from cv2 import
|
|
|
27 |
|
28 |
# initialize the camera
|
29 |
# If you have multiple camera connected with
|
@@ -58,7 +59,7 @@ def take_photo(filename='photo.jpg', quality=0.8):
|
|
58 |
|
59 |
#with open(filename, 'wb') as f:
|
60 |
# f.write(binary)
|
61 |
-
return filename
|
62 |
|
63 |
|
64 |
|
|
|
23 |
# program to capture single image from webcam in python
|
24 |
|
25 |
# importing OpenCV library
|
26 |
+
from cv2 import imshow
|
27 |
+
from cv2 import imwrite
|
28 |
|
29 |
# initialize the camera
|
30 |
# If you have multiple camera connected with
|
|
|
59 |
|
60 |
#with open(filename, 'wb') as f:
|
61 |
# f.write(binary)
|
62 |
+
return filename
|
63 |
|
64 |
|
65 |
|