MATLAB Answers

Yogesh Shukla

How can I Count no. of objects in a image?

Asked by Yogesh Shukla
on 3 Apr 2013

I want to count no. of objects like men (in a group photograph), coins in a image etc.

for ex--

please help me..



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 3 Apr 2013
Edited by Walter Roberson
on 3 Apr 2013
 Accepted answer

Quoting, as that comment will not automatically expand:

Does the 2 year old identify Barney as human? How about Sesame Street's Bert? Barney has a human inside the costume, so should be identified as human, but Bert is always a puppet and so should not.
Okay, now how about R2D2? Some versions of R2D2 have humans inside and so should be identified as human, but some of them are electromechanical. Can a 2 year old tell the difference? Likewise for the new Daleks, the authorized commercial versions of which are electromechanical, and some of the background Daleks in crowd scenes were electromechanical, but the close-ups in the Dr. Who series are only of Daleks with humans inside.

You are going to have to have excellent artificial intelligence indeed to count the number of humans that are in the Dr. Who group shot of a Dalek scene.


It's too complex to detect a complex figures( like human) that's why i was trying to find some easy shapes like coins, trees using some AI technique.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!