Skip to content

joaofaro/FHOG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Felzenszwalb HOG extractor

This repository is meant to provide an easy-to-use implementation of the Felzenszwalb HOG features extractor.
This approach followed the one presented by Felzenszwalb, Pedro F., et al. "Object detection with discriminatively trained part-based models." Pattern Analysis and Machine Intelligence, IEEE Transactions on 32.9 (2010): 1627-1645.
The OpenCV library have only the original HOG, proposed by Dalal and Triggs. However, the Latent SVM OpenCV implementation have its own FHOG extractor. This code allows you to use it without having do deal with Latent SVM objects.

Code Example

To use the FHOG extractor you just need to create the object:
HogFeature FHOG(cellSize, scale);

After that you obtain the FHOG features from your image like this:
cv::Mat features = FHOG.getFeature(image);

Results

The out.avi shows the performance of the presented FHOG extractor when used to detect cars (using a SVM classifier). As can be seen, the cars are correctly identified.
Another example can be seen here, where the FHOG features are used to detect pedestrians: https://www.youtube.com/watch?v=tW295x025Hw

Questions and suggestions

You can contact me by email: joaopfaro@gmail.com

About

C++ Felzenszwalb HOG extractor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published