界面
点击中间框添加图片
添加完毕——选择物体检测
选择开始,会在网页中添加类别
从文件加载标签,可以自己新建txt将所有类别显示
在action——edit labels 增加标注(类别)
用矩阵框把目标框起来,然后选择类别
action——export annotations导出标注,以VOC为例
导出结果,得到四个xml文件
YOLO格式导出,得到四个TXT文件
格式为:[类目,矩阵框左边在图片中的百分比]
创建项目
新建任务
每个项目中有很多task
打开项目——进行标注——标记完毕之后点击保存
导出结果
选择coco1.0导出结果为:
拖动到pycharm中 点击两下shift,reformat code,得到以下结果
{
"licenses": [
{
"name": "",
"id": 0,
"url": ""
}
],
"info": {
"contributor": "",
"date_created": "",
"description": "",
"url": "",
"version": "",
"year": ""
},
"categories": [
{
"id": 1,
"name": "dog",
"supercategory": ""
},
{
"id": 2,
"name": "cat",
"supercategory": ""
},
{
"id": 3,
"name": "airplane",
"supercategory": ""
},
{
"id": 4,
"name": "computer",
"supercategory": ""
}
],
"images": [
{
"id": 1,
"width": 376,
"height": 251,
"file_name": "airplane.jpg",
"license": 0,
"flickr_url": "",
"coco_url": "",
"date_captured": 0
},
{
"id": 2,
"width": 369,
"height": 248,
"file_name": "cat.jpg",
"license": 0,
"flickr_url": "",
"coco_url": "",
"date_captured": 0
},
{
"id": 3,
"width": 240,
"height": 248,
"file_name": "computer.jpg",
"license": 0,
"flickr_url": "",
"coco_url": "",
"date_captured": 0
},
{
"id": 4,
"width": 155,
"height": 151,
"file_name": "dog.jpg",
"license": 0,
"flickr_url": "",
"coco_url": "",
"date_captured": 0
}
],
"annotations": [
{
"id": 1,
"image_id": 1,
"category_id": 3,
"segmentation": [],
"area": 37841.2856,
"bbox": [
71.08,
43.86,
300.28,
126.02
],
"iscrowd": 0,
"attributes": {
"occluded": false,
"rotation": 0.0
}
},
{
"id": 2,
"image_id": 2,
"category_id": 3,
"segmentation": [],
"area": 48662.27500000001,
"bbox": [
76.77,
31.77,
245.15,
198.5
],
"iscrowd": 0,
"attributes": {
"occluded": false,
"rotation": 0.0
}
},
{
"id": 3,
"image_id": 3,
"category_id": 3,
"segmentation": [],
"area": 39518.580200000004,
"bbox": [
25.39,
28.7,
204.94,
192.83
],
"iscrowd": 0,
"attributes": {
"occluded": false,
"rotation": 0.0
}
},
{
"id": 4,
"image_id": 4,
"category_id": 3,
"segmentation": [],
"area": 20823.421799999996,
"bbox": [
4.27,
3.61,
143.59,
145.02
],
"iscrowd": 0,
"attributes": {
"occluded": false,
"rotation": 0.0
}
}
]
}
工具 — 安装比较麻烦