Converting .mat to .json

141 次查看(过去 30 天)
N. Hosseini
N. Hosseini 2019-3-4
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?

回答(2 个)

Walter Roberson
Walter Roberson 2019-3-4
You can load() the .mat file, and pull out the variable you need, and use jsonencode()
  2 个评论
N. Hosseini
N. Hosseini 2019-3-9
Thank you for your response
shubham Kumar
shubham Kumar 2019-7-10
how can we save the .json file after creating the .json format?

请先登录,再进行评论。


cui,xingxing
cui,xingxing 2021-8-26
编辑:cui,xingxing 2021-8-26
Import images and COCO annotation json file to Matlab, refer to cocoAPI-matlab

标签

Community Treasure Hunt

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

Start Hunting!

Translated by