Counting people by face detection
이전 댓글 표시
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
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
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);
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!