1、函数原型声明和相应参数的解释
在这里告诫大家,关于OpenCV中一些函数的使用,最好去读英文原版注释,这样才能更深刻的去了解用途。
函数原型:
cv2.HOGDescriptor(win_size = (64, 128),
block_size = (16, 16),
block_stride = (8, 8),
cell_size = (8, 8),
nbins = 9,
win_sigma = DEFAULT_WIN_SIGMA,
threshold_L2hys = 0.2,
gamma_correction = true,
nlevels = DEFAULT_NLEVELS)
具体参数介绍(parameters):
win_size – Size ##窗口的大小
Size of detection window in pixels (width, height). Defines the region of interest. Must be an integer multiple of cell size.
block_size – Size ## 块的大小
Block size in pixels (width, height). Defines how many cells are in each block. Must be an integer multiple of cell size and it must