python skimage库HOG特征提取原码解读

Posted 这个是标题,但是为什么要有标题

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python skimage库HOG特征提取原码解读相关的知识,希望对你有一定的参考价值。

Hog特征+SVM常用来做行人检测。

opencv中也有Hog特征提取的原码,但是由于原码不是用python写的,而skimage用python实现了,所以就解读的skimage的代码。

先看用skimage库进行HOG特征提取的代码:

from skimage.feature import hog
from skimage import io
im = io.imread(\'./timg.jpg\',as_grey=True)
normalised_blocks, hog_image = hog(im, orientations=9, pixels_per_cell=(8, 8), cells_per_block=(8, 8), visualise=True)
io.imshow(hog_image)

代码十分简短,在百度上找了一张行人的照片,及代码运行后的效果如下:

 

剩下的内容,还在看……

 

以上是关于python skimage库HOG特征提取原码解读的主要内容,如果未能解决你的问题,请参考以下文章