Image labels in json

17 visualizaciones (últimos 30 días)
Shaw
Shaw el 24 de Nov. de 2021
Respondida: yanqi liu el 25 de Nov. de 2021
I have 1000 images and thier labels are present in a json file.
How can I link the labels with the images and train the network

Respuestas (1)

yanqi liu
yanqi liu el 25 de Nov. de 2021
sir,if the json is use to rectangle,may be read the json and use filename to gen table of matlab,such as
data = load('rcnnStopSigns.mat', 'stopSigns');
stopSigns = data.stopSigns
stopSigns = 27×2 table
imageFilename stopSign _______________________________ _______________________________________ {'stopSignImages/image005.jpg'} {[ 980 393 31 56]} {'stopSignImages/image006.jpg'} {[ 1.0408e+03 354.7500 73 72]} {'stopSignImages/image009.jpg'} {[ 635 254 65 63]} {'stopSignImages/image013.jpg'} {[398.2050 261.2996 349.6806 385.6992]} {'stopSignImages/image014.jpg'} {[365.1880 306.3229 357.1845 421.7178]} {'stopSignImages/image020.jpg'} {[ 653.7500 307.7500 73.0000 76]} {'stopSignImages/image021.jpg'} {[ 589.7500 239.7500 181 196.0000]} {'stopSignImages/image022.jpg'} {[ 509.7500 470.7500 43 73]} {'stopSignImages/image023.jpg'} {[ 570.7500 403.7500 49 90]} {'stopSignImages/image024.jpg'} {[ 527.7500 394.7500 40 100]} {'stopSignImages/image025.jpg'} {[ 745 342 81 84]} {'stopSignImages/image026.jpg'} {[ 517.7500 289.7500 165 158.0000]} {'stopSignImages/image027.jpg'} {[536.7500 177.7500 174.0000 258.0000]} {'stopSignImages/image028.jpg'} {[ 679.7500 366.7500 158.0000 223]} {'stopSignImages/image029.jpg'} {[ 701.7500 429.7500 97.0000 99]} {'stopSignImages/image030.jpg'} {[ 683.7500 445.7500 94.0000 94]}

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by