OpenCV中的HOGDescriptor 函数

本文介绍了OpenCV中HOGDescriptor函数的详细参数,包括win_size, block_size, block_stride, cell_size等,强调了理解英文原版注释的重要性。通过调整这些参数可以影响算法性能和细节捕捉。通常,我们使用HOGDescriptor设置细胞大小、块大小、块步幅和直方图的条数,然后使用.compute()方法计算图像的HOG特征向量。" 83542907,4864851,Spring HTTP请求处理流程详解,"['spring', 'springboot', 'http请求处理过程', 'web开发', '请求处理流程']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 be smaller than the detection window. The smaller the block the finer detail y

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值