Am making a face counter , my main problem is that whe it dosent detect a face, matlab dosent print a '0' value , on the command box just dosent apear anything unless it detects a face.
Am ussing the following code.
n= size (bbox,1);
str_n= num2str(n);
str= strcat( 'number of faces are ', str_n);
display(str);

댓글 수: 3

Dyuman Joshi
Dyuman Joshi 2022년 12월 2일
How exactly are you detecting a face? by the number of rows of bbox?
Jesus Sanchez
Jesus Sanchez 2022년 12월 3일
yes, the bbox is the bounding box & 1 represents the # of rows in bounding box
Walter Roberson
Walter Roberson 2022년 12월 3일
We would probably need to see the surrounding code to see if possibly that code is not executed in that situation.
By the way, I recommend you have a look at fprintf

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2022년 12월 2일

댓글:

2022년 12월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by