Kentaro Wada 7 лет назад
Родитель
Сommit
bc8a7da2e3
31 измененных файлов с 820 добавлено и 0 удалено
  1. BIN
      examples/video_annotation/.readme/00000100.jpg
  2. BIN
      examples/video_annotation/.readme/00000101.jpg
  3. 12 0
      examples/video_annotation/README.md
  4. BIN
      examples/video_annotation/data_annotated/00000100.jpg
  5. 160 0
      examples/video_annotation/data_annotated/00000100.json
  6. BIN
      examples/video_annotation/data_annotated/00000101.jpg
  7. 160 0
      examples/video_annotation/data_annotated/00000101.json
  8. BIN
      examples/video_annotation/data_annotated/00000102.jpg
  9. 160 0
      examples/video_annotation/data_annotated/00000102.json
  10. BIN
      examples/video_annotation/data_annotated/00000103.jpg
  11. 160 0
      examples/video_annotation/data_annotated/00000103.json
  12. BIN
      examples/video_annotation/data_annotated/00000104.jpg
  13. 160 0
      examples/video_annotation/data_annotated/00000104.json
  14. BIN
      examples/video_annotation/data_dataset_voc/JPEGImages/00000100.jpg
  15. BIN
      examples/video_annotation/data_dataset_voc/JPEGImages/00000101.jpg
  16. BIN
      examples/video_annotation/data_dataset_voc/JPEGImages/00000102.jpg
  17. BIN
      examples/video_annotation/data_dataset_voc/JPEGImages/00000103.jpg
  18. BIN
      examples/video_annotation/data_dataset_voc/JPEGImages/00000104.jpg
  19. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClass/00000100.png
  20. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClass/00000101.png
  21. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClass/00000102.png
  22. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClass/00000103.png
  23. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClass/00000104.png
  24. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000100.jpg
  25. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000101.jpg
  26. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000102.jpg
  27. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000103.jpg
  28. BIN
      examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000104.jpg
  29. 3 0
      examples/video_annotation/data_dataset_voc/class_names.txt
  30. 1 0
      examples/video_annotation/labelme2voc.py
  31. 4 0
      examples/video_annotation/labels.txt

BIN
examples/video_annotation/.readme/00000100.jpg


BIN
examples/video_annotation/.readme/00000101.jpg


+ 12 - 0
examples/video_annotation/README.md

@@ -0,0 +1,12 @@
+# Video Annotation Example
+
+
+## Annotation
+
+```bash
+labelme data_annotated --labels labels.txt --nodata --keep-prev
+```
+
+<img src=".readme/00000100.jpg" width="49%" /> <img src=".readme/00000101.jpg" width="49%" />
+
+*Fig 1. Video annotation example. A frame (left), The next frame (right).*

BIN
examples/video_annotation/data_annotated/00000100.jpg


+ 160 - 0
examples/video_annotation/data_annotated/00000100.json

@@ -0,0 +1,160 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          634,
+          204
+        ],
+        [
+          604,
+          275
+        ],
+        [
+          603,
+          340
+        ],
+        [
+          622,
+          363
+        ],
+        [
+          639,
+          363
+        ],
+        [
+          649,
+          354
+        ],
+        [
+          682,
+          383
+        ],
+        [
+          733,
+          390
+        ],
+        [
+          748,
+          364
+        ],
+        [
+          827,
+          359
+        ],
+        [
+          829,
+          250
+        ],
+        [
+          800,
+          194
+        ],
+        [
+          775,
+          185
+        ],
+        [
+          740,
+          199
+        ]
+      ]
+    },
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          860,
+          190
+        ],
+        [
+          997,
+          186
+        ],
+        [
+          998,
+          305
+        ],
+        [
+          924,
+          320
+        ],
+        [
+          905,
+          352
+        ],
+        [
+          877,
+          353
+        ],
+        [
+          869,
+          245
+        ],
+        [
+          879,
+          222
+        ]
+      ]
+    },
+    {
+      "label": "car",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          924,
+          321
+        ],
+        [
+          905,
+          352
+        ],
+        [
+          909,
+          388
+        ],
+        [
+          936,
+          404
+        ],
+        [
+          959,
+          411
+        ],
+        [
+          966,
+          431
+        ],
+        [
+          1000.0,
+          432.0
+        ],
+        [
+          1000.0,
+          306.0
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "00000100.jpg",
+  "imageData": null
+}

BIN
examples/video_annotation/data_annotated/00000101.jpg


+ 160 - 0
examples/video_annotation/data_annotated/00000101.json

