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
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.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related image processing Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →