摘要:
import cv2import json img= cv2.imread(r"C:\Users\Uaena\Desktop\123.jpg")img=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)sq = img.shapel=sq[0] #行w=sq[1] #列list 阅读全文
摘要:
#Author Cimport xlrdimport cv2import numpy as npimport osfname="C:\\Users\\Uaena\Desktop\\5820-10.xlsx"ws=xlrd .open_workbook(fname) #打开表格wb=ws.sheet_ 阅读全文
摘要:
#Author C import osimport cv2list = []for filename in os.listdir(r'C:\Users\Uaena\Desktop\crack'): #在整个文件夹里面读取图片名称 route = r'C:\Users\Uaena\Desktop\cr 阅读全文
摘要:
#Author Cimport cv2import os#腐蚀# kernel=np.ones((5,5),np.uint8)# erosion=cv2.erode(img,kernel,iterations=1)list=[]for filename in os.listdir(r"C:\User 阅读全文