def HOG_features(im): #start_time1=time.time() hog = cv2.HOGDescriptor() winStride = (8, 8) padding = (8, 8) hist = hog.compute(im, winStride, padding) hist = hist.reshape((-1,)) #stop_time1=time.time() #print (stop_time1-start_time1) return hist
def HOG_features(im): #start_time1=time.time() hog = cv2.HOGDescriptor() winStride = (8, 8) padding = (8, 8) hist = hog.compute(im, winStride, padding) hist = hist.reshape((-1,)) #stop_time1=time.time() #print (stop_time1-start_time1) return hist
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。