To classify images from your phone camera in MATLAB, first you need to create a labeled dataset with different classes of images. Then you can train a deep learning model on this dataset using one of the pre-trained models available in MATLAB, such as the AlexNet or GoogLeNet.
Here are the general steps you can follow for classification:
imread
and imresize
functions.main.m60 chars3 lines
main.m120 chars5 lines
trainNetwork
function and your labeled dataset.main.m48 chars2 lines
classify
function.main.m28 chars2 lines
These are general steps and will need to be modified based on your specific use case.
gistlibby LogSnag