摘要: 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 阅读全文
posted @ 2021-04-08 13:35 皮卡皮卡妞 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-04-08 13:31 皮卡皮卡妞 阅读(173) 评论(0) 推荐(0) 编辑
摘要: def calEuclideanDistance(vec1,vec2): dist = np.sqrt(np.sum(np.square(vec1 - vec2))) return dist 阅读全文
posted @ 2021-04-08 13:30 皮卡皮卡妞 阅读(627) 评论(0) 推荐(0) 编辑
摘要: def HOG_features(im): #start_time1=time.time() hog = cv2.HOGDescriptor() winStride = (8, 8) padding = (8, 8) hist = hog.compute(im, winStride, padding 阅读全文
posted @ 2021-04-08 13:29 皮卡皮卡妞 阅读(1101) 评论(0) 推荐(0) 编辑