Spaces:
Build error
Build error
Commit
·
465b0e1
1
Parent(s):
4d101a9
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,7 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
| 1 |
+
import cv2
|
| 2 |
+
while True:
|
| 3 |
+
cap = cv2.VideoCapture(0) # video capture source camera (Here webcam of laptop)
|
| 4 |
+
ret,frame = cap.read() # return a single frame in variable `frame`
|
| 5 |
+
cv2.imshow('img1',frame) #display the captured image
|
| 6 |
|
| 7 |
+
cap.release()
|