python-scripts/scripts/OpenCV GrayImage/main.py
2022-10-05 11:12:20 +05:30

14 lines
301 B
Python

import cv2
cap = cv2.VideoCapture(0)
while True:
success, img = cap.read()
blurImage = cv.GaussianBlur(img,(5,5),0)
grayImg = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
cv2.imshow("Grayimage", grayImg)
cv2.imshow("Blur", blurImage)
cv2.imshow("image",img)
cv2.waitKey(10)