从OpenCV + Python获取HOG图像功能? [英] Get HOG image features from OpenCV + Python?

查看:1180
本文介绍了从OpenCV + Python获取HOG图像功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过这篇关于如何使用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图像功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