Nahid8195

Image show and save in Python

Nov 30th, 2021 (edited)
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import cv2
  2. pic = cv2.imread("download.jpg",flags=0)
  3. print(pic)
  4. cv2.imshow("Nahid",pic)
  5. cv2.waitKey(0)
  6. cv2.imwrite("gray_do.jpg",pic)
RAW Paste Data