face mask deep learning label display

here is my code. I deep-learned mask recognition using an existing face recognition model, automating only half of the face to be labeled here. However, when displaying on the webcam, I want the masked person 'mask' and the non-masked person to be tracked so that 'no mask person' is boxed as the face size as the face size. How to write code for this?

답변 (1개)

yanqi liu
yanqi liu 2021년 12월 8일
편집: KSSV 2021년 12월 8일

0 개 추천

yes,sir,may be the consuming time too much,may be use face-api.js to get the faster application,such as

댓글 수: 3

주영 이
주영 이 2021년 12월 8일
I want to use this model. Is this model okay? If it's ok, can I download this model via caffe model importer? I'm not sure what code to write to download.
yanqi liu
yanqi liu 2021년 12월 9일
yes,sir,may be can not load in MATLAB,may be use the http server to use the model in python,and make MATLAB client to develop
yes,sir,please use
the result as follow
I = imread('./SampleMaskData/demo.jpg');
resz = [224 224];
Ir = imresize(I, resz, 'bilinear');
[bbox,score,label] = detect(detector, Ir, 'threshold', 0.5);
bboxf([1 3]) = size(I,2)/resz(2)*bbox([1 3]);
bboxf([2 4]) = size(I,1)/resz(1)*bbox([2 4]);
detectedImg = insertObjectAnnotation(I, 'rectangle', bboxf, [string(label)+ " : "+string(score)], 'Color', 'magenta', ...
'Fontsize', 30, 'linewidth', 30, 'textboxopacity', 0.4);
detectedImg = insertText(detectedImg, [10, 1], " Find mask ", 'FontSize', 20, 'BoxColor', 'g');
figure
imshow(detectedImg)

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

제품

태그

질문:

2021년 12월 7일

댓글:

2021년 12월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by