标签:ngx code numpy imshow pen path png int use
from PIL import Image from PIL import ImageEnhance import cv2 import numpy as np image = Image.open(‘C:\\Users\\12943\\Desktop\\love.png‘) image.show() def meibai(image,whi): image =cv2.imread(‘C:\\Users\\12943\\Desktop\\love.png‘) white = np.uint8(np.clip((whi * image + 50), 0, 255)) cv2.imshow(‘qingxinmeibai‘,white) cv2.waitKey(0) cv2.destroyAllWindows() if __name__ =="__main__": filepath = ‘C:\\Users\\12943\\Desktop\\love.png‘ brightness = 1.5 contrast = 0.2 color=1.9 sharpness=0.1 whi = 1.2 image =cv2.imread(‘C:\\Users\\12943\\Desktop\\love.png‘) meibai(image,whi)
标签:ngx code numpy imshow pen path png int use
原文地址:https://www.cnblogs.com/qq1294/p/12678773.html