使用OpenCV进行头部(和肩膀)检测 [英] Head (and shoulder) detection using OpenCV

查看:1052
本文介绍了使用OpenCV进行头部(和肩膀)检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(如果我要问一个太简单的问题,请提前使用Appology.我是OpenCV的初学者.我已经完成了一些教程,但我对它的概念却不太了解.)

(Appology in advance if I am asking a too nwbie question. I am a beginner with OpenCV. I have done some tutorials yet I have not a good grasp of it's concepts.)

问题:如何使用OpenCV进行头部检测(而不是面部检测)-例如在公共汽车或房间内的照片中?

Question: How to do head detection (not face detection) using OpenCV - For example in a photo of inside a bus or a room?

注意:我不想进行人脸检测;只需进行头部检测即可找出照片中的人数.不幸的是-对我来说-我找到的那些教程和文档是关于面部检测而不是头部检测的.

Note: I do not want to do face detection; just head detection to figure out number of people in the photo. Unfortunately - for me - those tutorials and documents that I'v found are about face detection and not head detection.

谢谢

推荐答案

查看OpenCV和专用类

Look at all the Haar boosted classifiers that are available with OpenCV and the dedicated class CascadeClassifier to use it. Here are a list of what the classifiers have locally:

  • haarcascade_eye.xml
  • haarcascade_lefteye_2splits.xml
  • haarcascade_mcs_righteye.xml
  • haarcascade_eye_tree_eyeglasses.xml
  • haarcascade_lowerbody.xml
  • haarcascade_mcs_upperbody.xml
  • haarcascade_frontalface_alt.xml
  • haarcascade_mcs_eyepair_big.xml
  • haarcascade_profileface.xml
  • haarcascade_frontalface_alt2.xml
  • haarcascade_mcs_eyepair_small.xml
  • haarcascade_righteye_2splits.xml
  • haarcascade_frontalface_alt_tree.xml
  • haarcascade_mcs_lefteye.xml
  • haarcascade_upperbody.xml
  • haarcascade_frontalface_default.xml
  • haarcascade_mcs_mouth.xml
  • haarcascade_fullbody.xml
  • haarcascade_mcs_nose.xml
  • haarcascade_eye.xml
  • haarcascade_lefteye_2splits.xml
  • haarcascade_mcs_righteye.xml
  • haarcascade_eye_tree_eyeglasses.xml
  • haarcascade_lowerbody.xml
  • haarcascade_mcs_upperbody.xml
  • haarcascade_frontalface_alt.xml
  • haarcascade_mcs_eyepair_big.xml
  • haarcascade_profileface.xml
  • haarcascade_frontalface_alt2.xml
  • haarcascade_mcs_eyepair_small.xml
  • haarcascade_righteye_2splits.xml
  • haarcascade_frontalface_alt_tree.xml
  • haarcascade_mcs_lefteye.xml
  • haarcascade_upperbody.xml
  • haarcascade_frontalface_default.xml
  • haarcascade_mcs_mouth.xml
  • haarcascade_fullbody.xml
  • haarcascade_mcs_nose.xml

我用粗体显示的两个可能会让您特别感兴趣.尝试这些作为您项目的开始.正如 Alessandro Vermeulen 所评论的那样,头部检测分类器也可能很有趣,因为它们发现有用地与肩膀相连:- )

The two I bolded may be of special interest to you. Try those as a start for your project. As Alessandro Vermeulen commented, head detection classifiers may also be interesting, as what they find is usely connected to shoulders :-)

这篇关于使用OpenCV进行头部(和肩膀)检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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