摘要: 先执行:set excelxlsxlargefile on 再导入,耐心等待 阅读全文
posted @ 2023-07-18 15:03 myrj 阅读(396) 评论(0) 推荐(0) 编辑
摘要: # 导入OpenCV库 import cv2 # 加载图像 image = cv2.imread('image.jpg') # 创建Haar级联分类器 cascade_classifier = cv2.CascadeClassifier('haarcascade_frontalface_defaul 阅读全文
posted @ 2023-07-18 11:05 myrj 阅读(249) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image img = Image.open("logo.png") for i in range(2048): for j in range(2048): try: r,g,b,alpha = img.getpixel((i,j)) if r==255 and g= 阅读全文
posted @ 2023-07-18 10:21 myrj 阅读(29) 评论(0) 推荐(0) 编辑
摘要: import cv2 import math import os # 文件夹所有图片 path = "Images/ROIRun" images = [] for filename in os.listdir(path): # listdir的参数是文件夹的路径 filenames = path + 阅读全文
posted @ 2023-07-18 09:43 myrj 阅读(77) 评论(0) 推荐(0) 编辑