Deep Learning with MATLAB: Deep Learning in 11 Lines of MATLAB Code

Joe Hicklin, MathWorks

Watch a quick demonstration of how to use MATLAB®, a simple webcam, and a deep neural network to identify objects in your surroundings. This demo uses AlexNet, a pretrained deep convolutional neural network (CNN or ConvNet) that has been trained on over a million images.

The example has two parts: setting up the camera and performing object recognition. The first part shows how to use the webcam command to acquire images from the camera. Using the drawnow command, MATLAB is able to continuously update and display images taken by the camera.

The second part illustrates how to download a pretrained deep neural network called AlexNet and use MATLAB to continuously process the camera images. AlexNet takes the image as input and provides a label for the object in the image. You can experiment with objects in your surroundings to see how accurate AlexNet is.

Today you can do this very easily with MATLAB, but even just a few years ago it would have been considered science fiction.

FREE EBOOK

Deep Learning vs. Machine Learning: Choosing the Best Approach

Download eBook

RELATED INFORMATION

>> Learn more

Have Questions About Using MATLAB and Simulink for Deep Learning

30 Days of Exploration at Your Fingertips