Converting .mat to .json

116 visualizaciones (últimos 30 días)
N. Hosseini
N. Hosseini el 4 de Mzo. de 2019
Editada: cui,xingxing el 26 de Ag. de 2021
Hithanks
I have a .mat file which is used for annotating dataset. I want to convert it into .json file.
I'm not familiar to MATLAB an even doesn't have MATLAB installed.
my question is how to do that in MATLAB or python?

Respuestas (2)

Walter Roberson
Walter Roberson el 4 de Mzo. de 2019
You can load() the .mat file, and pull out the variable you need, and use jsonencode()
  2 comentarios
N. Hosseini
N. Hosseini el 9 de Mzo. de 2019
Thank you for your response
shubham Kumar
shubham Kumar el 10 de Jul. de 2019
how can we save the .json file after creating the .json format?

Iniciar sesión para comentar.


cui,xingxing
cui,xingxing el 26 de Ag. de 2021
Editada: cui,xingxing el 26 de Ag. de 2021
Import images and COCO annotation json file to Matlab, refer to cocoAPI-matlab

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by