/MatplotlibVideoBrowser

Using Matplotlib's GUI Neutral widgets to display the frames of videos.

Primary LanguagePython

MatplotlibVideoBrowser

Using Matplotlib's GUI Neutral widgets to browse through the frames of videos.

This is merely an example of how to easily use Matplotlib to create quickly a simple tool. Here I needed to be able to quickly browse through some videos I annotated, ie visualise both the image and their facial landmarks.

How does it work

ShapeImageCollection

This is a simple class that allows you to access each tuple composed of a frame and its corresponding landmark as a list.

VideoLoader

Similarly, just a convenience class to load a ShapeImageCollection for each video.

browse video

This is where the widgets are actually implemented. We just create a figure, add some axes for the data to be plotted and the widgets. We then bind each widget to an event handler (all of which are grouped in the EventHandler class) which updates the corresponding axes...

Can I see?

Here is how it looks on ubuntu: alt text

And it looks just the same on mac: alt text

Can I try?

Sure, all you need is python3, matplotlib, numpy and scipy (everyone has that, right?).

Just clone the repository

git clone https://github.com/JeanKossaifi/MatplotlibVideoBrowser.git 

and run

python3 browser.py