摘要:
import numpy as np import cv2 fn = '图片路径' # 读取为 ndarray img: np.ndarray = cv2.imread(fn) # imread 不能读中文路径的替代方案 img: np.ndarray = cv2.imdecode(np.fromf 阅读全文
摘要:
常用 from tkinter import filedialog filedialog.askopenfilename(***options) filedialog.askopenfilenames(**options) filedialog.asksaveasfile(**options) fi 阅读全文