https://github.com/cuixing158/imagelabeler-api
Convenient image annotation tool API
https://github.com/cuixing158/imagelabeler-api
api computer-vision ground-truth image-labeling voc-dataset
Last synced: 4 months ago
JSON representation
Convenient image annotation tool API
- Host: GitHub
- URL: https://github.com/cuixing158/imagelabeler-api
- Owner: cuixing158
- Created: 2019-09-16T12:06:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-25T05:56:20.000Z (11 months ago)
- Last Synced: 2025-11-09T10:02:40.556Z (8 months ago)
- Topics: api, computer-vision, ground-truth, image-labeling, voc-dataset
- Language: HTML
- Homepage:
- Size: 7.88 MB
- Stars: 24
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Labeler app
> [!NOTE]
> update:如果用户是使用COCO JSON、OpenLabel JSON类型的标注格式文件标注、交互,请分别使用`groundTruthFromOpenLabel`(R2024b)/`groundTruthToOpenLabel`(R2024a)、`groundTruthFromCOCO`(R2025a)等新型内置函数
本程序旨在标注图像文件简单交互式格式互转,支持拖曳矩形框,像素语义级别两种类型标注。
共提供6个接口(函数),具体转换关系图如下:
VOCxml<------->Matlab groundTruth,rectangle
txt<------->Matlab groundTruth,rectangle
png(pixel)<------->Matlab groundTruth,pixel
其中Matlab table格式可以在MATLAB2017b(及以后新版本)中imageLabeler/trainingImageLabeler APP中修改/查看等等操作,方便自由~
注意:xml_io_tools_2010_11_05.zip为安装文件,解压加入到工作路径即可使用(文件已包含)。
下载链接:http://cn.mathworks.com/matlabcentral/fileexchange/12907-xml-io-tools
## 6个接口(额外1个配最新版本转gTruth)
VOCxml_to_matlab_main.m为批量VOC-xml转MATLAB table格式文件;
matlab_to_VOCxml.m为MATLAB table转VOC-xml格式文件;
txt_to_matlab.m为txt文本转MATLAB table格式文件;
table_to_gTruth.m为table格式转换groundTruth格式;
matlab_to_txt.m为MATLAB table转txt文本格式。
pixel_to_matlab.m为png像素标注转MATLAB groundTruth格式文件;
matlab_to_pixel.m为MATLAB groundTruth转png像素级别标注格式。
## txt文本标记格式
比如文本内容打开如下,分别表示类别,x,y,width,height,四个缺省值0,txt和xml中像素是以0开始的索引:
3
car 401 381 305 201 0 0 0 0
car 149 377 234 143 0 0 0 0
stop 858 318 39 43 0 0 0 0
> [!TIP]
> MATLAB groundTruth格式文件由imageLabeler APP导出/制作查看的格式,适合2017b及以后版本。
> 原图像与标注文件要位于同一目录并且一一对应,文件名相同,后缀不同,参考“stopSignImages”标注样式。