摘要: import numpy as np import cv2 fn = '图片路径' # 读取为 ndarray img: np.ndarray = cv2.imread(fn) # imread 不能读中文路径的替代方案 img: np.ndarray = cv2.imdecode(np.fromf 阅读全文
posted @ 2021-12-27 18:33 太晓 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 常用 from tkinter import filedialog filedialog.askopenfilename(***options) filedialog.askopenfilenames(**options) filedialog.asksaveasfile(**options) fi 阅读全文
posted @ 2021-12-27 18:17 太晓 阅读(3671) 评论(0) 推荐(0) 编辑