Object detection based on CNN in matlab

S
samira-bellil · Jun 15, 2021 · 1.9K views
Question
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:   https://www.mathworks.com/help/vision/examples/object-detection-using-faster-r-cnn-deep-learning.html   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.
Expert Answer
Profile picture of John Michell
John Michell PhD Expert
Answered Nov 20, 2025
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.
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!