MATLAB Answers

Object detection based on CNN in matlab

29 views (last 30 days)
I want to build an object recognition system based on CNN. I've collected a database, and I want to apply the steps mentioned in the following example:
In this example, there is this code that aims to load the vehicle data :
data = load('fasterRCNNVehicleTrainingData.mat');
vehicleDataset = data.vehicleTrainingData;
I want to know how can I create this file for my dataset.
Javier Pinzón
Javier Pinzón on 28 May 2018
Your can...
They idea of using a 32x32 image at the input it the final size of each detected object when entered to the network. If you want more detailed input images, you must change the input layer, and also check if you need to change anything else inside the network. First try and understand the operation and the adventure yourself to change network parameters.

Sign in to comment.

Accepted Answer

Javier Pinzón
Javier Pinzón on 18 Oct 2017
Hello Samira, 'Hope this answer may help other ppl'
To create this kind of data, use the command "trainingImageLabeler", then you can upload the images that you want to label and then create your own labels.After finish, you can export the database to a table in the workspace and the save it.
If you want to use a CNN unless a R-CNN type network, you need to use a "Regression layer". For further information, you can check the examples over the matlab folder.
Best Regards Javier
Javier Pinzón
Javier Pinzón on 12 Apr 2018
Hello Nasaruddin.
Unfortunately, here in the community, we do not do works for others, you must be able to do that, otherwise, the project that you will submit, will not be yours.
We can help with "Code" but no coplete ones, just for help... also, doing this kind of project, it is needed time, effort and energy, and takes at least 1 week. I think nobody will do that for free. So, I recommend you to start as soon as possible, and if any doubt, ask or have a look in the examples. Also, i recommend you use semantic segmentation or faster rcnn.
"Dont be lazy"

Sign in to comment.

More Answers (2)

Image Analyst
Image Analyst on 20 Jul 2017
If you can't find the data file on your drive after doing a search, then call and ask the Mathworks for the .mat file. It's possible that the file only ships with a certain toolbox, which you may not have.
Batool Alhumaidi
Batool Alhumaidi on 3 Feb 2020
Hello,, did you find an answer for your question? becuase I'm facing the same problem

Sign in to comment.

shanmukha rao budumuru
shanmukha rao budumuru on 29 Mar 2019
Edited: shanmukha rao budumuru on 29 Mar 2019
i am having a data set which have been randomized inside a .mat file ( means it has not splitted into any labels) , please suggest me with a code that divide the data into training data and test data

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!