Counting people by face detection

2 ビュー (過去 30 日間)
amir
amir 2016 年 1 月 29 日
編集済み: Walter Roberson 2020 年 4 月 29 日
Hello,
So far I have detected the faces with a bounding box around people faces. I was looking for a way to count the number of boxes appeared in the video as to return the number of people. Is there anyway to do this? Thank you.
  2 件のコメント
Assylbek Kossov
Assylbek Kossov 2018 年 4 月 10 日
Hi, Were you succesfull if so could send the code please? I am a beginner who is stuck with this task
Harshveer Singh
Harshveer Singh 2020 年 4 月 29 日
編集済み: Walter Roberson 2020 年 4 月 29 日
After insering annotations, use a string to count the number of faces. This can be done as follows-
n= size (bbox,1); %bbox is the bounding box & 1 represents the no. of rows in bounding box
str_n= num2str(n);
str= strcat( 'number of faces are ', str_n);
display(str);

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2016 年 1 月 29 日
編集済み: Image Analyst 2016 年 1 月 29 日
How did you do it? If you did it with bwlabel or beconncomp, you can get it from the return argument(s). If you used the Computer Vision System Toolbox example, I'm sure it's one of the returned properties.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by