Create main.py

This commit is contained in:
Mohd Afzal Khan 2022-10-04 20:20:28 +05:30 committed by GitHub
parent cf01d7a046
commit f0044c29c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,10 @@
import cv2
cap = cv2.VideoCapture(0)
while True:
success, img = cap.read()
grayImg = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
cv2.imshow("Grayimage", grayImg)
cv2.imshow("image",img)
cv2.waitKey(10)