how to export ground truth labeler using image labeler app into table?

When i run the example ('deeplearning_shared/DeepLearningFasterRCNNObjectDetectionExam*ple'), and load the 'fasterRCNNVehicleTrainingData.mat', it generates 'vehicleTrainingData with value 295*2 table.
When i label my own images using the ImagerLabeler app and export the file, it comes in groud Truth; gTruth with value 1*1 groundTruth...
How do I make it generate or load the data same as the example into table??.
What do i have to do in order to generate the same output value when loading data from image Labeler Ap

Answers (1)

Hi,
You can use "objectDetectorTrainingData" function to convert gTruth to table data after exporting gTruth from image labeler app. Could you refer to the document if you want to know how to use it (>>doc objectDetectorTrainingData).

3 Comments

Hello,
If I use this method:
trainingData = objectDetectorTrainingData(gTruth,'SamplingFactor',2);
I always get this error:
"Error using objectDetectorTrainingData (line 156)
The input groundTruth object/s do not contain any valid object detector training data."
I have done the labeling with Matlabs Image Labeler and I exported the gTruth via "Export Labels" -> "to workspace".
What can I do?
Thank you very much!
Hi Vanessa,
What type of label did you use in your labeling? Rectangle or Pixel label?objectDetectorTrainingData is used for "object detection". So, this function requires rectangle labels. If there are no rectangle labels in your groundTruth object, you may see this types of errors.
hi guys, try exporting this as a table in the same export dropdown button

Sign in to comment.

Asked:

on 11 Dec 2018

Commented:

on 8 Apr 2020

Community Treasure Hunt

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

Start Hunting!