简体   繁体   English

如何改进具有线性SVM性能的HOG检测器以进行汽车检测?

[英]How to improve HOG detector with linear SVM performance for car detection?

So, I want to detect cars from a driver recorder recorded video. 因此,我想从驾驶员记录仪检测到的视频中检测汽车。 I've read a lot and do research quite a lot but still not quite getting it. 我读了很多书,做了很多研究,但仍然不太了解。 I do think of using a HOG descriptor with linear SVM. 我确实考虑过将HOG描述符与线性SVM一起使用。 But in what way it can still be improver to make it easier to be implement and more robust since this will be kind of a research for me? 但是,以哪种方式可以使它更易于实施和更强大,仍然可以作为改进者,因为这对我来说是一种研究? I am thinkin of combining another technique/algorithm with the HOG but still kind of lost. 我正在考虑将另一种技术/算法与HOG相结合,但仍然有些失落。 I am quite new in this. 我对此很陌生。

Any help is greatly appreciated. 任何帮助是极大的赞赏。 I am also open to other better ideas. 我也欢迎其他更好的想法。

HOG (histogram of oriented gradients) is merely a certain type of feature vector that can be computed from your data. HOG(定向梯度直方图)只是可以从您的数据中计算出的某种类型的特征向量。 You compute the gradient vector at each pixel in your image and then you divide up the possible angles into a discrete number of bins. 您可以计算图像中每个像素的梯度矢量,然后将可能的角度分成离散数量的bin。 Within a given image sub-region, you add the total magnitude of the gradient pointing in a given direction as the entry for the relevant angular bin containing that direction. 在给定的图像子区域内,将指向给定方向的渐变的总大小添加为包含该方向的相关角仓的条目。

This leaves you with a vector that has a length equal to the number of bins you've chosen for dividing up the range of angles and acts as an unnormalized histogram. 这样就为您提供了一个向量,该向量的长度等于为划分角度范围而选择的bin数量,并且可以用作未归一化的直方图。

If you want to compute other image features for the same sub-region, such as the sum of the pixels, some measurement of sharp angles or lines, aspects of the color distribution, or so forth, you can compute as many or as few as you would like, arrange them into a long vector as well, and simply concatenate that feature vector with the HOG vector. 如果要为同一子区域计算其他图像特征,例如像素总和,锐角或直线的某些度量,颜色分布的方面等等,则可以计算多达或少至您也可以将它们排列成一个长向量,然后简单地将该特征向量与HOG向量连接起来。

You may also want to repeat the computation of the HOG vector for several different scale levels to help capture some scale variability, concatenating each scale-specific HOG vector onto the overall feature vector. 您可能还想对几个不同比例级别重复HOG向量的计算,以帮助捕获某些比例可变性,将每个特定于比例的HOG向量连接到整体特征向量上。 There are other feature concepts like SIFT and others, which are created to automatically account for scale invariance. 还有其他功能概念,例如SIFT和其他功能,可以自动解决尺度不变性。

You may need to do some normalization or scaling, which you can read about in any standard SVM guide. 您可能需要做一些归一化或缩放,可以在任何标准SVM指南中阅读。 The standard LIBSVM guide is a great place to start. 标准的LIBSVM指南是一个很好的起点。

You will have to be careful to organize your feature vector correctly since you will likely have a very large number of components to the feature vector, and you have to ensure they are always calculated and placed into the same ordering and undergo exactly the same scaling or normalization treatments. 您将必须小心地正确组织特征向量,因为特征向量中可能会包含很多分量,并且必须确保始终将它们计算并放置在相同的顺序中,并进行完全相同的缩放或标准化治疗。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM