当前位置:首页 > Python教程 > python技巧

HOG特征提取+python+opencv

            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

 

原文:https://www.cnblogs.com/wjjcjj/p/14631760.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