摘要:
def resize(image, size_num): delm=max( image.shape[1], image.shape[0]) if delm>size_num: multiple = delm/size_num ss=1 hh_big=image.shape[1] ww_big=im 阅读全文
摘要:
def find_similar_img(det_im,im_dataset_dir): im_dataset=os.listdir(im_dataset_dir) need_im_name=[] need_im_det_instance=[] print ('now doing get featu 阅读全文
摘要:
def calEuclideanDistance(vec1,vec2): dist = np.sqrt(np.sum(np.square(vec1 - vec2))) return dist 阅读全文
摘要:
def HOG_features(im): #start_time1=time.time() hog = cv2.HOGDescriptor() winStride = (8, 8) padding = (8, 8) hist = hog.compute(im, winStride, padding 阅读全文