MATLAB Answers

Multiple objects/labels detection NOT JUST ONE (alexnet)

25 views (last 30 days)
Carlos Caldera
Carlos Caldera on 8 Oct 2018
Answered: tesarj13 on 6 Dec 2018
Hello,
I've been trying to use alexnet to accomplish the task of having multiple labels in an image instead of just one for the highest confidence. i.e. multiple_objects
I've searched through the deep learning tool box and haven't found any examples that cover more than one object while using a neural network. Some examples from the computer vision show tracking a object in motion, but I want the detection to be done regardless if the object is moving, i.e. human, dog, cat, all in the same frame and labeled. The reason I want to do this is because my project requires that all animals + humans be detected with their correct labeling, not person 1 person 2, etc. Here is the example code that I want to go based off of before I spend any time going further.
clear
camera = webcam; % Connect to the camera
nnet = alexnet; % Load the neural net
while true
picture = camera.snapshot; % Take a picture
picture = imresize(picture,[227,227]); % Resize the picture
label = classify(nnet, picture); % Classify the picture
image(picture); % Show the picture
title(char(label)); % Show the label
drawnow;
end
If I missed a helpful link or video please refer to me to the correct place. Literally almost every example I've seen shows a perfect scenerio where only obe object is being detected, I need all objects in my classification layer to be picked up when seen in the frame as the problem description entails, thank you for your patience and please let me clarify anything if needed.

  0 Comments

Sign in to comment.


Translated by