问题描述
我读过这篇关于如何使用 OpenCV 的基于 HOG 的行人检测器的文章:如何使用 OpenCV 检测和跟踪人员?
I've read this post about how to use OpenCV's HOG-based pedestrian detector: How can I detect and track people using OpenCV?
我想使用 HOG 来检测图像中的其他类型的物体(不仅仅是行人).但是,HOGDetectMultiScale 的 Python 绑定似乎无法访问实际的 HOG 功能.
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.
有没有什么办法可以用Python+OpenCV直接从任意一张图片中提取HOG特征?
Is there any way to use Python + OpenCV to extract the HOG features directly from any image?
推荐答案
如果你想为 HOG 功能提供快速的 Python 代码,我已经将代码移植到 Cython:https://github.com/cvondrick/pyvision/blob/master/vision/features.pyx
If you want fast Python code for HOG features, I've ported the code to Cython: https://github.com/cvondrick/pyvision/blob/master/vision/features.pyx
这篇关于从 OpenCV + Python 获取 HOG 图像特征?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!