string comparison database and label comparison
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Operator '==' is not supported for operands of type 'table'.
Error in working_try_2 (line 98)
if(T(:,1)==string(label))
%%code
faceDetector=vision.CascadeObjectDetector;
while true
img_again=getsnapshot(video);
pause(2);
bbox=step(faceDetector,img_again);
if(sum(sum(bbox))~=0)
es=imcrop(img_again,bbox(1,:));
es=imresize(es,[227 227]);
label=classify(myNet1,es);
image(es);title(char(label));
% comparion of the found image with the student database
if(T(:,1)==string(label))
disp(strcat('Student=',string(label)));
disp('Found');
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Database Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!