Coder Social home page Coder Social logo

silasxue / euler_vid_mag Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aloyisus/euler_vid_mag

0.0 2.0 0.0 10.63 MB

A python implementation of one of MIT's Eulerian Video Magnification algorithms from the Siggraph 2012 paper

Python 100.00%

euler_vid_mag's Introduction

euler_vid_mag

A python implementation of one of MIT's Eulerian Video Magnification algorithms from the Siggraph 2012 paper. The technique described reveals otherwise hidden information in an ordinary video stream by magnifying small colour changes in an ordinary video stream. This can be used, for example, to reveal the blood flow in a person's face.

The paper can be found here http://people.csail.mit.edu/mrub/vidmag/ and is a great read.

This python code is basically a translation of the matlab code provided by the authors, specifically the "amplify_spatial_Gdown_temporal_ideal.m" module.

I am using opencv for video capture/output, and also numpy for it's fast fourier transform functions.

To use, import the module "amplify_spatial_Gdown_temporal_ideal", then call the function "amplify_spatial_Gdown_temporal_ideal" with the following parameters:

vidFile - video file to be processed outDir - output directory alpha - amplification factor level - number of levels in the stack fl - low frequency cutoff fh - hi frequency cutoff sample - frequency of sampling eg 30hz for ntsc footage chromAttenuation - can apply bias to uv components colourspace - work in 'rgb' or 'yuv'

e.g. amplify_spatial_Gdown_temporal_ideal('sample/face_source.mov','sample/',50,4,50/60.0,60/60.0,30,1,'yuv')

Below are the results obtained by processing the supplied "face.mov" file provided by the authors:

Unprocessed:

screenshot

Processed:

screenshot

euler_vid_mag's People

Contributors

aloyisus avatar

Watchers

James Cloos avatar Ming Xue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.