瀏覽代碼

Add how to convert video section in README.md

Close https://github.com/wkentaro/labelme/issues/427
Kentaro Wada 6 年之前
父節點
當前提交
376b20585f
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      examples/video_annotation/README.md

+ 14 - 0
examples/video_annotation/README.md

@@ -15,3 +15,17 @@ labelme data_annotated --labels labels.txt --nodata --keep-prev
 <img src=".readme/data_annotated.gif" width="98%" />
 <img src=".readme/data_annotated.gif" width="98%" />
 
 
 *Fig 2. Visualization of video semantic segmentation.*
 *Fig 2. Visualization of video semantic segmentation.*
+
+
+## How to Convert a Video File to Images for Annotation?
+
+```bash
+# Download and install software for converting a video file (MP4) to images
+wget https://raw.githubusercontent.com/wkentaro/dotfiles/f3c5ad1f47834818d4f123c36ed59a5943709518/local/bin/video_to_images
+pip install imageio imageio-ffmpeg tqdm
+
+python video_to_images your_video.mp4  # this creates your_video/ directory
+ls your_video/
+
+labelme your_video/
+```