lubar lubar - 2 years ago 323
Python Question

Get HOG image features from OpenCV + Python?

I've read this post about how to use OpenCV's HOG-based pedestrian detector: How can I detect and track people using OpenCV?

I want to use HOG for detecting other types of objects in images (not just pedestrians). However, the Python binding of HOGDetectMultiScale doesn't seem to give access to the actual HOG features.

Is there any way to use Python + OpenCV to extract the HOG features directly from any image?

Answer Source

If you want fast Python code for HOG features, I've ported the code to Cython:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download