源代码
import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
from tkinter import *
import os
#opencv 图片处理类
class cvImage:
def cvTest():
paths = filedialog.askopenfilenames(filetypes= (('png图片', '*.png'), ('jpg图片', '*.jpg')),title= "选择一个或多个要处理的文件")
for index in range(len(paths)):
img = cv.imread(paths[index])
dst = cv.fastNlMeansDenoisingColored(img,None,10,10,7,21