Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

TrackMania Webcam Tracking Steering Wheel using Python, PyGame, Open CV, Java and PPJoy

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
834 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 21, 2011

Bah, who needs the Kinect!
Using Python, pygame, numpy, opencv, Java and PPJoy I wrote a couple of scripts to track two coloured objects, figure out their angle and emulate analog joystick movements so I could play TrackMania like I had a steering wheel.

Python, using opencv, pygame and numpy, tracks the objects and works out the vertical difference between them to figure out direction and magnitude. That gets passed to a Java app I wrote which interfaces with PPJoy to emulate the joystick movement.
Fairly overcomplex and hacky, but pretty neat I thought :)

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • OMFG!! THAT'S SO COOL!!! O_O

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more