Skip to content

Commit

Permalink
Add how to convert video section in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 27, 2019
1 parent eb0190f commit 376b205
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/video_annotation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,17 @@ labelme data_annotated --labels labels.txt --nodata --keep-prev
<img src=".readme/data_annotated.gif" width="98%" />

*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/
```

0 comments on commit 376b205

Please sign in to comment.