1 | initial version |
Here is code:
iimport cv2
img = cv2.imread('test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.imshow('ray Photo', gray)
cv2.imshow('Photo', img)
cv2.waitKey(0)
2 | No.2 Revision |
Here is code:
iimport cv2
img = cv2.imread('test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.imshow('ray cv2.imshow('Gray Photo', gray)
cv2.imshow('Photo', img)
cv2.waitKey(0)
3 | No.3 Revision |
Here is code:
iimport import cv2
img = cv2.imread('test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.imshow('Gray Photo', gray)
cv2.imshow('Photo', img)
cv2.waitKey(0)