mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-03-15 10:09:52 +00:00
Create main.py
This commit is contained in:
parent
cf01d7a046
commit
f0044c29c9
10
scripts/OpenCV GrayImage/main.py
Normal file
10
scripts/OpenCV GrayImage/main.py
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user