Git Product home page Git Product logo

motioncapturetest's Introduction

MotionCaptureTest

Motion capture test with OpenGL and my Android phone

I haven't seen anyone doing anything too interesting with the gyroscopes and accelerometers in their smartphones, so I decided to make a proof-of-concept using my Android smartphone's Accelerometer and Gyroscope (basically as a motion controller), and an OpenGL demo running on my laptop.

Demo Gif

There is a lag in my webcam video input, so the cube is rotating a few milli seconds before the hand movements in the video. The movement of the cube and my smartphone happen seemlessly, there is no time lag in reality.

The results were great, I was able to rotate the cube using my smartphone. There was some input lag, but that was solved by increasing the sampling rate on my smartphone, and switching from my normal WiFi network to using my phone as a WiFi hotspot.

App Working

I also wrote a python script (uses pandas and matplotlib) to record and plot the gyroscope and accelerometer data, for any future use, analysis etc.

Graph by the python script

I may make this into a game or something. Poor man's VR motion sensors

motioncapturetest's People

Contributors

shrinathn avatar

Stargazers

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