人体骨骼关键点检测
-
coco数据集获取
从官网上下载coco数据集:会有一个这个的文件:person_keypoints_val2017.json,coco数据集提供了python的API .
由于coco数据集可以用于需要的任务,如:语义分割、人体分割、物体分类等,应用时需要选择正确的josn文件。1.1 josn 文件示例(删减版)
josn文件分为:几个节点 “info”: 、“licenses”: 、“images”:、“annotations”: 、 “categories”: ;
每个节点中包含了许多的子节点,子节点中友有许多的属性;
{
"info":
{
"description": "COCO 2017 Dataset",
"url": "http://cocodataset.org",
"version": "1.0","year": 2017,
"contributor": "COCO Consortium",
"date_created": "2017/09/01"},
"licenses":
[
{
"url": "http://creativecommons.org/licenses/by-sa/2.0/","id": 5,"name": "Attribution-ShareAlike License"},
{
"url": "http://creativecommons.org/licenses/by-nd/2.0/","id": 6,"name": "Attribution-NoDerivs License"},
{
"url": "http://flickr.com/commons/usage/","id": 7,"name": "No known copyright restrictions"},
{
"url": "http://www.usa.gov/copyright.shtml","id": 8,"name": "United States Government Work"}
],
"images": ###注意这里!!! (节点)
[
{
"license": 4, #属性
"file_name": "000000425226.jpg", ###注意这里!!!
"coco_url": "http://images.cocodataset.org/val2017/000000397133.jpg",
"height": 427,
"width": 640,
"date_captured": "2013-11-14 17:02:52",
"flickr_url": "http://farm7.staticflickr.com/6116/6255196340_da26cf2c9e_z.jpg",
"id": 397133 ###注意这里!!!
}, #子节点
{
"license": 1,
"file_name": "000000440475.jpg", ###注意这里!!!
"coco_url": "http://images.cocodataset.org/val2017/000000037777.jpg",
"height": 230,
"width": 352,
"date_captured": "2013-11-14 20:55:31",
"flickr_url": "http://farm9.staticflickr.com/8429/7839199426_f6d48aa585_z.jpg",
"id": 37777 ###注意这里!!!
}
],
"annotations":
[
{
"segmentation":
[[125.12,539.69,140.94,522.43,100.67,496.54,84.85,469.21,73.35,450.52,104.99,342.65,168.27,290.88,179.78,288,189.84,286.56,191.28,260.67,202.79,240.54,221.48,237.66,248.81,243.42,257.44,256.36,253.12,262.11,253.12,275.06,299.15,233.35,329.35,207.46,355.24,206.02,363.87,206.02,365.3,210.34,373.93,221.84,363.87,226.16,363.87,237.66,350.92,237.66,332.22,234.79,314.97,249.17,271.82,313.89,253.1