@@ -0,0 +1,160 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          614.0,
+          204.0
+        ],
+        [
+          584.0,
+          275.0
+        ],
+        [
+          583.0,
+          340.0
+        ],
+        [
+          602.0,
+          363.0
+        ],
+        [
+          619.0,
+          363.0
+        ],
+        [
+          629.0,
+          354.0
+        ],
+        [
+          662.0,
+          383.0
+        ],
+        [
+          713.0,
+          390.0
+        ],
+        [
+          728.0,
+          364.0
+        ],
+        [
+          827.0,
+          358.0
+        ],
+        [
+          825.0,
+          249.0
+        ],
+        [
+          801.0,
+          200.0
+        ],
+        [
+          757.0,
+          194.0
+        ],
+        [
+          720.0,
+          199.0
+        ]
+      ]
+    },
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          860.0,
+          190.0
+        ],
+        [
+          997.0,
+          186.0
+        ],
+        [
+          998.0,
+          305.0
+        ],
+        [
+          924.0,
+          320.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          877.0,
+          353.0
+        ],
+        [
+          869.0,
+          245.0
+        ],
+        [
+          879.0,
+          222.0
+        ]
+      ]
+    },
+    {
+      "label": "car",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          924.0,
+          321.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          909.0,
+          388.0
+        ],
+        [
+          936.0,
+          404.0
+        ],
+        [
+          959.0,
+          411.0
+        ],
+        [
+          966.0,
+          431.0
+        ],
+        [
+          1000.0,
+          432.0
+        ],
+        [
+          1000.0,
+          306.0
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "00000101.jpg",
+  "imageData": null
+}

BIN
examples/video_annotation/data_annotated/00000102.jpg


+ 160 - 0
examples/video_annotation/data_annotated/00000102.json

@@ -0,0 +1,160 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          593.0,
+          204.0
+        ],
+        [
+          563.0,
+          275.0
+        ],
+        [
+          562.0,
+          340.0
+        ],
+        [
+          581.0,
+          363.0
+        ],
+        [
+          598.0,
+          363.0
+        ],
+        [
+          608.0,
+          354.0
+        ],
+        [
+          641.0,
+          383.0
+        ],
+        [
+          692.0,
+          390.0
+        ],
+        [
+          707.0,
+          364.0
+        ],
+        [
+          827.0,
+          358.0
+        ],
+        [
+          823.0,
+          243.0
+        ],
+        [
+          802.0,
+          199.0
+        ],
+        [
+          736.0,
+          194.0
+        ],
+        [
+          699.0,
+          199.0
+        ]
+      ]
+    },
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          860.0,
+          190.0
+        ],
+        [
+          997.0,
+          186.0
+        ],
+        [
+          998.0,
+          305.0
+        ],
+        [
+          924.0,
+          320.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          877.0,
+          353.0
+        ],
+        [
+          869.0,
+          245.0
+        ],
+        [
+          879.0,
+          222.0
+        ]
+      ]
+    },
+    {
+      "label": "car",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          924.0,
+          321.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          909.0,
+          388.0
+        ],
+        [
+          936.0,
+          404.0
+        ],
+        [
+          959.0,
+          411.0
+        ],
+        [
+          966.0,
+          431.0
+        ],
+        [
+          1000.0,
+          432.0
+        ],
+        [
+          1000.0,
+          306.0
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "00000102.jpg",
+  "imageData": null
+}

BIN
examples/video_annotation/data_annotated/00000103.jpg


+ 160 - 0
examples/video_annotation/data_annotated/00000103.json

@@ -0,0 +1,160 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          573.0,
+          207.0
+        ],
+        [
+          543.0,
+          278.0
+        ],
+        [
+          542.0,
+          343.0
+        ],
+        [
+          561.0,
+          366.0
+        ],
+        [
+          578.0,
+          366.0
+        ],
+        [
+          588.0,
+          357.0
+        ],
+        [
+          621.0,
+          386.0
+        ],
+        [
+          672.0,
+          393.0
+        ],
+        [
+          687.0,
+          367.0
+        ],
+        [
+          829.0,
+          354.0
+        ],
+        [
+          821.0,
+          236.0
+        ],
+        [
+          801.0,
+          199.0
+        ],
+        [
+          716.0,
+          197.0
+        ],
+        [
+          679.0,
+          202.0
+        ]
+      ]
+    },
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          860.0,
+          190.0
+        ],
+        [
+          997.0,
+          186.0
+        ],
+        [
+          998.0,
+          305.0
+        ],
+        [
+          924.0,
+          320.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          877.0,
+          353.0
+        ],
+        [
+          869.0,
+          245.0
+        ],
+        [
+          879.0,
+          222.0
+        ]
+      ]
+    },
+    {
+      "label": "car",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          924.0,
+          321.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          909.0,
+          388.0
+        ],
+        [
+          936.0,
+          404.0
+        ],
+        [
+          959.0,
+          411.0
+        ],
+        [
+          966.0,
+          431.0
+        ],
+        [
+          1000.0,
+          432.0
+        ],
+        [
+          1000.0,
+          306.0
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "00000103.jpg",
+  "imageData": null
+}

