Converting .mat to .json
117 views (last 30 days)
Show older comments
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?
0 Comments
Answers (2)
Walter Roberson
on 4 Mar 2019
You can load() the .mat file, and pull out the variable you need, and use jsonencode()
2 Comments
cui,xingxing
on 26 Aug 2021
Edited: cui,xingxing
on 26 Aug 2021
Hi, you can refer to Export Ground Truth Object to Custom and COCO JSON Files
Import images and COCO annotation json file to Matlab, refer to cocoAPI-matlab
0 Comments
See Also
Categories
Find more on JSON Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!