Author Topic: Use with a webcam  (Read 12596 times)

Offline Skoberlink

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
on: May 15, 2008, 01:46:36 AM
I would like to do this with a modified webcam to see only IR light (although I may try it without that modification).  I wondered if anyone had found a way to use a webcam rather than the wiimote.  I actually came across this project while looking for software for my own system.  I designed my system myself but it ended up being exactly like this except using a webcam.  I've found other software but none do mouse emulation like this one.  Or in the case of touchLib but I don't know any C++ to write the applications necessary. 

I took a look at someone's java code since I have experience with Java (props to whoever did that, unfortunately I don't remember the name).  I was thinking I could tweak it a little to work with a webcam.  Unfortunately the wiimote exclusive features seem to be entrenched in this code.  I'm good enough to read it but certainly not good enough to write fresh code for webcams as of yet. So I was wondering has anyone made this work with a webcam or had a good alternative for use with a webcam.  I've heard of the mando project but I don't think it'll work quite how I want.  I basically was looking for something exactly like this wiimote project just using a webcam.

Webcams, yes or no?



Offline UndCon

  • Support Admin
  • *
  • Posts: 566
  • Karma: +11/-3
    • View Profile
    • UndCon
Reply #1 on: May 15, 2008, 03:27:59 AM
Yes - if you can add support for webcams - modified to IR with removal of IRfilter and adding developed film (common tricks) i suppose it can be really good.



Offline Skoberlink

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #2 on: May 15, 2008, 12:49:12 PM
Yep that's exactly what I was gonna do with the webcam.  I like the idea of using the wiimote.  I'm sure it would work better since it's been designed to look for IR plus it's an incredibly clever use.  I don't like using the battery power for it and you can get webcams for less than a wiimote.  I know IR lighttracking has been done with a webcam using programs like touchlib but I don't have the programming experience to write mouse emulation from scratch right now.  Maybe Johnny Lee could add webcam support if he's got some time?  please?



Offline RiXtEr

  • *
  • Posts: 20
  • Karma: +1/-0
    • View Profile
Reply #3 on: May 16, 2008, 11:23:41 AM
Really, what kind of webcam costs less than a wiimote ($30 USD on the walmart shelves). I have seen some $20, but not that high of resolution (320x240 max) wiimotes are 1024x768, and yes resolution does make that big of a difference.



Offline kowa

  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
    • My project website
Reply #4 on: June 23, 2008, 10:29:05 AM
Hi, i have tested it with a Webcam. It costed about 10 Euro, but its a little bit difficult to control the mouse. I bought a wiimote too, but i couldnt compare the quality so far, because i need a bluetooth dongle. I wrote the app myself in java and i try to make it a little better, but i thing the wiimote is better.

Here is a short Video:

[youtube]9Mj3N90-Ob0[/youtube]
« Last Edit: June 23, 2008, 10:31:39 AM by kowa »



Offline zhaorc

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #5 on: August 06, 2008, 12:53:09 AM
I have 3 questions,will you tell me:
1. Is your pen is a IR pen or a pen with a LED?
2. Do you remove the IR filter from the WebCam?
3. Why the mouse pointer looks slower than the pen?



Offline kowa

  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
    • My project website
Reply #6 on: August 14, 2008, 03:02:30 PM
Sorry for my late reply.

1. Its an IR-pen.
2. Yes I removed the IR-filter.
3. I think my webcam captures too slow. Better webcam = better IRdot-tracking.

Visit my project page for further information.


Offline bonnie

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #7 on: August 28, 2008, 10:39:49 PM
Thanks for your brilliant project.
I wonder if anyone here removing their IR filter and still have their webcam for common usage?






Offline kowa

  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
    • My project website
Reply #8 on: August 29, 2008, 03:10:38 AM
I never bought my webcam for common usage. But still it can be used. The colors just change a bit and my face looks funny. Its a camera with IR-leds for night vision.


Offline zhaorc

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #9 on: September 11, 2008, 01:50:44 AM
Thank you.
But your project website can not open. Do you have a mirror?



Offline verrue

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #10 on: September 11, 2008, 01:32:28 PM
http://yvesdelhaye.be/?Une-webcam-comme-camera-infrarouge

This guy show how to convert a standard webcam into an IR one. It's in french. But the photographs show how he removed the IR filter and add a film to filter visible light.



Offline kowa

  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
    • My project website
Reply #11 on: September 11, 2008, 02:08:10 PM
Try to open the website now. There were some Traffic problems. But I have a mirror too. You can download my program here if you cant open the website.

Here is an english guide on how to remove the IR filter.
« Last Edit: September 11, 2008, 02:11:36 PM by kowa »



Offline zhaorc

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #12 on: September 11, 2008, 08:41:51 PM
Thank you very much and I have got it.



Offline SirMack

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #13 on: September 17, 2008, 01:37:43 PM
How many frames per second would the webcam have to be capable of in order for it to be feasible with instant feedback? 

The Quickcam Vision Pro I have heard is 30 FPS.



Offline kowa

  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
    • My project website
Reply #14 on: September 25, 2008, 02:24:15 PM
I dont know. 30 FPS means the software has about 33 ms time to scan the picture of the webcam for IR-Dots. I would have to test how many milliseconds the software needs.
« Last Edit: September 25, 2008, 02:25:51 PM by kowa »