From 376b20585f19afa5cf68638cc2ba3b6e27df0f15 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Thu, 27 Jun 2019 16:47:20 +0100 Subject: [PATCH] Add how to convert video section in README.md Close https://github.com/wkentaro/labelme/issues/427 --- examples/video_annotation/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/video_annotation/README.md b/examples/video_annotation/README.md index 8edd1cd51..de1947128 100644 --- a/examples/video_annotation/README.md +++ b/examples/video_annotation/README.md @@ -15,3 +15,17 @@ labelme data_annotated --labels labels.txt --nodata --keep-prev *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/ +```