def hog_gen_windows(work_tuple):
image_arr, coords = work_tuple
lx1,ly1,rx1,ry1 = coords
if image_arr.ndim > 2:
image_arr = resize(color.rgb2gray(image_arr)[ly1:ry1, lx1:rx1], (120, 120))
hog_image_rescaled = generate_hog_features(image_arr)
return hog_image_rescaled
gesture_recognizer.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录