Jump to content
  • Advertisement
Sign in to follow this  
g0nzo

Using camera to determine tilt

This topic is 4239 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Recently I've read that someone wrote a mobile game that can be controlled without using any keys, but (as you probably guessed already) using only built-in camera to determine tilt of the phone. Do you have any idea how it could be done (please remember that it should work on mobile phone, maybe pocket pc)? Is it even possible?

Share this post


Link to post
Share on other sites
Advertisement
He may be using optical image flow. It's a algorithm that tries to determine how much each pixel (or block of pixels) has moved given only a starting image and a finished image (i.e. images taken 1 second apart). Take a look at OpenCV, its a GPL computer vision library.

Share this post


Link to post
Share on other sites
Thanks!

Lucas-Kanade tracker implemented in OpenCV is exactly what I need. I'll try to create a basic app using this library (or its C# port - SharperCV) and later implement this algorithm by myself, because the libraries are just too big (~2mb).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!