2019年6月20日木曜日

Deep Learning : カメラ利用

Matlabで簡単なDeepLearningを動かします。
https://jp.mathworks.com/help/deeplearning/ug/try-deep-learning-in-10-lines-of-matlab-code.html

camera = webcam; % Connect to the camera
%preview(camera);
net = alexnet; % Load the neural networ k
im = snapshot(camera); % Take a picture
image(im) % Show the picture
im = imresize(im,[227 227]); % Resize the picture for alexnet
label = classify(net,im); % Classify the picture
title(char(label),'FontSize',50) % Show the class label
drawnow
clear camera
view raw gistfile1.txt hosted with ❤ by GitHub

0 件のコメント:

コメントを投稿