Print(“Hello world”)
Import cv2
Import matplotlib.pyplot as plt
Read image
Img = cv2.imread(‘path’,1) #path, flag
Flag = 1 – original image
Flag = 0 – black and white
Show image
Cv2.imshow(‘<window title>’,img)
Cv2.waitKey()
Cv2.destroyAllWindows()
No comments:
Post a Comment