AlexNet用于识别AlexNet用于识别

code:

clear;clc;close all;
%获取alexnet
net = alexnet;  
%读照片选物体
I= imread('11.jpg'); 
[cropedim, rect2]=imcrop(I);


cropedim=imresize(cropedim,[227 227]);
figure(1),imshow(cropedim);
% 用AlexNet分类 
label = classify(net, cropedim); 
% 显示结果
figure; 
imshow(I); 
imwrite(I,'111.jpg');
rectangle('position',rect2,'EdgeColor','r','LineWidth',2);
text(10,20,char(label),'Color','white','FontSize',20);


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-06-05
  • 2021-09-06
猜你喜欢
  • 2021-06-23
  • 2021-09-07
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案