首页 > 代码库 > HOG
HOG
HOG Descriptor
Histogram of oriented gradients (HOG) are feature descriptors for the object detection purpose. Descriptor is a set of feature vectors. Each feature vector is computed from a block placed across the source image. Each element of a vector is a histogram of gradient orientations.
The algorithm of finding the HOG descriptor consists of the following steps:
- 1,Compute gradients for each pixel of an image.
- 2,Perform binning of gradients orientation (from 0 to 180 degrees, opposite directions count as the same).
3,Collect the histogram within a cell of pixels.
- 4,Weight the histogram by blocks and cells for local normalization of the contrasts.
- 5,Normalize the histogram.
- 6,Train a linear support vector machines (SVM) to detect an object. The output from the trained linear SVM is a set of coefficients for each element in a feature vector.
HOG
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。