COCO数据总信息

复制代码
# 数据集信息描述
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-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'}]

# 所属许可证 # 图片名 网址 高宽 数据获取日期 flickr网址 图片id
images = [{'license': 4, 'file_name': '000000397133.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},
          '...这里省略4998个,对于instances_val2017.json来说',
          {'license': 2, 'file_name': '000000015335.jpg',
           'coco_url': 'http://images.cocodataset.org/val2017/000000015335.jpg', 'height': 480, 'width': 640,
           'date_captured': '2013-11-25 14:00:10',
           'flickr_url': 'http://farm6.staticflickr.com/5533/10257288534_c916fafd78_z.jpg', 'id': 15335}
          ]
# iscrow为0时,segmentation字段表现为同一个偶数长度的list iscrow为1时表现为一个RLE格式的list与size
# category_id是指categories中的id,image_id同理,id指的是该标注物体的id
# bbox意为[x1,y1,w,h] area为该标注物体的像素面积,并非w*h
annotations = [{'segmentation': [
    [510.66, 423.01, 511.72, 420.03, 510.45, 416.0, 510.34, 413.02, 510.77, 410.26, 510.77, 407.5, 510.34, 405.16,
     511.51, 402.83, 511.41, 400.49, 510.24, 398.16, 509.39, 397.31, 504.61, 399.22, 502.17, 399.64, 500.89, 401.66,
     500.47, 402.08, 499.09, 401.87, 495.79, 401.98, 490.59, 401.77, 488.79, 401.77, 485.39, 398.58, 483.9, 397.31,
     481.56, 396.35, 478.48, 395.93, 476.68, 396.03, 475.4, 396.77, 473.92, 398.79, 473.28, 399.96, 473.49, 401.87,
     474.56, 403.47, 473.07, 405.59, 473.39, 407.71, 476.68, 409.41, 479.23, 409.73, 481.56, 410.69, 480.4, 411.85,
     481.35, 414.93, 479.86, 418.65, 477.32, 420.03, 476.04, 422.58, 479.02, 422.58, 480.29, 423.01, 483.79, 419.93,
     486.66, 416.21, 490.06, 415.57, 492.18, 416.85, 491.65, 420.24, 492.82, 422.9, 493.56, 424.39, 496.43, 424.6,
     498.02, 423.01, 498.13, 421.31, 497.07, 420.03, 497.07, 415.15, 496.33, 414.51, 501.1, 411.96, 502.06, 411.32,
     503.02, 415.04, 503.33, 418.12, 501.1, 420.24, 498.98, 421.63, 500.47, 424.39, 505.03, 423.32, 506.2, 421.31,
     507.69, 419.5, 506.31, 423.32, 510.03, 423.01, 510.45, 423.01]], 'area': 702.1057499999998, 'iscrowd': 0,
    'image_id': 289343, 'bbox': [473.07, 395.93, 38.65, 28.67], 'category_id': 18, 'id': 1768},
    '...这里省略36719个',
    {'segmentation': {
        'counts': [179, 27, 392, 41, 380, 51, 371, 59, 363, 67, 356, 73, 350, 79, 129, 9, 207, 82, 124, 10, 208, 84,
                   121, 10, 209, 85, 121, 8, 209, 88, 336, 89, 154, 1, 181, 90, 154, 2, 178, 73, 2, 16, 155, 3, 176, 62,
                   15, 15, 155, 4, 173, 63, 18, 12, 156, 6, 169, 64, 21, 10, 156, 6, 168, 64, 24, 7, 156, 8, 166, 64,
                   27, 5, 156, 9, 163, 65, 189, 10, 161, 65, 189, 12, 159, 65, 190, 12, 157, 66, 191, 13, 130, 24, 1,
                   67, 191, 13, 126, 95, 192, 14, 122, 98, 192, 15, 119, 99, 193, 15, 117, 100, 194, 15, 114, 103, 194,
                   16, 109, 106, 195, 16, 106, 109, 195, 16, 104, 111, 195, 17, 101, 113, 195, 17, 99, 115, 195, 17, 95,
                   119, 195, 17, 92, 122, 195, 17, 90, 124, 192, 20, 88, 126, 190, 22, 86, 128, 187, 25, 85, 129, 185,
                   27, 84, 130, 157, 55, 83, 132, 148, 63, 81, 135, 144, 67, 80, 136, 32, 1, 110, 67, 79, 138, 30, 3,
                   92, 9, 8, 67, 78, 140, 28, 4, 88, 15, 6, 67, 77, 143, 25, 6, 86, 18, 4, 67, 76, 146, 21, 8, 86, 21,
                   1, 67, 76, 149, 15, 12, 84, 90, 75, 177, 83, 91, 75, 178, 81, 92, 74, 179, 81, 92, 73, 181, 58, 1,
                   20, 94, 72, 181, 58, 2, 18, 95, 72, 182, 56, 5, 15, 96, 71, 183, 55, 8, 13, 97, 70, 184, 53, 11, 5,
                   103, 70, 185, 51, 120, 69, 186, 51, 121, 68, 187, 49, 122, 68, 188, 47, 123, 68, 189, 45, 124, 68,
                   189, 44, 126, 67, 190, 43, 126, 67, 191, 41, 127, 67, 191, 40, 129, 66, 192, 38, 130, 66, 195, 34,
                   131, 66, 198, 30, 132, 66, 201, 26, 133, 66, 204, 22, 134, 66, 221, 4, 135, 66, 360, 66, 360, 67,
                   359, 67, 359, 67, 359, 67, 359, 68, 358, 68, 359, 68, 358, 68, 358, 69, 357, 69, 357, 70, 356, 70,
                   356, 69, 357, 69, 357, 68, 359, 66, 360, 66, 360, 66, 360, 65, 361, 65, 361, 65, 361, 64, 362, 64,
                   362, 64, 362, 64, 362, 64, 362, 64, 362, 64, 362, 64, 362, 64, 362, 64, 362, 64, 362, 64, 362, 64,
                   362, 64, 362, 64, 362, 64, 362, 64, 362, 65, 361, 65, 361, 65, 361, 65, 361, 66, 360, 66, 360, 67,
                   359, 67, 359, 68, 358, 68, 84, 1, 273, 69, 83, 4, 270, 70, 81, 8, 43, 2, 222, 70, 80, 11, 40, 3, 222,
                   71, 79, 13, 38, 3, 221, 73, 77, 15, 36, 4, 221, 74, 75, 17, 34, 6, 220, 72, 45, 4, 28, 19, 31, 7,
                   220, 71, 45, 11, 21, 21, 29, 8, 220, 70, 44, 16, 18, 23, 26, 10, 220, 68, 44, 19, 15, 26, 26, 8, 220,
                   66, 44, 22, 13, 30, 25, 7, 219, 66, 43, 25, 10, 34, 22, 7, 219, 65, 42, 28, 8, 40, 14, 11, 218, 64,
                   42, 31, 5, 49, 3, 14, 218, 63, 42, 33, 3, 68, 217, 62, 42, 105, 217, 62, 42, 105, 217, 61, 43, 106,
                   216, 61, 43, 106, 216, 60, 44, 107, 215, 59, 45, 107, 215, 59, 45, 108, 214, 59, 45, 108, 214, 58,
                   46, 104, 218, 58, 46, 95, 226, 59, 46, 92, 229, 58, 47, 91, 230, 58, 48, 89, 231, 58, 48, 88, 231,
                   59, 48, 88, 231, 59, 48, 87, 231, 60, 48, 86, 232, 60, 48, 85, 233, 60, 50, 82, 235, 59, 52, 24, 3,
                   53, 236, 58, 54, 21, 6, 50, 237, 58, 56, 17, 11, 46, 239, 57, 58, 7, 20, 45, 239, 57, 86, 43, 240,
                   57, 87, 9, 14, 18, 242, 56, 87, 8, 18, 15, 242, 56, 88, 6, 21, 12, 243, 57, 88, 5, 24, 8, 244, 57,
                   89, 3, 278, 56, 89, 2, 279, 56, 370, 57, 369, 57, 369, 58, 368, 58, 368, 59, 367, 59, 312, 5, 50, 60,
                   308, 17, 38, 1, 2, 61, 303, 22, 32, 6, 2, 61, 299, 26, 31, 6, 3, 62, 281, 1, 12, 31, 30, 6, 3, 63,
                   280, 44, 29, 7, 3, 64, 278, 46, 28, 6, 4, 65, 276, 47, 28, 6, 4, 66, 275, 48, 26, 7, 4, 67, 273, 49,
                   26, 7, 4, 68, 271, 51, 23, 9, 4, 70, 269, 53, 18, 12, 3, 73, 266, 55, 15, 14, 3, 74, 264, 57, 13, 15,
                   3, 77, 261, 58, 11, 16, 3, 80, 18, 2, 237, 60, 9, 17, 2, 87, 6, 8, 236, 65, 4, 18, 3, 99, 235, 89, 3,
                   99, 234, 90, 3, 99, 232, 92, 3, 99, 229, 95, 4, 98, 227, 97, 4, 98, 224, 100, 4, 98, 199, 1, 20, 104,
                   4, 98, 199, 1, 16, 108, 5, 97, 198, 2, 12, 112, 5, 97, 198, 2, 1, 123, 5, 97, 197, 127, 6, 95, 197,
                   128, 6, 95, 197, 128, 6, 95, 197, 128, 7, 94, 197, 127, 8, 93, 198, 127, 9, 92, 193, 3, 2, 127, 9,
                   92, 33, 2, 153, 8, 2, 127, 9, 92, 27, 9, 147, 13, 2, 127, 9, 92, 21, 15, 134, 26, 1, 128, 10, 91, 14,
                   23, 129, 30, 1, 127, 11, 91, 10, 28, 125, 33, 1, 127, 11, 90, 9, 31, 122, 35, 1, 127, 11, 90, 8, 33,
                   120, 36, 1, 127, 12, 89, 6, 36, 118, 37, 1, 126, 13, 89, 4, 39, 117, 37, 1, 125, 14, 90, 1, 42, 115,
                   163, 15, 134, 113, 163, 17, 134, 112, 162, 18, 134, 111, 162, 19, 135, 109, 163, 19, 136, 69, 25, 13,
                   163, 20, 137, 68, 30, 8, 163, 20, 138, 67, 34, 3, 165, 19, 139, 65, 82, 1, 120, 20, 139, 64, 82, 3,
                   119, 19, 140, 63, 82, 11, 112, 18, 140, 62, 208, 16, 139, 63, 210, 14, 139, 63, 211, 13, 139, 63,
                   213, 11, 138, 63, 215, 10, 138, 63, 216, 9, 138, 63, 217, 8, 95, 1, 42, 63, 218, 7, 92, 5, 41, 62,
                   218, 9, 89, 8, 39, 63, 218, 9, 87, 12, 37, 63, 217, 10, 85, 15, 36, 63, 119, 1, 96, 11, 83, 18, 35,
                   62, 121, 1, 94, 12, 83, 24, 11, 80, 123, 1, 91, 13, 83, 116, 123, 1, 89, 14, 83, 116, 212, 15, 82,
                   118, 126, 19, 60, 2, 1, 18, 82, 119, 126, 22, 40, 5, 8, 24, 82, 120, 127, 23, 36, 38, 82, 121, 127,
                   26, 30, 40, 81, 13, 2, 108, 128, 26, 26, 42, 81, 13, 2, 109, 127, 26, 25, 43, 81, 12, 3, 110, 127,
                   25, 23, 45, 81, 11, 4, 111, 23, 6, 97, 26, 21, 46, 80, 12, 5, 110, 20, 9, 97, 26, 19, 48, 80, 11, 6,
                   111, 17, 12, 97, 25, 17, 51, 79, 11, 6, 112, 15, 14, 96, 25, 16, 52, 79, 10, 7, 114, 11, 17, 96, 25,
                   13, 54, 79, 10, 7, 142, 96, 25, 12, 55, 79, 9, 8, 143, 96, 24, 12, 56, 77, 10, 9, 143, 93, 28, 9, 57,
                   77, 9, 10, 143, 91, 31, 7, 58, 77, 9, 11, 143, 88, 34, 6, 58, 77, 8, 12, 144, 60, 3, 21, 101, 76, 9,
                   13, 25, 5, 114, 57, 8, 16, 103, 76, 9, 15, 22, 6, 114, 55, 12, 12, 105, 76, 8, 18, 19, 8, 114, 52,
                   16, 8, 108, 75, 8, 20, 17, 9, 114, 49, 21, 3, 110, 74, 8, 27, 10, 10, 114, 48, 135, 75, 5, 31, 8, 11,
                   114, 45, 137, 78, 1, 34, 1, 17, 114, 42, 139, 131, 115, 21, 159, 132, 115, 21, 158, 133, 49, 13, 37,
                   37, 157, 133, 48, 18, 25, 45, 157, 133, 48, 22, 13, 54, 156, 133, 47, 27, 2, 62, 155, 134, 23, 2, 21,
                   91, 155, 134, 18, 10, 17, 87, 160, 134, 14, 16, 14, 81, 167, 134, 13, 19, 12, 75, 173, 134, 12, 22,
                   9, 74, 175, 134, 12, 25, 5, 72, 178, 134, 11, 28, 3, 70, 180, 135, 9, 99, 183, 135, 9, 96, 186, 135,
                   8, 96, 187, 135, 7, 97, 187, 135, 7, 96, 188, 72, 10, 53, 7, 96, 188, 72, 11, 52, 3, 2, 2, 96, 188,
                   71, 12, 52, 2, 2, 2, 96, 189, 71, 12, 51, 1, 4, 2, 96, 189, 71, 13, 49, 2, 4, 2, 95, 189, 72, 13, 49,
                   1, 5, 2, 69, 2, 24, 189, 71, 14, 48, 2, 6, 1, 67, 7, 21, 190, 70, 15, 46, 2, 7, 1, 65, 12, 17, 191,
                   70, 15, 46, 1, 9, 1, 63, 15, 15, 191, 70, 16, 44, 2, 9, 1, 61, 18, 14, 191, 70, 16, 43, 2, 11, 1, 59,
                   20, 11, 193, 70, 17, 42, 2, 12, 1, 56, 24, 7, 195, 70, 17, 27, 1, 13, 2, 13, 1, 55, 26, 5, 196, 69,
                   19, 32, 1, 7, 1, 15, 1, 53, 28, 2, 199, 68, 20, 20, 2, 9, 1, 6, 1, 18, 1, 50, 230, 68, 21, 9, 1, 20,
                   1, 5, 1, 46, 3, 19, 232, 68, 22, 5, 1, 23, 1, 37, 19, 17, 233, 68, 23, 2, 2, 25, 1, 1, 1, 45, 8, 17,
                   233, 68, 26, 75, 7, 17, 233, 68, 26, 77, 6, 16, 233, 68, 26, 78, 5, 16, 233, 68, 26, 80, 4, 16, 232,
                   68, 26, 81, 3, 16, 232, 68, 26, 82, 2, 16, 232, 68, 26, 83, 2, 15, 232, 65, 29, 84, 1, 15, 232, 61,
                   33, 85, 1, 15, 231, 58, 36, 86, 1, 14, 231, 56, 38, 101, 231, 54, 40, 101, 231, 52, 42, 102, 230, 51,
                   43, 102, 230, 50, 44, 102, 230, 49, 45, 103, 229, 47, 47, 103, 229, 47, 48, 102, 229, 46, 49, 102,
                   229, 45, 51, 104, 226, 44, 53, 107, 22, 2, 198, 43, 55, 110, 8, 12, 198, 43, 56, 17, 7, 2, 3, 101,
                   196, 43, 59, 11, 17, 26, 6, 69, 195, 43, 60, 4, 23, 24, 14, 64, 194, 42, 89, 22, 15, 64, 194, 41, 91,
                   20, 16, 65, 193, 41, 92, 18, 17, 48, 210, 41, 92, 17, 18, 20, 238, 40, 93, 16, 19, 18, 240, 40, 95,
                   13, 20, 17, 241, 40, 96, 11, 21, 15, 243, 39, 98, 8, 23, 14, 244, 39, 99, 5, 25, 12, 246, 39, 100, 2,
                   29, 8, 248, 39, 387, 39, 387, 39, 387, 39, 387, 39, 387, 39, 94, 5, 119, 7, 162, 39, 92, 8, 111, 18,
                   158, 39, 92, 9, 103, 29, 154, 39, 91, 10, 99, 35, 152, 39, 91, 10, 98, 35, 153, 39, 90, 11, 97, 34,
                   155, 39, 90, 11, 96, 34, 156, 39, 89, 13, 68, 2, 24, 35, 156, 40, 88, 13, 65, 6, 21, 36, 157, 40, 87,
                   14, 63, 8, 20, 37, 157, 40, 87, 14, 60, 12, 18, 37, 158, 40, 86, 16, 57, 15, 17, 37, 158, 41, 57, 7,
                   21, 16, 55, 18, 15, 37, 159, 41, 52, 15, 18, 16, 54, 19, 15, 37, 158, 43, 49, 21, 13, 19, 51, 21, 14,
                   37, 158, 43, 48, 25, 9, 22, 48, 24, 11, 38, 158, 44, 45, 29, 6, 26, 44, 26, 10, 38, 158, 44, 44, 32,
                   3, 29, 26, 3, 12, 28, 8, 39, 158, 45, 42, 68, 18, 10, 9, 30, 6, 40, 158, 46, 40, 73, 10, 17, 5, 34,
                   1, 43, 157, 46, 39, 78, 3, 22, 2, 79, 156, 48, 37, 104, 1, 81, 155, 49, 36, 186, 155, 48, 37, 103, 1,
                   83, 154, 47, 38, 103, 2, 82, 153, 47, 39, 102, 3, 83, 152, 47, 39, 102, 3, 84, 151, 46, 40, 102, 3,
                   85, 150, 46, 40, 101, 4, 86, 149, 45, 41, 101, 4, 87, 24, 3, 121, 44, 43, 99, 4, 1, 1, 88, 21, 7,
                   118, 44, 43, 99, 3, 93, 19, 9, 116, 44, 43, 98, 3, 97, 14, 12, 115, 43, 44, 98, 2, 100, 9, 16, 114,
                   43, 44, 97, 2, 127, 113, 43, 45, 96, 1, 129, 112, 42, 46, 227, 111, 42, 47, 36, 1, 68, 1, 121, 110,
                   42, 48, 34, 3, 68, 1, 121, 109, 42, 49, 31, 5, 68, 3, 27, 4, 89, 108, 42, 52, 26, 8, 67, 4, 24, 7,
                   88, 108, 42, 55, 21, 10, 36, 2, 30, 4, 21, 10, 88, 107, 42, 59, 16, 12, 40, 8, 19, 6, 18, 5, 1, 2, 1,
                   3, 87, 106, 43, 63, 4, 20, 67, 8, 15, 4, 3, 1, 5, 1, 86, 106, 43, 87, 69, 8, 11, 5, 11, 1, 85, 106,
                   43, 88, 12, 1, 57, 8, 3, 9, 13, 1, 86, 105, 43, 88, 72, 16, 16, 1, 85, 105, 43, 89, 103, 2, 85, 104,
                   43, 89, 104, 1, 85, 104, 43, 90, 103, 2, 85, 103, 43, 90, 104, 1, 85, 103, 43, 92, 102, 2, 85, 102,
                   44, 93, 101, 2, 86, 100, 44, 95, 99, 2, 88, 97, 45, 97, 97, 3, 89, 95, 45, 98, 97, 3, 90, 93, 46, 97,
                   97, 3, 88, 95, 46, 97, 98, 3, 53, 11, 20, 98, 47, 96, 98, 4, 48, 27, 5, 101, 47, 96, 99, 3, 45, 136,
                   48, 95, 99, 5, 38, 140, 49, 94, 101, 11, 25, 146, 50, 93, 101, 18, 13, 151, 51, 92, 102, 23, 1, 2, 2,
                   153, 51, 92, 130, 152, 53, 92, 130, 151, 54, 92, 129, 151, 54, 94, 127, 151, 54, 95, 127, 150, 53,
                   97, 126, 150, 52, 99, 125, 150, 51, 101, 122, 152, 50, 103, 119, 154, 50, 106, 17, 4, 31, 17, 45,
                   156, 49, 110, 10, 12, 23, 26, 18, 178, 49, 114, 2, 19, 18, 31, 15, 178, 48, 138, 14, 34, 14, 178, 47,
                   140, 12, 37, 11, 178, 48, 142, 10, 39, 9, 178, 48, 144, 7, 42, 7, 178, 47, 146, 1, 49, 5, 178, 47,
                   197, 4, 178, 47, 199, 2, 178, 46, 380, 46, 380, 46, 380, 46, 380, 46, 379, 47, 379, 47, 379, 47, 379,
                   47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 378, 48, 378, 49, 377, 49, 377,
                   49, 377, 49, 377, 50, 376, 50, 376, 51, 375, 51, 375, 52, 373, 53, 373, 54, 372, 55, 371, 55, 371,
                   56, 370, 57, 369, 58, 368, 59, 367, 60, 366, 61, 119, 4, 242, 62, 114, 12, 238, 64, 108, 19, 235, 66,
                   102, 26, 232, 67, 97, 34, 228, 67, 93, 41, 225, 67, 89, 49, 221, 67, 85, 56, 218, 67, 84, 61, 214,
                   67, 83, 61, 214, 68, 82, 62, 214, 68, 81, 62, 215, 68, 80, 62, 216, 68, 78, 63, 217, 68, 77, 63, 218,
                   68, 76, 64, 218, 68, 75, 64, 219, 68, 74, 64, 220, 68, 73, 64, 221, 68, 72, 64, 222, 68, 70, 63, 225,
                   68, 68, 63, 227, 68, 65, 64, 229, 68, 55, 7, 1, 63, 232, 68, 46, 78, 234, 68, 46, 76, 236, 68, 46,
                   47, 7, 19, 239, 67, 47, 47, 20, 4, 241, 65, 49, 47, 265, 64, 49, 47, 266, 63, 50, 47, 266, 62, 51,
                   47, 266, 60, 53, 47, 266, 60, 53, 46, 267, 59, 53, 47, 266, 59, 54, 47, 266, 58, 55, 46, 267, 57, 56,
                   46, 267, 57, 56, 46, 267, 56, 57, 46, 267, 56, 57, 45, 268, 55, 58, 45, 268, 54, 60, 44, 268, 54, 60,
                   44, 268, 54, 60, 46, 266, 53, 62, 47, 264, 53, 62, 21, 6, 21, 263, 53, 62, 7, 21, 32, 251, 52, 92,
                   42, 240, 52, 92, 44, 238, 52, 93, 44, 237, 52, 93, 46, 235, 52, 94, 46, 234, 52, 94, 48, 232, 52, 95,
                   48, 230, 53, 95, 50, 228, 53, 96, 50, 227, 53, 96, 52, 225, 53, 97, 51, 225, 53, 97, 51, 225, 53, 98,
                   50, 225, 53, 98, 51, 224, 53, 99, 50, 224, 53, 99, 50, 224, 54, 105, 43, 224, 54, 131, 18, 223, 54,
                   372, 54, 372, 55, 372, 54, 372, 55, 372, 54, 373, 54, 372, 54, 372, 55, 372, 55, 371, 55, 371, 56,
                   371, 56, 370, 57, 369, 56, 370, 56, 370, 56, 370, 55, 371, 55, 371, 55, 371, 54, 372, 54, 372, 54,
                   372, 54, 372, 54, 372, 54, 372, 54, 372, 54, 372, 54, 372, 54, 221, 2, 149, 54, 217, 6, 149, 54, 214,
                   10, 148, 54, 210, 15, 147, 54, 209, 17, 146, 54, 208, 19, 145, 54, 206, 22, 144, 55, 204, 24, 143,
                   55, 203, 25, 143, 55, 201, 27, 143, 55, 200, 29, 142, 56, 198, 30, 142, 56, 196, 32, 142, 57, 194,
                   33, 142, 57, 192, 35, 142, 58, 190, 36, 142, 58, 188, 38, 142, 59, 185, 41, 141, 60, 183, 42, 141,
                   60, 172, 1, 10, 42, 141, 61, 168, 10, 3, 43, 141, 62, 165, 59, 140, 63, 162, 61, 140, 64, 158, 64,
                   140, 65, 155, 67, 25, 5, 109, 66, 152, 69, 23, 11, 105, 67, 148, 72, 22, 14, 103, 68, 146, 74, 19,
                   17, 101, 70, 145, 76, 15, 19, 101, 72, 142, 79, 12, 21, 100, 74, 140, 81, 8, 24, 99, 75, 139, 84, 5,
                   24, 99, 78, 135, 87, 3, 25, 98, 81, 132, 115, 98, 87, 126, 116, 97, 91, 121, 118, 96, 91, 121, 118,
                   96, 92, 120, 119, 95, 93, 118, 121, 94, 93, 118, 123, 92, 94, 117, 124, 91, 95, 116, 126, 90, 95,
                   116, 126, 89, 96, 116, 127, 87, 97, 117, 126, 86, 98, 117, 127, 84, 99, 40, 1, 77, 128, 81, 101, 36,
                   4, 79, 129, 77, 103, 32, 8, 79, 131, 73, 104, 30, 10, 82, 131, 69, 107, 24, 15, 84, 131, 65, 110, 18,
                   19, 87, 130, 62, 116, 6, 26, 89, 131, 58, 149, 91, 132, 54, 151, 92, 133, 50, 152, 94, 134, 46, 153,
                   95, 135, 43, 155, 93, 135, 43, 156, 93, 134, 43, 158, 91, 134, 43, 160, 90, 131, 45, 161, 89, 129,
                   47, 163, 88, 126, 49, 165, 88, 122, 51, 167, 88, 118, 53, 169, 89, 113, 55, 172, 89, 108, 57, 174,
                   89, 104, 59, 177, 89, 99, 61, 180, 88, 90, 67, 185, 86, 71, 6, 12, 66, 189, 84, 60, 12, 15, 66, 194,
                   81, 48, 19, 18, 66, 197, 80, 29, 32, 22, 65, 200, 80, 21, 34, 27, 64, 202, 86, 8, 33, 33, 63, 205,
                   114, 45, 62, 207, 102, 55, 61, 211, 96, 59, 60, 213, 92, 61, 59, 217, 86, 65, 57, 221, 80, 69, 56,
                   225, 72, 73, 55, 20], 'size': [426, 640]}, 'area': 220834, 'iscrowd': 1, 'image_id': 250282,
     'bbox': [0, 34, 639, 388], 'category_id': 1, 'id': 900100250282}
]

# 父类别 类别id 子类别
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'}]
复制代码

 

posted on   夏天只喝脉动  阅读(32)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示

导航

< 2025年3月 >
23 24 25 26 27 28 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 1 2 3 4 5
点击右上角即可分享
微信分享提示