def hog_gen(image, path=0):
if path != 0 and image == 0:
image = imread(path)
if image.ndim > 2:
image = color.rgb2gray(image)
hog_image_rescaled = generate_hog_features(image)
return hog_image_rescaled
gesture_recognizer.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录