소스 검색

Update bbox_detection example with shape_type='rectangle'

Kentaro Wada 6 년 전
부모
커밋
658d50a188

+ 8 - 22
examples/bbox_detection/data_annotated/2011_000003.json

@@ -7,45 +7,31 @@
       "fill_color": null,
       "points": [
         [
-          188,
-          108
-        ],
-        [
-          313,
+          191,
           107
         ],
         [
           313,
           329
-        ],
-        [
-          191,
-          329
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     },
     {
       "label": "person",
       "line_color": null,
       "fill_color": null,
       "points": [
-        [
-          499,
-          85
-        ],
-        [
-          365,
-          85
-        ],
         [
           365,
-          335
+          83
         ],
         [
-          499,
-          335
+          500,
+          333
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     }
   ],
   "lineColor": [

+ 24 - 52
examples/bbox_detection/data_annotated/2011_000006.json

@@ -7,22 +7,15 @@
       "fill_color": null,
       "points": [
         [
-          400,
-          82
+          91,
+          107
         ],
         [
-          447,
-          82
-        ],
-        [
-          447,
-          117
-        ],
-        [
-          400,
-          117
+          240,
+          330
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     },
     {
       "label": "person",
@@ -30,22 +23,15 @@
       "fill_color": null,
       "points": [
         [
-          95,
-          103
-        ],
-        [
-          238,
-          103
-        ],
-        [
-          238,
-          330
+          178,
+          110
         ],
         [
-          95,
-          330
+          298,
+          282
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     },
     {
       "label": "person",
@@ -53,22 +39,15 @@
       "fill_color": null,
       "points": [
         [
-          301,
-          111
-        ],
-        [
-          174,
-          111
-        ],
-        [
-          174,
-          281
+          254,
+          115
         ],
         [
-          301,
-          281
+          369,
+          292
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     },
     {
       "label": "person",
@@ -76,22 +55,15 @@
       "fill_color": null,
       "points": [
         [
-          254,
-          290
-        ],
-        [
-          370,
-          290
+          395,
+          81
         ],
         [
-          370,
-          115
-        ],
-        [
-          254,
-          115
+          447,
+          117
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     }
   ],
   "lineColor": [

+ 14 - 35
examples/bbox_detection/data_annotated/2011_000025.json

@@ -7,22 +7,15 @@
       "fill_color": null,
       "points": [
         [
-          85,
-          24
+          84,
+          20
         ],
         [
           435,
-          26
-        ],
-        [
-          438,
           373
-        ],
-        [
-          88,
-          374
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     },
     {
       "label": "bus",
@@ -30,22 +23,15 @@
       "fill_color": null,
       "points": [
         [
-          0,
-          100
-        ],
-        [
-          107,
-          101
+          1,
+          99
         ],
         [
           107,
-          290
-        ],
-        [
-          0,
-          291
+          282
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     },
     {
       "label": "car",
@@ -53,22 +39,15 @@
       "fill_color": null,
       "points": [
         [
-          407,
-          168
+          409,
+          167
         ],
         [
           500,
-          168
-        ],
-        [
-          500,
-          268
-        ],
-        [
-          407,
-          268
+          266
         ]
-      ]
+      ],
+      "shape_type": "rectangle"
     }
   ],
   "lineColor": [