Afficher commentaires plus anciens
if文を使って,顔検出したときに"おはよう”と,口検出したときに"こんにちは"と表示させたいです.
以下のコードでエラーが生じました.
エラーは”コード8行目のbboxBodyが変数として認識されない”という内容でした.
補足:顔検出した際の"ohayou"はコマンドウィンドウに表示されました.
わかる方がいらっしゃいましたら,ご教授ください.
faceDetector=vision.CascadeObjectDetector;
bodyDetector=vision.CascadeObjectDetector('Mouth');
bodyDetector.MinSize=[60 60];
bodyDetector.MeregeThreshold=10;
I=imread(写真の名前);
if(bboxes==faceDetector(I))
disp("ohayou")
elseif(bboxBody==bodyDetector(I))
disp("konnitiwa")
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur コンピューター ビジョンと Simulink dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!