Forgot your password?
typodupeerror
Input Devices Programming Games

Python + Motion detection = Fweemote 30

Posted by timothy
from the help-tom-cruise-find-future-crime dept.
jedie writes "After reading about different Wiimote hacks on Slashdot I decided to make a video with some demos of my motion-detection library. You can watch the video here. There's a link to the sourcecode (GPL) as well, but the demo is win32 only. It's basically a webcam and some software in python to track LEDs (preferrably IRs). In the demo video, you see the software (albeit badly because of the webcam's IR filter being removed) tracking two differently colored LEDs, so multiplayer is possible. The software can track multiple points easily, and when combined with IR-LEDs, it's easy to simulate one Wiimote (i.e. calculating the distance and angle between two IR-LEDs to determine where the remote is relative to the webcam). I want the code to get some publicity, because I don't have time to work on it (dissertation, blabla) but I don't want the code (however messy it is) to go to waste."
This discussion has been archived. No new comments can be posted.

Python + Motion detection = Fweemote

Comments Filter:
  • This is not surprising, since I was unable to find any really good Linux python webcam libraries (and by really good, I mean, any that I could get to work).
    • by delire (809063) on Tuesday December 25, 2007 @05:51PM (#21816886)
      What's wrong with the Python interface to Intel's immensely popular OpenCV [opencv.org]. Firewire devices, USB, multiple cameras.. all are a breeze on Linux or those-other-two-popular-OS's.

      Using a Debian-based system as example:

      apt-get install python-opencv

      In a Python interpreter do:

      from opencv import cv

      then:

      help(cv)

      .. and prosper.
      • Re: (Score:3, Funny)

        by doxology (636469)
        Apparently, it's not very good at letting me know it exists =P. Thanks, I'll give it a whirl.
  • Congrats (Score:3, Insightful)

    by EmperorKagato (689705) <sakamura@gmail.com> on Wednesday December 26, 2007 @10:25AM (#21820982) Homepage Journal
    However, the C# version was already done by Johnny Chung Lee [cmu.edu]

    "Betta step up yo game"
    • by jedie (546466)
      yes, it's pretty much the same except there is no wiimote in this demo
      I'll put up a video of multiple point tracking as well I suppose

We gave you an atomic bomb, what do you want, mermaids? -- I. I. Rabi to the Atomic Energy Commission

Working...