How to count the number of heads in a group?

조회 수: 3 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 12월 24일
댓글: Image Analyst 2018년 5월 24일
My input image consists of 100 mens standing straight. I have slightly aerial view of the image. Whats the method to count the number of heads?

답변 (4개)

Image Analyst
Image Analyst 2012년 12월 24일
You know from your prior postings that it's always best to upload an image when asking advice on image processing. It only makes sense.
Lacking that about the only thing I can guess is to just do your basic image processing routine, which is
  1. Process image to get to an image that you can threshold
  2. threshold
  3. label
  4. regionprops
a process which I know you've done before. If the heads merge together you can try this algorithm by Steve to split some heads: http://blogs.mathworks.com/steve/2006/06/02/cell-segmentation/

Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 12월 25일
Thanks Image Analyst and Thanks Walter. Sorry for that Image Analyst. Initially i thought to upload image. Herewith I have mentioned the link for the image. Please check it.

Image Analyst
Image Analyst 2012년 12월 25일
I'd first try to find the faces by finding color that is face color. Then filter based on shape - get rid of long skinny things (the arms). It won't be perfect but you should be able to get most of them. See my image segmentation demo and my color segmentation demos if you need to know how to find colors or filter out objects based on their properties.

adeyemi aderemi
adeyemi aderemi 2018년 5월 24일
please can any one help me with the code to count the number of human present in a scene please its urgent feyisayomia@gmail.com thats my email
  댓글 수: 1
Image Analyst
Image Analyst 2018년 5월 24일
Possibly. Post your code and specify what small part of it you need help with. Do not just say "I don't have any code at all and I want you to write a turnkey application for me." because you won't get any help with that, unless you hire a consultant (which Mathworks has if you need them).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by