Giter Site home page Giter Site logo

magnification's Introduction

Magnification

Magnification is a C++ implemention of the paper Eulerian Video Magnification for Revealing Subtle Changes in the World.

This project uses much of the C++ implementation from kgram007/Eulerian-Motion-Magnification, but removes some redundant steps and adds concurrency where possible to make processing a streaming video more performant.

Requirements

  • CMake
  • OpenCV

Building

Linux

$ cmake .
$ make

Windows

# Developer Command Prompt
$ cmake -DOpenCV_DIR=C:/OpenCV/build -G "Visual Studio 15 2017 Win64" .
$ devenv /build Release magnification.sln

Running

# baby
$ ./magnification levels=6 alpha=10 lambda_c=16 cutoff_frequency_high=0.4 cutoff_frequency_low=0.05 http://people.csail.mit.edu/mrub/evm/video/baby.mp4

# baby2
$ ./magnification levels=6 alpha=150 lambda_c=600 cutoff_frequency_high=0.4 cutoff_frequency_low=0.04 http://people.csail.mit.edu/mrub/evm/video/baby2.mp4

# shadow
$ ./magnification alpha=5 lambda_c=48 cutoff_frequency_high=0.5 cutoff_frequency_low=0.16 chrom_attenuation=0 http://people.csail.mit.edu/mrub/evm/video/shadow.mp4

# camera
$ ./magnification levels=6 alpha=150 lambda_c=20 cutoff_frequency_high=0.5 cutoff_frequency_low=0.16 chrom_attenuation=0 http://people.csail.mit.edu/mrub/evm/video/camera.mp4

# wrist
$ ./magnification levels=6 alpha=10 lambda_c=16 cutoff_frequency_high=0.4 cutoff_frequency_low=0.05 http://people.csail.mit.edu/mrub/evm/video/wrist.mp4

OpenCV supports a range of video inputs, including rtsp, making this ideal for baby cameras etc. that support it:

$ ./magnification levels=6 alpha=10 lambda_c=16 cutoff_frequency_high=0.4 cutoff_frequency_low=0.05 rtsp://192.168.1.1/camera

magnification's People

Contributors

saracen avatar

Watchers

 avatar  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.