【转】Faster-R-CNN(Python).2:COCO数据集annotation内容

转自:http://blog.csdn.net/qq_30401249/article/details/72636414

因为很多内容都是重复的,所以只截取了部分内容。

instances_train2014.json

instances_val2014.json

{"info": {"description": "This is stable 1.0 version of the 2014 MS COCO dataset.", 
          "url": "http://mscoco.org", 
          "version": "1.0", 
          "year": 2014, 
          "contributor": "Microsoft COCO group", 
          "date_created": "2015-01-27 09:11:52.357475"}, 
"images": [{"license": 5, 
            "file_name": "COCO_train2014_000000057870.jpg", 
            "coco_url": "http://mscoco.org/images/57870", 
            "height": 480, 
            "width": 640, 
            "date_captured": "2013-11-14 16:28:13", 
            "flickr_url": "http://farm4.staticflickr.com/3153/2970773875_164f0c0b83_z.jpg", 
            "id": 57870},#   image_id
           {"license": 5, 
            "file_name": "COCO_train2014_000000384029.jpg",
            "coco_url": "http://mscoco.org/images/384029", 
            "height": 429, "width": 640, 
            "date_captured": "2013-11-14 16:29:45",
            "flickr_url": "http://farm3.staticflickr.com/2422/3577229611_3a3235458a_z.jpg", 
            "id": 384029}, 
           {"license": 1,
            "file_name": "COCO_train2014_000000222016.jpg", 
            "coco_url": "http://mscoco.org/images/222016",
            "height": 640,
            "width": 480, 
            "date_captured": "2013-11-14 16:37:59", 
            "flickr_url": "http://farm2.staticflickr.com/1431/1118526611_09172475e5_z.jpg",
            "id": 222016}
           {"license": 4, 
            "file_name": "COCO_train2014_000000475546.jpg", 
            "coco_url": "http://mscoco.org/images/475546",
            "height": 375,
            "width": 500, 
            "date_captured": "2013-11-25 21:20:23", 
            "flickr_url": "http://farm1.staticflickr.com/167/423175046_6cd9d0205a_z.jpg", 
            "id": 475546}],
"licenses": [{"url": "http://creativecommons.org/licenses/by-nc-sa/2.0/", 
              "id": 1, 
              "name": "Attribution-NonCommercial-ShareAlike License"}, 
             {"url": "http://creativecommons.org/licenses/by-nc/2.0/", 
              "id": 2, 
              "name": "Attribution-NonCommercial License"},
             {"url": "http://creativecommons.org/licenses/by-nc-nd/2.0/", 
              "id": 3, 
              "name": "Attribution-NonCommercial-NoDerivs License"},
             {"url": "http://creativecommons.org/licenses/by/2.0/",
              "id": 4, 
              "name": "Attribution License"}, 
             {"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"}], 
"annotations": [{"segmentation": [[312.29, 562.89, 402.25, 232.61, 560.32, 300.72, 571.89]],
                 "area": 54652.9556,
                 "iscrowd": 0, 
                 "image_id": 480023, 
                 "bbox": [116.95, 305.86, 285.3, 266.03], 
                 "category_id": 58, 
                 "id": 86}, #这个id表示annotation的id,因为每一个图像有不止一个annotation,所以要对每一个annotation编号 
                {"segmentation": [[252.46, 208.17, 267.96, 210.11, 208.45]], 
                 "area": 421.47274999999996,
                 "iscrowd": 0,
                 "image_id": 50518, 
                 "bbox": [245.54, 208.17, 40.14, 19.1], 
                 "category_id": 58, 
                 "id": 89}, 
                {"segmentation": [[349.66, 143.56, 344.19,  131.38, 352.94, 139.19, 355.13, 139.97, 354.5, 144.34]],
                 "area": 292.12984999999935,
                 "iscrowd": 0, 
                 "image_id": 497261, 
                 "bbox": [343.72, 112.63, 17.66, 31.71], 
                 "category_id": 1, 
                 "id": 2232195}, 
                {"segmentation": {"counts": [69901, 4, 21, 2,470, 12, 468, 13, 467, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 73630], "size": [480, 640]}, 
                 "area": 2846, 
                 "iscrowd": 1,
                 "image_id": 554752, 
                 "bbox": [145, 275, 341, 53],
                 "category_id": 1, 
                 "id": 900100554752}, 
                {"segmentation": {"counts": [70375, 8, 415, 12, 411, 391, 34, 391, 34, 391, 35, 149], "size": [425, 640]},
                 "area": 7298,
                 "iscrowd": 1, 
                 "image_id": 350724, 
                 "bbox": [165, 216, 474, 152], 
                 "category_id": 62,
                 "id": 906200350724},  
                {"segmentation": {"counts": [99015, 6, 352, 8,  349, 8, 75781], "size": [359, 640]},
                 "area": 6478, 
                 "iscrowd": 1, 
                 "image_id": 554743,
                 "bbox": [275, 207, 153, 148],
                 "category_id": 1, 
                 "id": 900100554743},
                {"segmentation": {"counts": [97214, 1, 425,  4, 6531], "size": [427, 640]}, 
                 "area": 3489, 
                 "iscrowd": 1, 
                 "image_id": 95999,
                 "bbox": [227, 260, 397, 82], 
                 "category_id": 1, 
                 "id": 900100095999}], 
"categories": [{"supercategory": "person", "id": 1, "name": "person"}, # 一共80类 
               {"supercategory": "vehicle", "id": 2, "name": "bicycle"},
               {"supercategory": "vehicle", "id": 3, "name": "car"},
               {"supercategory": "vehicle", "id": 4, "name": "motorcycle"},
               {"supercategory": "vehicle", "id": 5, "name": "airplane"},
               {"supercategory": "vehicle", "id": 6, "name": "bus"}, 
               {"supercategory": "vehicle", "id": 7, "name": "train"},
               {"supercategory": "vehicle", "id": 8, "name": "truck"},
               {"supercategory": "vehicle", "id": 9, "name": "boat"}, 
               {"supercategory": "outdoor", "id": 10, "name": "traffic light"},
               {"supercategory": "outdoor", "id": 11, "name": "fire hydrant"}, 
               {"supercategory": "outdoor", "id": 13, "name": "stop sign"}, 
               {"supercategory": "outdoor", "id": 14, "name": "parking meter"}, 
               {"supercategory": "outdoor", "id": 15, "name": "bench"}, 
               {"supercategory": "animal", "id": 16, "name": "bird"}, 
               {"supercategory": "animal", "id": 17, "name": "cat"}, 
               {"supercategory": "animal", "id": 18, "name": "dog"}, 
               {"supercategory": "animal", "id": 19, "name": "horse"}, 
               {"supercategory": "animal", "id": 20, "name": "sheep"}, 
               {"supercategory": "animal", "id": 21, "name": "cow"}, 
               {"supercategory": "animal", "id": 22, "name": "elephant"},
               {"supercategory": "animal", "id": 23, "name": "bear"}, 
               {"supercategory": "animal", "id": 24, "name": "zebra"}, 
               {"supercategory": "animal", "id": 25, "name": "giraffe"},
               {"supercategory": "accessory", "id": 27, "name": "backpack"},
               {"supercategory": "accessory", "id": 28, "name": "umbrella"}, 
               {"supercategory": "accessory", "id": 31, "name": "handbag"}, 
               {"supercategory": "accessory", "id": 32, "name": "tie"}, 
               {"supercategory": "accessory", "id": 33, "name": "suitcase"}, 
               {"supercategory": "sports", "id": 34, "name": "frisbee"},
               {"supercategory": "sports", "id": 35, "name": "skis"},
               {"supercategory": "sports", "id": 36, "name": "snowboard"},
               {"supercategory": "sports", "id": 37, "name": "sports ball"}, 
               {"supercategory": "sports", "id": 38, "name": "kite"},
               {"supercategory": "sports", "id": 39, "name": "baseball bat"}, 
               {"supercategory": "sports", "id": 40, "name": "baseball glove"},
               {"supercategory": "sports", "id": 41, "name": "skateboard"}, 
               {"supercategory": "sports", "id": 42, "name": "surfboard"},
               {"supercategory": "sports", "id": 43, "name": "tennis racket"}, 
               {"supercategory": "kitchen", "id": 44, "name": "bottle"}, 
               {"supercategory": "kitchen", "id": 46, "name": "wine glass"}, 
               {"supercategory": "kitchen", "id": 47, "name": "cup"},
               {"supercategory": "kitchen", "id": 48, "name": "fork"}, 
               {"supercategory": "kitchen", "id": 49, "name": "knife"},
               {"supercategory": "kitchen", "id": 50, "name": "spoon"}, 
               {"supercategory": "kitchen", "id": 51, "name": "bowl"},
               {"supercategory": "food", "id": 52, "name": "banana"}, 
               {"supercategory": "food", "id": 53, "name": "apple"}, 
               {"supercategory": "food", "id": 54, "name": "sandwich"}, 
               {"supercategory": "food", "id": 55, "name": "orange"}, 
               {"supercategory": "food", "id": 56, "name": "broccoli"}, 
               {"supercategory": "food", "id": 57, "name": "carrot"},
               {"supercategory": "food", "id": 58, "name": "hot dog"}, 
               {"supercategory": "food", "id": 59, "name": "pizza"}, 
               {"supercategory": "food", "id": 60, "name": "donut"},
               {"supercategory": "food", "id": 61, "name": "cake"}, 
               {"supercategory": "furniture", "id": 62, "name": "chair"},
               {"supercategory": "furniture", "id": 63, "name": "couch"},
               {"supercategory": "furniture", "id": 64, "name": "potted plant"}, 
               {"supercategory": "furniture", "id": 65, "name": "bed"}, 
               {"supercategory": "furniture", "id": 67, "name": "dining table"}, 
               {"supercategory": "furniture", "id": 70, "name": "toilet"},
               {"supercategory": "electronic", "id": 72, "name": "tv"}, 
               {"supercategory": "electronic", "id": 73, "name": "laptop"},
               {"supercategory": "electronic", "id": 74, "name": "mouse"}, 
               {"supercategory": "electronic", "id": 75, "name": "remote"}, 
               {"supercategory": "electronic", "id": 76, "name": "keyboard"}, 
               {"supercategory": "electronic", "id": 77, "name": "cell phone"}, 
               {"supercategory": "appliance", "id": 78, "name": "microwave"},
               {"supercategory": "appliance", "id": 79, "name": "oven"}, 
               {"supercategory": "appliance", "id": 80, "name": "toaster"},
               {"supercategory": "appliance", "id": 81, "name": "sink"},
               {"supercategory": "appliance", "id": 82, "name": "refrigerator"}, 
               {"supercategory": "indoor", "id": 84, "name": "book"}, 
               {"supercategory": "indoor", "id": 85, "name": "clock"},
               {"supercategory": "indoor", "id": 86, "name": "vase"}, 
               {"supercategory": "indoor", "id": 87, "name": "scissors"}, 
               {"supercategory": "indoor", "id": 88, "name": "teddy bear"}, 
               {"supercategory": "indoor", "id": 89, "name": "hair drier"}, 
               {"supercategory": "indoor", "id": 90, "name": "toothbrush"}]}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190

