Skip to content

Commit 802467e

Browse files
author
codehouseindia
authored
Merge pull request codehouseindia#219 from Prathamesh9967/patch-1
added new file.
2 parents 1be3022 + f2f3943 commit 802467e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

opencv.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import cv2, time
2+
3+
video = cv2.VideoCapture(0)
4+
5+
check, frame = video.read()
6+
7+
print(check)
8+
print(frame)
9+
10+
time.sleep(3)
11+
12+
cv2.imshow("capture", frame)
13+
14+
cv2.waitKey(0)
15+
16+
video.release()
17+
18+
cv2.destroyAllWindows()

0 commit comments

Comments
 (0)