display a 0 value in a string
古いコメントを表示
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
2022 年 12 月 2 日
How exactly are you detecting a face? by the number of rows of bbox?
Jesus Sanchez
2022 年 12 月 3 日
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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!