image_info_test2014.json

image_info_test2015.json

image_info_test-dev2015.json

{"info": {"description": "This is stable 1.0 version of the 2014 MS COCO dataset.", 
          "url": "http://mscoco.org",
          "version": "1.0", 
          "year": 2014, "contributor": "Microsoft COCO group", 
          "date_created": "2015-11-11 02:11:36.777541"}, 
"images": [{"license": 2, 
            "file_name": "COCO_test2014_000000523573.jpg",
            "coco_url": "http://mscoco.org/images/523573", 
            "height": 500,
            "width": 423, 
            "date_captured": "2013-11-14 12:21:59",
            "id": 523573}, 
           {"license": 2,
            "file_name": "COCO_test2014_000000347527.jpg", 
            "coco_url": "http://mscoco.org/images/347527", 
            "height": 480, 
            "width": 640, 
            "date_captured": "2013-11-14 15:12:02", 
            "id": 347527}, 
           {"license": 3, 
            "file_name": "COCO_test2014_000000413171.jpg", 
            "coco_url": "http://mscoco.org/images/413171",
            "height": 333, 
            "width": 500, 
            "date_captured": "2013-11-14 16:40:04", 
            "id": 413171}, 
           {"license": 3, 
            "file_name": "COCO_test2014_000000102283.jpg", 
            "coco_url": "http://mscoco.org/images/102283", 
            "height": 640, "width": 425,
            "date_captured": "2013-11-14 16:45:58", 
            "id": 102283}, 
           {"license": 1, 
            "file_name": "COCO_test2014_000000296903.jpg", 
            "coco_url": "http://mscoco.org/images/296903", 
            "height": 480, "width": 640, 
            "date_captured": "2013-11-14 16:52:05", 
            "id": 296903}, 
           {"license": 2,
            "file_name": "COCO_test2014_000000540552.jpg", 
            "coco_url": "http://mscoco.org/images/540552",
            "height": 500, 
            "width": 333, 
            "date_captured": "2013-11-14 17:01:31",
            "id": 540552}, 
           {"license": 1,
            "file_name": "COCO_test2014_000000327534.jpg", 
            "coco_url": "http://mscoco.org/images/327534", 
            "height": 480, 
            "width": 640, 
            "date_captured": "2013-11-14 17:38:36", 
            "id": 327534}, 
           {"license": 3, 
            "file_name": "COCO_test2014_000000155724.jpg", 
            "coco_url": "http://mscoco.org/images/155724", 
            "height": 640, 
            "width": 480, 
            "date_captured": "2013-11-25 21:24:27", 
            "id": 155724}], 
"licenses": [{"url": "http://creativecommons.org/licenses/by-nc-sa/2.0/", 
              "id": 1, 
              "name": "Attribution-NonCommercial-ShareAlike License"}, 
             {"url": "http://creativecommons.org/licenses/by-nc/2.0/", 
              "id": 2, 
              "name": "Attribution-NonCommercial License"}, 
             {"url": "http://creativecommons.org/licenses/by-nc-nd/2.0/", 
              "id": 3, 
              "name": "Attribution-NonCommercial-NoDerivs License"}, 
             {"url": "http://creativecommons.org/licenses/by/2.0/", 
              "id": 4, 
              "name": "Attribution License"},
             {"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"}], 
"categories": [{"supercategory": "person", "id": 1, "name": "person"}, 
               {"supercategory": "vehicle", "id": 2, "name": "bicycle"},
               {"supercategory": "vehicle", "id": 3, "name": "car"}, 
               {"supercategory": "vehicle", "id": 4, "name": "motorcycle"}, 
               {"supercategory": "vehicle", "id": 5, "name": "airplane"}, 
               {"supercategory": "vehicle", "id": 6, "name": "bus"}, 
               {"supercategory": "vehicle", "id": 7, "name": "train"}, 
               {"supercategory": "vehicle", "id": 8, "name": "truck"}, 
               {"supercategory": "vehicle", "id": 9, "name": "boat"}, 
               {"supercategory": "outdoor", "id": 10, "name": "traffic light"}, 
               {"supercategory": "outdoor", "id": 11, "name": "fire hydrant"}, 
               {"supercategory": "outdoor", "id": 13, "name": "stop sign"}, 
               {"supercategory": "outdoor", "id": 14, "name": "parking meter"}, 
               {"supercategory": "outdoor", "id": 15, "name": "bench"}, 
               {"supercategory": "animal", "id": 16, "name": "bird"}, 
               {"supercategory": "animal", "id": 17, "name": "cat"}, 
               {"supercategory": "animal", "id": 18, "name": "dog"}, 
               {"supercategory": "animal", "id": 19, "name": "horse"}, 
               {"supercategory": "animal", "id": 20, "name": "sheep"}, 
               {"supercategory": "animal", "id": 21, "name": "cow"}, 
               {"supercategory": "animal", "id": 22, "name": "elephant"}, 
               {"supercategory": "animal", "id": 23, "name": "bear"}, 
               {"supercategory": "animal", "id": 24, "name": "zebra"}, 
               {"supercategory": "animal", "id": 25, "name": "giraffe"}, 
               {"supercategory": "accessory", "id": 27, "name": "backpack"}, 
               {"supercategory": "accessory", "id": 28, "name": "umbrella"}, 
               {"supercategory": "accessory", "id": 31, "name": "handbag"}, 
               {"supercategory": "accessory", "id": 32, "name": "tie"}, 
               {"supercategory": "accessory", "id": 33, "name": "suitcase"}, 
               {"supercategory": "sports", "id": 34, "name": "frisbee"}, 
               {"supercategory": "sports", "id": 35, "name": "skis"}, 
               {"supercategory": "sports", "id": 36, "name": "snowboard"}, 
               {"supercategory": "sports", "id": 37, "name": "sports ball"}, 
               {"supercategory": "sports", "id": 38, "name": "kite"}, 
               {"supercategory": "sports", "id": 39, "name": "baseball bat"},
               {"supercategory": "sports", "id": 40, "name": "baseball glove"}, 
               {"supercategory": "sports", "id": 41, "name": "skateboard"},
               {"supercategory": "sports", "id": 42, "name": "surfboard"}, 
               {"supercategory": "sports", "id": 43, "name": "tennis racket"}, 
               {"supercategory": "kitchen", "id": 44, "name": "bottle"},
               {"supercategory": "kitchen", "id": 46, "name": "wine glass"}, 
               {"supercategory": "kitchen", "id": 47, "name": "cup"}, 
               {"supercategory": "kitchen", "id": 48, "name": "fork"},
               {"supercategory": "kitchen", "id": 49, "name": "knife"}, 
               {"supercategory": "kitchen", "id": 50, "name": "spoon"}, 
               {"supercategory": "kitchen", "id": 51, "name": "bowl"}, 
               {"supercategory": "food", "id": 52, "name": "banana"}, 
               {"supercategory": "food", "id": 53, "name": "apple"}, 
               {"supercategory": "food", "id": 54, "name": "sandwich"}, 
               {"supercategory": "food", "id": 55, "name": "orange"}, 
               {"supercategory": "food", "id": 56, "name": "broccoli"}, 
               {"supercategory": "food", "id": 57, "name": "carrot"},
               {"supercategory": "food", "id": 58, "name": "hot dog"}, 
               {"supercategory": "food", "id": 59, "name": "pizza"}, 
               {"supercategory": "food", "id": 60, "name": "donut"}, 
               {"supercategory": "food", "id": 61, "name": "cake"}, 
               {"supercategory": "furniture", "id": 62, "name": "chair"}, 
               {"supercategory": "furniture", "id": 63, "name": "couch"}, 
               {"supercategory": "furniture", "id": 64, "name": "potted plant"},
               {"supercategory": "furniture", "id": 65, "name": "bed"}, 
               {"supercategory": "furniture", "id": 67, "name": "dining table"},
               {"supercategory": "furniture", "id": 70, "name": "toilet"}, 
               {"supercategory": "electronic", "id": 72, "name": "tv"}, 
               {"supercategory": "electronic", "id": 73, "name": "laptop"}, 
               {"supercategory": "electronic", "id": 74, "name": "mouse"},
               {"supercategory": "electronic", "id": 75, "name": "remote"}, 
               {"supercategory": "electronic", "id": 76, "name": "keyboard"},
               {"supercategory": "electronic", "id": 77, "name": "cell phone"}, 
               {"supercategory": "appliance", "id": 78, "name": "microwave"}, 
               {"supercategory": "appliance", "id": 79, "name": "oven"}, 
               {"supercategory": "appliance", "id": 80, "name": "toaster"}, 
               {"supercategory": "appliance", "id": 81, "name": "sink"},
               {"supercategory": "appliance", "id": 82, "name": "refrigerator"}, 
               {"supercategory": "indoor", "id": 84, "name": "book"},
               {"supercategory": "indoor", "id": 85, "name": "clock"},
               {"supercategory": "indoor", "id": 86, "name": "vase"}, 
               {"supercategory": "indoor", "id": 87, "name": "scissors"},
               {"supercategory": "indoor", "id": 88, "name": "teddy bear"},
               {"supercategory": "indoor", "id": 89, "name": "hair drier"},
               {"supercategory": "indoor", "id": 90, "name": "toothbrush"}]}

发布了102 篇原创文章 · 获赞 75 · 访问量 40万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览