Kaynağa Gözat

Add classification annotation example

Kentaro Wada 7 yıl önce
ebeveyn
işleme
eb427bd42b

BIN
examples/classification/.readme/annotation_cat.jpg


BIN
examples/classification/.readme/annotation_dog.jpg


+ 11 - 0
examples/classification/README.md

@@ -0,0 +1,11 @@
+# Classification Example
+
+
+## Usage
+
+```bash
+labelme data_annotated --flags flags.txt --nodata
+```
+
+<img src=".readme/annotation_cat.jpg" width="100%" />
+<img src=".readme/annotation_dog.jpg" width="100%" />

BIN
examples/classification/data_annotated/0001.jpg


+ 22 - 0
examples/classification/data_annotated/0001.json

@@ -0,0 +1,22 @@
+{
+  "flags": {
+    "__ignore__": false,
+    "cat": true,
+    "dog": false
+  },
+  "shapes": [],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "0001.jpg",
+  "imageData": null
+}

BIN
examples/classification/data_annotated/0002.jpg


+ 22 - 0
examples/classification/data_annotated/0002.json

@@ -0,0 +1,22 @@
+{
+  "flags": {
+    "__ignore__": false,
+    "cat": false,
+    "dog": true
+  },
+  "shapes": [],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "0002.jpg",
+  "imageData": null
+}

+ 3 - 0
examples/classification/flags.txt

@@ -0,0 +1,3 @@
+__ignore__
+cat
+dog