BIN
examples/video_annotation/data_annotated/00000104.jpg


+ 160 - 0
examples/video_annotation/data_annotated/00000104.json

@@ -0,0 +1,160 @@
+{
+  "flags": {},
+  "shapes": [
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          556.0,
+          201.0
+        ],
+        [
+          528.0,
+          277.0
+        ],
+        [
+          524.0,
+          342.0
+        ],
+        [
+          528.0,
+          361.0
+        ],
+        [
+          563.0,
+          365.0
+        ],
+        [
+          573.0,
+          356.0
+        ],
+        [
+          606.0,
+          385.0
+        ],
+        [
+          657.0,
+          392.0
+        ],
+        [
+          672.0,
+          366.0
+        ],
+        [
+          825.0,
+          354.0
+        ],
+        [
+          826.0,
+          238.0
+        ],
+        [
+          801.0,
+          202.0
+        ],
+        [
+          701.0,
+          196.0
+        ],
+        [
+          664.0,
+          201.0
+        ]
+      ]
+    },
+    {
+      "label": "track",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          860.0,
+          190.0
+        ],
+        [
+          997.0,
+          186.0
+        ],
+        [
+          998.0,
+          305.0
+        ],
+        [
+          924.0,
+          320.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          874.0,
+          354.0
+        ],
+        [
+          869.0,
+          245.0
+        ],
+        [
+          879.0,
+          222.0
+        ]
+      ]
+    },
+    {
+      "label": "car",
+      "line_color": null,
+      "fill_color": null,
+      "points": [
+        [
+          924.0,
+          321.0
+        ],
+        [
+          905.0,
+          352.0
+        ],
+        [
+          909.0,
+          388.0
+        ],
+        [
+          936.0,
+          404.0
+        ],
+        [
+          959.0,
+          411.0
+        ],
+        [
+          966.0,
+          431.0
+        ],
+        [
+          1000.0,
+          432.0
+        ],
+        [
+          1000.0,
+          306.0
+        ]
+      ]
+    }
+  ],
+  "lineColor": [
+    0,
+    255,
+    0,
+    128
+  ],
+  "fillColor": [
+    255,
+    0,
+    0,
+    128
+  ],
+  "imagePath": "00000104.jpg",
+  "imageData": null
+}

BIN
examples/video_annotation/data_dataset_voc/JPEGImages/00000100.jpg


BIN
examples/video_annotation/data_dataset_voc/JPEGImages/00000101.jpg


BIN
examples/video_annotation/data_dataset_voc/JPEGImages/00000102.jpg


BIN
examples/video_annotation/data_dataset_voc/JPEGImages/00000103.jpg


BIN
examples/video_annotation/data_dataset_voc/JPEGImages/00000104.jpg


BIN
examples/video_annotation/data_dataset_voc/SegmentationClass/00000100.png


BIN
examples/video_annotation/data_dataset_voc/SegmentationClass/00000101.png


BIN
examples/video_annotation/data_dataset_voc/SegmentationClass/00000102.png


BIN
examples/video_annotation/data_dataset_voc/SegmentationClass/00000103.png


BIN
examples/video_annotation/data_dataset_voc/SegmentationClass/00000104.png


BIN
examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000100.jpg


BIN
examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000101.jpg


BIN
examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000102.jpg


BIN
examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000103.jpg


BIN
examples/video_annotation/data_dataset_voc/SegmentationClassVisualization/00000104.jpg


+ 3 - 0
examples/video_annotation/data_dataset_voc/class_names.txt

@@ -0,0 +1,3 @@
+_background_
+car
+track

+ 1 - 0
examples/video_annotation/labelme2voc.py

@@ -0,0 +1 @@
+../semantic_segmentation/labelme2voc.py

+ 4 - 0
examples/video_annotation/labels.txt

@@ -0,0 +1,4 @@
+__ignore__
+_background_
+car
+track