antingshen / BeaverDam

Video annotation tool for deep learning training labels
BSD 2-Clause "Simplified" License
202 stars 99 forks source link

How to extract annotated images (frames) from the video in .jpg or .png format? #154

Open soheilysf opened 6 years ago

soheilysf commented 6 years ago

So I've been using BeaverDam to annotate my videos. I was wondering if I could extract the labeled frames in a .jpg or .png format so that I could do some data augmentations on the images on a separate application? I'd appreciate it, if possible, you could write a code snippet that does that.

Thank you.

antingshen commented 6 years ago

Hmm I don't have a code snippet for that, but there's annotator/management/commands/export_annotations.py that'll get you the annotations, and then there's probably a command in ffmpeg to extract the frames from your video as images