イメージラベラーを利用して目,口,歯を検出した時に文を表示する方法
이전 댓글 표시
やりたい事は,目と口を認識したらhello worldと表示.ただし,歯があった場合動作しないプログラムの作成をしたいです.
イメージラベラーを利用して口と目と歯の認識は出来るようになったのですが,その認識した事を
どのような条件文として書いたらいいのかが分かりません.
このプログラムで学習させています.
pos_ins = emt10;
pos_dir = fullfile('C:\Users\tsu-p\Desktop\face');
addpath(pos_dir);
options = trainingOptions('sgdm', ...
'MiniBatchSize', 32, ...
'InitialLearnRate', 1e-6, ...
'MaxEpochs', 10);
moutheyercnn10 = trainRCNNObjectDetector(pos_ins, alexnet, options, 'NegativeOverlapRange', [0 0.3]);
このプログラムで画像の中の口と目と歯を認識して表示するプログラムです.
Imgfilename = strcat('C:\Users\tsu-p\Desktop\face\face8.jpg');
img = imread(Imgfilename);
[bboxes,score,label] = detect(moutheyercnn10,img,'MiniBatchSize',32);
detectedImg = insertObjectAnnotation(img, 'Rectangle', bboxes, cellstr(label));
figure
imshow(detectedImg);
分かる方がいらっしゃったら教えていただきたいです.
댓글 수: 1
Atsushi Ueno
2021년 5월 10일
>イメージラベラーを利用して口と目と歯の認識は出来るようになった
detectedImg = insertObjectAnnotation(img, 'Rectangle', bboxes, cellstr(label));
「オブジェクト認識枠(bboxes)に認識オブジェクト名(label)を表示させてimshowで図示する事ができた」
と言う事ですね
>その認識した事をどのような条件文として書いたらいいのか
は「認識オブジェクト名(label)に『目』『口』『歯』が含まれているか否かを判定する」
と言い換える事が出来ます
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 深層学習を使用したオブジェクトの検出에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!