Skip to content
Python program for processing a temporal median filter effect across a set of frames from a video.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
README.md
temporal_median.py

README.md

temporal-median-video

Python program for processing a temporal median filter effect across a set of frames from a video.

Usage:

python temporal_median.py -i "<set_of_frames>" -o "<output_path>" -l <number of frames to process> -offset <length of filter in frames> -simul <frames to process simultaneously> -v <(0 or 1) encode frames into h.264 video>


**Surfing Example:**

Original:

https://www.youtube.com/watch?v=LUGksGa4WJA


TMF:

https://www.youtube.com/watch?v=6K8_iQOxo4w

**Saigon Traffic Example:**

Original: https://www.youtube.com/watch?v=8QCsQnr2w4w

TMF: https://www.youtube.com/watch?v=Yhy1uc9s8IU



Dependencies:

Numpy
PIL


Prior Works:

Similar to zo7's median-video (but that one is in C++ and requires OpenCV). https://github.com/zo7/median-video

You can’t perform that action at this time.