# 滤波import cv2 image=cv2.imread("")image_new=cv2.medianBlur(image,3)
from PIL import Imagefrom PIL import ImageEnhance image = Image.open('.jpg')#亮度增强enb_b = ImageEnhance . Brightness (image)brightness = 1.3image_bri= enb_b. enhance (brightness )image_bri. show ()# 色度增强enh_col = ImageEnhance.Color (image)color=1.5image_col = enh_col . enhance (color)image_col.show()#对比度增强enh_con = ImageEnhance .Contrast (image)contrast = 1.5image_cont= enh_con. enhance(contrast)image_cont.show()#锐度增强enh_sha = ImageEnhance . Sharpness (image)sharpness = 3.0image_sha = enh_sha. enhance(sharpness)image_sha. show ()