Converting .mat to .json
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?
Answers (2)
Walter Roberson
on 4 Mar 2019
1 vote
You can load() the .mat file, and pull out the variable you need, and use jsonencode()
2 Comments
N. Hosseini
on 9 Mar 2019
shubham Kumar
on 10 Jul 2019
how can we save the .json file after creating the .json format?
xingxingcui
on 26 Aug 2021
Edited: xingxingcui
on 27 Apr 2024
0 votes
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
-------------------------Off-topic interlude, 2024-------------------------------
I am currently looking for a job in the field of CV algorithm development, based in Shenzhen, Guangdong, China,or a remote support position. I would be very grateful if anyone is willing to offer me a job or make a recommendation. My preliminary resume can be found at: https://cuixing158.github.io/about/ . Thank you!
Email: cuixingxing150@gmail.com
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!