如何使用OpenCV实现对象隔离 [英] How to achieve object segregation using OpenCV

查看:63
本文介绍了如何使用OpenCV实现对象隔离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始研究视觉识别系统来识别一个人并从捕获的视频中提取特征。

对于初始步骤,我需要将目标主体与图像隔离并隔离(框架)背景并创建人的二进制轮廓(轮廓)。

背景可以随意选择,这可以在一定程度上减少噪音。

我试图在OpenCV中应用canny算法但是实现的轮廓不是连续的,如果我在边界内应用了一个填充,则无法实现轮廓。

任何人都可以在OpenCV中建议一个方法,用它可以得到一个人的近似轮廓?

I have started working on a visual identification system to identify a person and extract features from a captured video.
For the initial step, I require to segregate and isolate the targeted subject from the image(frame) background and create a binary silhouette(outline) of the person.
The background can be chosen as I like, which would reduce noise to some extend.
I tried to apply canny algorithm in OpenCV but the outline achieved is not continuous and if I apply a floodfill to the within the boundary a silhouette is not achieved.
Can anyone suggest a method in OpenCV using which I may achieve an approximate outline of the person?

推荐答案

简单的轮廓检测不会是足够。您需要使用分类器技术。有很多,我会指向你的HOG。识别个人是另一个问题。



关于HOG检测理论的论文就在这里,即使你无法理解,也会给你一些想法。

http://lear.inrialpes.fr/people/triggs/pubs/Dalal -cvpr05.pdf [ ^ ]



这是一个很好的教程:

http://chrisjmccormick.wordpress.com/2013/05/09/hog-person-detector-tutorial/ [ ^ ]



OpenCV参考:

http: //docs.opencv.org/modules/gpu/doc/object_detection.html [ ^ ]
Simple outline detection will not be sufficient. You need to use classifier techniques. There are many and I will point you to HOG. Identification of individuals is another problem.

A paper on the theory of HOG detection is here and even if you cannot understand it all will give you some ideas.
http://lear.inrialpes.fr/people/triggs/pubs/Dalal-cvpr05.pdf[^]

This is a good tutorial to begin with:
http://chrisjmccormick.wordpress.com/2013/05/09/hog-person-detector-tutorial/[^]

OpenCV ref:
http://docs.opencv.org/modules/gpu/doc/object_detection.html[^]


这篇关于如何使用OpenCV实现对象隔离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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