소스 검색

Update examples/bbox_detection

Kentaro Wada 5 년 전
부모
커밋
14b599bc45

+ 20 - 17
examples/bbox_detection/data_annotated/2011_000003.json

@@ -1,39 +1,44 @@
 {
+  "version": "4.0.0",
   "flags": {},
   "shapes": [
     {
       "label": "person",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          191,
-          107
+          191.0,
+          107.36900369003689
         ],
         [
-          313,
-          329
+          313.0,
+          329.36900369003695
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     },
     {
       "label": "person",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          365,
-          83
+          365.0,
+          83.0
         ],
         [
-          500,
-          333
+          500.0,
+          333.0
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     }
   ],
+  "imagePath": "2011_000003.jpg",
+  "imageData": null,
+  "imageHeight": 338,
+  "imageWidth": 500,
   "lineColor": [
     0,
     255,
@@ -45,7 +50,5 @@
     0,
     0,
     128
-  ],
-  "imagePath": "2011_000003.jpg",
-  "imageData": null
+  ]
 }

+ 34 - 31
examples/bbox_detection/data_annotated/2011_000006.json

@@ -1,71 +1,76 @@
 {
+  "version": "4.0.0",
   "flags": {},
   "shapes": [
     {
       "label": "person",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          91,
-          107
+          91.0,
+          107.0
         ],
         [
-          240,
-          330
+          240.0,
+          330.0
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     },
     {
       "label": "person",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          178,
-          110
+          178.0,
+          110.0
         ],
         [
-          298,
-          282
+          298.0,
+          282.0
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     },
     {
       "label": "person",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          254,
-          115
+          254.38461538461536,
+          115.38461538461539
         ],
         [
-          369,
-          292
+          369.38461538461536,
+          292.38461538461536
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     },
     {
       "label": "person",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          395,
-          81
+          395.0,
+          81.0
         ],
         [
-          447,
-          117
+          447.0,
+          117.0
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     }
   ],
+  "imagePath": "2011_000006.jpg",
+  "imageData": null,
+  "imageHeight": 375,
+  "imageWidth": 500,
   "lineColor": [
     0,
     255,
@@ -77,7 +82,5 @@
     0,
     0,
     128
-  ],
-  "imagePath": "2011_000006.jpg",
-  "imageData": null
+  ]
 }

+ 27 - 24
examples/bbox_detection/data_annotated/2011_000025.json

@@ -1,55 +1,60 @@
 {
+  "version": "4.0.0",
   "flags": {},
   "shapes": [
     {
       "label": "bus",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          84,
-          20
+          84.0,
+          20.384615384615387
         ],
         [
-          435,
-          373
+          435.0,
+          373.38461538461536
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     },
     {
       "label": "bus",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          1,
-          99
+          1.0,
+          99.0
         ],
         [
-          107,
-          282
+          107.0,
+          282.0
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     },
     {
       "label": "car",
-      "line_color": null,
-      "fill_color": null,
       "points": [
         [
-          409,
-          167
+          409.0,
+          167.0
         ],
         [
-          500,
-          266
+          500.0,
+          266.0
         ]
       ],
-      "shape_type": "rectangle"
+      "group_id": null,
+      "shape_type": "rectangle",
+      "flags": {}
     }
   ],
+  "imagePath": "2011_000025.jpg",
+  "imageData": null,
+  "imageHeight": 375,
+  "imageWidth": 500,
   "lineColor": [
     0,
     255,
@@ -61,7 +66,5 @@
     0,
     0,
     128
-  ],
-  "imagePath": "2011_000025.jpg",
-  "imageData": null
+  ]
 }

+ 8 - 8
examples/bbox_detection/data_dataset_voc/Annotations/2011_000003.xml

@@ -16,10 +16,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>191</xmin>
-      <ymin>107</ymin>
-      <xmax>313</xmax>
-      <ymax>329</ymax>
+      <xmin>191.0</xmin>
+      <ymin>107.36900369003689</ymin>
+      <xmax>313.0</xmax>
+      <ymax>329.36900369003695</ymax>
     </bndbox>
   </object>
   <object>
@@ -28,10 +28,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>365</xmin>
-      <ymin>83</ymin>
-      <xmax>500</xmax>
-      <ymax>333</ymax>
+      <xmin>365.0</xmin>
+      <ymin>83.0</ymin>
+      <xmax>500.0</xmax>
+      <ymax>333.0</ymax>
     </bndbox>
   </object>
 </annotation>

+ 16 - 16
examples/bbox_detection/data_dataset_voc/Annotations/2011_000006.xml

@@ -16,10 +16,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>91</xmin>
-      <ymin>107</ymin>
-      <xmax>240</xmax>
-      <ymax>330</ymax>
+      <xmin>91.0</xmin>
+      <ymin>107.0</ymin>
+      <xmax>240.0</xmax>
+      <ymax>330.0</ymax>
     </bndbox>
   </object>
   <object>
@@ -28,10 +28,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>178</xmin>
-      <ymin>110</ymin>
-      <xmax>298</xmax>
-      <ymax>282</ymax>
+      <xmin>178.0</xmin>
+      <ymin>110.0</ymin>
+      <xmax>298.0</xmax>
+      <ymax>282.0</ymax>
     </bndbox>
   </object>
   <object>
@@ -40,10 +40,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>254</xmin>
-      <ymin>115</ymin>
-      <xmax>369</xmax>
-      <ymax>292</ymax>
+      <xmin>254.38461538461536</xmin>
+      <ymin>115.38461538461539</ymin>
+      <xmax>369.38461538461536</xmax>
+      <ymax>292.38461538461536</ymax>
     </bndbox>
   </object>
   <object>
@@ -52,10 +52,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>395</xmin>
-      <ymin>81</ymin>
-      <xmax>447</xmax>
-      <ymax>117</ymax>
+      <xmin>395.0</xmin>
+      <ymin>81.0</ymin>
+      <xmax>447.0</xmax>
+      <ymax>117.0</ymax>
     </bndbox>
   </object>
 </annotation>

+ 12 - 12
examples/bbox_detection/data_dataset_voc/Annotations/2011_000025.xml

@@ -16,10 +16,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>84</xmin>
-      <ymin>20</ymin>
-      <xmax>435</xmax>
-      <ymax>373</ymax>
+      <xmin>84.0</xmin>
+      <ymin>20.384615384615387</ymin>
+      <xmax>435.0</xmax>
+      <ymax>373.38461538461536</ymax>
     </bndbox>
   </object>
   <object>
@@ -28,10 +28,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>1</xmin>
-      <ymin>99</ymin>
-      <xmax>107</xmax>
-      <ymax>282</ymax>
+      <xmin>1.0</xmin>
+      <ymin>99.0</ymin>
+      <xmax>107.0</xmax>
+      <ymax>282.0</ymax>
     </bndbox>
   </object>
   <object>
@@ -40,10 +40,10 @@
     <truncated/>
     <difficult/>
     <bndbox>
-      <xmin>409</xmin>
-      <ymin>167</ymin>
-      <xmax>500</xmax>
-      <ymax>266</ymax>
+      <xmin>409.0</xmin>
+      <ymin>167.0</ymin>
+      <xmax>500.0</xmax>
+      <ymax>266.0</ymax>
     </bndbox>
   </object>
 </annotation>