MrAsimZahid / Video-Clips-Grabber-Annotation-Tool

This annotation tool is build to clean and create video dataset.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video Clips Grabber

Python/OpenCV based Video Player with keyboard and mouse controls. Useful for Research purposes, when one wishes to monitor the video frame by frame.

Directory Structure:

BallData
|
|___MatchName
|   |
|   |___Type(In Air)
|   |   |
|   |   |___InstanceNumber(1)
|   |   |   |___1.mp4
|   |   |___2
|   |   |  |___2.mp4
|   | |   |
|   |___Type(In Air)
|   |   |
|   |   |___InstanceNumber(1)
|   |   |   |___1.mp4
|   |   |___2
|   |   |  |___2.mp4
|   .   .  
.   .   .



Contributions are welcome!

To run the program:

$ python clips_grabber.py video_file.mp4

W/w: "Play"
S/s: "Stay" (Pause) [I like keeping things rhyming!]
D/d: "Next" (Next frame)
A/a: "Prev" (Previous frame)
F/f: "Fast" (Increase playing speed)
Q/q: "Slow" (Decrease playing speed)
C/c: "Snap" (Screenshot feature)
J/j: "In Air" (label 1)
K/k: "rolling" (label 2)
T/t: "timestamp" (Get current timestamp)
N/n: "Clear Timestamp" (Clear timestamp)

VideoPlayer designed by @maximus009

About

This annotation tool is build to clean and create video dataset.


Languages

Language:Python 100.0%