jbwang1997 / OBBDetection

OBBDetection is an oriented object detection library, which is based on MMdetection.
Apache License 2.0
520 stars 111 forks source link

关于数据集标注问题 #132

Open Gavin-zsr opened 2 years ago

Gavin-zsr commented 2 years ago

是否需要在json标注文件中提供角度的信息,例如

'images': [
    {
        'file_name': 'COCO_val2014_000000001268.jpg',
        'height': 427,
        'width': 640,
        'id': 1268
    },
    ...
],

'annotations': [
    {
        'segmentation': [[192.81,
            247.09,
            ...
            219.03,
            249.06]],  # if you have mask labels
        'area': 1035.749,
        'angle': 80.43  # 是否需要添加
        'iscrowd': 0,
        'image_id': 1268,
        'bbox': [192.81, 224.8, 74.73, 33.43],
        'category_id': 16,
        'id': 42986
    },
    ...
],

'categories': [
    {'id': 0, 'name': 'car'},
 ]

或者代码中有可以根据标注自动生成角度的功能

jbwang1997 commented 2 years ago

使用json格式的数据可以将有向框的4个点作为mask,使用isaid数据集加载。