Giter Club home page Giter Club logo

rolling_shutter_correction's Introduction

Rolling Shutter Video Rectification 

cited from http://users.ece.utexas.edu/~bevans/projects/dsc/software/rollingShutter/
Chao Jia and Brian L. Evans
The University of Texas at Austin, Austin, TX 78712 USA

Overall Description: 

1. To rectify the rolling shutter videos, we need the video file and also the gyroscope readings while the video is recorded.
  - The gyroscope file is recorded through Samsung camera shooted by Christoph Mertz
  - To preprocess the gyroscople script, delete the 2nd to the 12th row of log file such that Matlab can read the log file easier:
     '' Zoom:1.0x
	   ......
	   {Sensor name= ...}''
  - Put the gyroscope log file into folder:¡¡ data\shutter_correction_samples
  - Run "gyro_pre.m" and you can get two file - gyro.txt and td.txt 
  - Put the gyro.txt into its parent folder:  data\
      
2. In addition, we need to extract the framestamps of the video. The framestamps are extracted by a C++ implementation (source file "extract_framestamp.cpp") based on OpenCV. 
  - Attention! Only visual studio 2010 version can correctly extract the framestamp
  - Go to the folder: data\rolling
  - Run the "rolling.sln"
  - Specifically, revise the input and output folder address in cpp script
  - Revise the "frame_num" according to the number of images in folder: "data\images"
  
3. The parameters of the camera on different smartphones are different, so we need to estimate the parameters first (calibration step). 
  
4. Please run the "rolling_shutter_demo.m" script 
--------------------------------------------------------

Final accessment:

Implementation:
- Please run the "rolling_shutter_demo.m" 
- Check the output video named "rectify.avi" for retification
- Also, you can compare the retification frame by frame in "images folder, and steadyimages folder"

rolling_shutter_correction's People

Contributors

changliu816 avatar

Watchers

 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.