Starting Deep Learning

来源:互联网 发布:速读训练软件安卓版 编辑:程序博客网 时间:2024/06/06 20:10
% Copyright 2016 The MathWorks, Inc.


clear


camera = webcam; % Connect to the camera
nnet = alexnet;  % Load the neural net


while true   
    picture = camera.snapshot;              % Take a picture    
    picture = imresize(picture,[500,500]);  % Resize the picture


    label = classify(nnet, picture);        % Classify the picture
       
    image(picture);     % Show the picture
    title(char(label)); % Show the label
    drawnow;   
end
原创粉丝点击