GithubHelp home page GithubHelp logo

Auto gyro sync about gyroflow HOT 4 CLOSED

zap-wizard avatar zap-wizard commented on May 28, 2024
Auto gyro sync

from gyroflow.

Comments (4)

ElvinC avatar ElvinC commented on May 28, 2024

Hey,

I actually haven't seen that paper before. From a quick glance, it can be very useful for this project, since I've been racking my brain trying to find ideas for doing gyro data sync. Thanks for sharing the link!

The overall ideas are based on this paper by Karpenko et al, which also contains a method for gyro sync, but tbh I don't understand the MATLAB code enough to implement it. Ignoring the rolling shutter correction, the paper does image stabilization by having a virtual camera model synced to the raw camera motion. A smooth virtual camera is then computed with a low pass filter, and the difference between the two used to warp the image using a perspective transform. I've been implementing each step independent of the code used for the paper (mostly a bunch of stackoverflow). The paper assumes that the images are taken without distortion (pinhole camera model), so fisheye video has to be undistorted before the stabilization process.

As for what the different files do, here are the important ones.

  • Gyroflow.py: Main file with most of the UI code. The UI is made using pyside2. Running this script (with all the dependencies) should show a user interface.
  • calibrate_video.py: Contains all the backend code for finding the lens distortion, generating camera presets etc. using OpenCV.
  • gyro_integrator.py: Code for integrating gyro data to yield orientation data.
  • nonlinear_stretch.py: Mini-project for testing out OpenCV and pyside2.
  • perspective_test.py: Testing virtual camera rotation using a perspective transform.
  • estimateMotionFromVideo.py: Testing optical flow motion detection in OpenCV (Sorry about the out of place camelCase).

Do take a peek at the code. I've tried to explain most of the stuff with comments and links. Feel free to make a fork if you want to try something out and thanks again for sharing that paper.

Also, you might've noticed that I haven't updated anything the past few weeks. I just moved and started at uni and I'm waiting for my new computer to arrive before diving back in :)

from gyroflow.

zap-wizard avatar zap-wizard commented on May 28, 2024

Thanks for the explanation! I will spend some time looking at the code and the paper to understand the main concepts and math behind it first :)

from gyroflow.

leewensong avatar leewensong commented on May 28, 2024

https://vimeo.com/347404342
I found ReelsteadyGo is not fully automatic, they need sync points to match the gyro timeline. hope this helpful

from gyroflow.

ElvinC avatar ElvinC commented on May 28, 2024

Thanks. The current experimental sync code in Gyroflow uses a similar method where optical flow is computed at two different timestamps and used to compute the offsets. I'm hoping to further fine-tune the sync code for use with blackbox data and finish the basic UI soon (haven't had a lot of spare time until now).

from gyroflow.

Related Issues (20)

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.