How to use classify into App Designer to classify images using a pretrained neural network
2 views (last 30 days)
Show older comments
Hello, I am creating an GUIDE in which i can upload an Image and with a button I want to classify this Image using a pretrained network based in alexnet, if I use classify Function it shows me the error "Error using classify Requieres at least three arguments ". But in the matlab script I can use classify function using only 2 arguments the pretrained network and the image I want to classify![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/781628/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/781628/image.png)
0 Comments
Answers (1)
Philip Brown
on 25 Nov 2021
My guess at what's happening: you're not using the classify function on AlexNet, but calling it on something else. In your screenshot, when you call classify, what's the first input argument? It should be a SeriesNetwork object, but I suspect it's something else. It might be a struct, one of whose fields is the saved network.
0 Comments
See Also
Categories
Find more on Image Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!