Browse Source

Add bounding box detection example

Kentaro Wada 7 năm trước cách đây
mục cha
commit
ee23064759

BIN
examples/bbox_detection/.readme/annotation.jpg


+ 10 - 0
examples/bbox_detection/README.md

@@ -0,0 +1,10 @@
+# Bounding Box Detection Example
+
+
+## Usage
+
+```bash
+labelme data_annotated --labels labels.txt --nodata --autosave
+```
+
+![](.readme/annotation.jpg)

BIN
examples/bbox_detection/data_annotated/2011_000003.jpg


+ 65 - 0
examples/bbox_detection/data_annotated/2011_000003.json

@@ -0,0 +1,65 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "person",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          188,
+          108
+        ],
+        [
+          313,
+          107
+        ],
+        [
+          313,
+          329
+        ],
+        [
+          191,
+          329
+        ]
+      ]
+    },
+    {
+      "label": "person",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          499,
+          85
+        ],
+        [
+          365,
+          85
+        ],
+        [
+          365,
+          335
+        ],
+        [
+          499,
+          335
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "2011_000003.jpg",
+  "imageData": null
+}

BIN
examples/bbox_detection/data_annotated/2011_000006.jpg


+ 111 - 0
examples/bbox_detection/data_annotated/2011_000006.json

@@ -0,0 +1,111 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "person",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          400,
+          82
+        ],
+        [
+          447,
+          82
+        ],
+        [
+          447,
+          117
+        ],
+        [
+          400,
+          117
+        ]
+      ]
+    },
+    {
+      "label": "person",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          95,
+          103
+        ],
+        [
+          238,
+          103
+        ],
+        [
+          238,
+          330
+        ],
+        [
+          95,
+          330
+        ]
+      ]
+    },
+    {
+      "label": "person",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          301,
+          111
+        ],
+        [
+          174,
+          111
+        ],
+        [
+          174,
+          281
+        ],
+        [
+          301,
+          281
+        ]
+      ]
+    },
+    {
+      "label": "person",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          254,
+          290
+        ],
+        [
+          370,
+          290
+        ],
+        [
+          370,
+          115
+        ],
+        [
+          254,
+          115
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "2011_000006.jpg",
+  "imageData": null
+}

BIN
examples/bbox_detection/data_annotated/2011_000025.jpg


+ 88 - 0
examples/bbox_detection/data_annotated/2011_000025.json

@@ -0,0 +1,88 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "bus",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          85,
+          24
+        ],
+        [
+          435,
+          26
+        ],
+        [
+          438,
+          373
+        ],
+        [
+          88,
+          374
+        ]
+      ]
+    },
+    {
+      "label": "bus",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          0,
+          100
+        ],
+        [
+          107,
+          101
+        ],
+        [
+          107,
+          290
+        ],
+        [
+          0,
+          291
+        ]
+      ]
+    },
+    {
+      "label": "car",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          407,
+          168
+        ],
+        [
+          500,
+          168
+        ],
+        [
+          500,
+          268
+        ],
+        [
+          407,
+          268
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "2011_000025.jpg",
+  "imageData": null
+}

+ 22 - 0
examples/bbox_detection/labels.txt

@@ -0,0 +1,22 @@
+__ignore__
+_background_
+aeroplane
+bicycle
+bird
+boat
+bottle
+bus
+car
+cat
+chair
+cow
+diningtable
+dog
+horse
+motorbike
+person
+potted plant
+sheep
+sofa
+train
+tv/monitor