Converting .mat to .json

조회 수: 53 (최근 30일)
N. Hosseini
N. Hosseini 2019년 3월 4일
편집: xingxingcui 2024년 4월 27일
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?

댓글을 달려면 로그인하십시오.


xingxingcui
xingxingcui 2021년 8월 26일
편집: xingxingcui 2024년 4월 27일
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

카테고리

Help CenterFile Exchange에서 JSON Format에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by