OBBDetection icon indicating copy to clipboard operation
OBBDetection copied to clipboard

关于数据集标注问题

Open Gavin-zsr opened this issue 4 years ago • 1 comments

是否需要在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'},
 ]

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

Gavin-zsr avatar Mar 10 '22 02:03 Gavin-zsr

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

jbwang1997 avatar Mar 14 '22 13:03 jbwang1997