Interactive Camera-Projector System
From MMVLWiki
Table of contents |
Camera-Projector System
Application
mando (https://mando.sourceforge.net/) (or kmando) is a human computer interface using a camera and a projector. It was developed by Juan Roldan (prototype), Ushakiran Soutapalli (user interface), Julien Faucher (calibration), Jan Wedekind (technical supervision), and Claudia Amico (artwork) at the Mobile Machines and Vision Laboratory (MMVL) at Sheffield Hallam University, UK (https://www.shu.ac.uk).
The software makes use of a Video for Linux version 1 (V4L) camera such as the Logitech Quickcam Pro 4000 (https://www.qbik.ch/usb/devices/showdev.php?id=3332) 640x480 webcam (see exploits.org/v4l (https://www.exploits.org/v4l/) and qbik.ch (https://www.qbik.ch/usb/devices/) for compatible USB devices). The camera is calibrated against a standard projector screen and then used to determine the position of physical pointer (e.g. a pen) which is then used to virtually move the X11 pointer. Point-and-click functionality has also been implemented. The software now also supports IIDC/DCAM compatible firewire digital cameras such as the Unibrain Fire-i (https://damien.douxchamps.net/ieee1394/cameras/) (see Damien Douxchamps list (https://damien.douxchamps.net/ieee1394/cameras/) for cameras with IIDC=yes/1.30/1.31). Note that Video for Linux version 2 (V4L2) currently is not supported by mando.
The required parts of the Mimas real-time computer vision toolkit are included in the package.
How it works
Detection
The detection is a simple colour-segmentation using a thresholded colour-histogram. Therefore you need to use a marker pen or some other object with a distinct colour. The colour should not appear on the screen itself. If the colour of the pen will change due to different illumination conditions, you need to capture these colours when taking the reference image.
Mouse clicks
The standard deviation (https://en.wikipedia.org/wiki/Standard_deviation) of a few recent mouse-positions is used as a criterion, wether the mouse is stationary or moving. If the mouse is stationary, a mouse click is issued.
Design
Changelog
2008-02-07 version 1.6
- Added more confusing array operator methods to keep up with the GCC freaks.
2007-03-27 version 1.5
- Adding support for firewire digital camera
- image_v4linput.cc: Accepting YUV422 (assuming it is same as UYVY).
- Wizard has new combo-box for selecting video mode (PAL/NTSC/SECAM/AUTO)
- image_v4linput.cc: Not preferring RGB support of camera. Prefer UYVY or YUV420p instead.
2007-04-14 version 1.4
- Added spin-box for selecting camera channel.
- GUI now has sliders for adjusting brightness, contrast, and others.
2007-03-27 version 1.3
- Added some explanation about capturing reference image.
- Distorted e-mails because of spam.
2007-02-12 version 1.2
- configure.ac: Configure script must not use Qt3-moc.
2007-02-11 version 1.1
- Makefile.am: Added moc-, qrc-, and uic-files to clean-rule.
- configure.ac: Call "make clean" to delete built sources.
2007-02-02 version 1.0
- Applications seems to run stable now -> releasing version 1.0
2006-10-20 version 0.6
- Minor fixes on configure-script
2006-10-20 version 0.5
- Fixed the check for gfortran (using AC_PROG_FC now). Thanks to Steven G. Johnson!
# On the older Mandriva version you may have to configure using ./configure FLIBS="-lgfortran"
# On openSuSE 10.0 libgfortranbegin.a was compiled without "-fPIC". You need to configure using ./configure F77=gfortran FLIBS="-lgfortran"
2006-10-17 version 0.4
- Added support for UYVY-cameras.
2006-10-16 version 0.3
- Video display can be zoomed using the mouse-wheel.
- Display error-messages when accessing camera fails.
2006-10-13 version 0.2
- Removed dependency on ImageMagick.
Downloads
Download the latest release mando-*.tar.bz2 from the mando download section at Sourceforge (https://sourceforge.net/project/platformdownload.php?group_id=220882). For your convenience the required parts of Mimas are included in the package. To build and run the package do
tar xjf mando-*.tar.bz2 cd mando-* ./configure make ./mando
Donnie Bhayangkara (https://kde-apps.org/usermanager/search.php?username=pupil) has built a package for openSuSE 10.3 which can be downloaded here https://software.opensuse.org/search?baseproject=openSUSE%3A10.3&p=1&q=mando
Git Repository
The git repository can be accessed as follows
git clone git://mando.git.sourceforge.net/gitroot/mando mando
Gallery
Possible Future Work
- Port application to Ruby using HornetsEye and Qt4-Ruby
- Port application to OpenMoko+Webcam
- Support for libdc1394 version 2
- Support for V4L version 2
- Test with cheap IR-camera
- Test with 90 fps camera
- Gray code calibration
- use histogram inversion instead of colour histograms
- allow multi-touch (detect multiple pointers) by using local minima of boundary curve
You can help by donating some of your spare time and expertise ;)
See Also
External Links
- Interative Camera-Projector System
- Mando project page at Sourceforge (https://mando.sourceforge.net/)
- Project page at KDE-apps (https://kde-apps.org/content/show.php?content=47105)
- References
- Zhengyou Zhang (https://research.microsoft.com/users/zhang/)
- A Flexible New Technique for Camera Calibration (https://research.microsoft.com/%7Ezhang/calib/)
- Vision-based Interaction with Fingers and Papers (https://research.microsoft.com/users/zhang/Papers/CREST03.pdf)
- Creating input events in Linux/X11 (https://www.bedroomlan.org/~alexios/coding_evrouter.html) using the X11 test interface (https://www.xfree86.org/current/xtestlib.html)
- Report by Ushakiran Soutapalli (https://vision.eng.shu.ac.uk/jan/report_soutapalli.pdf)
- Report by Juan Roldan (https://vision.eng.shu.ac.uk/jan/report_roldan.pdf)
- Zhengyou Zhang (https://research.microsoft.com/users/zhang/)
- Other projects
- Edward Tse - Interactions Inventor (https://edwardtse.com/)
- Multi-Touch Interaction Research (https://mrl.nyu.edu/~jhan/ftirtouch/)
- Magic board project by IIHM (https://iihm.imag.fr/demos/magicboard/)
- IBM Research on interactive projector (https://www.research.ibm.com/ed/ed_technology.htm)
- Finger tracking with laser scanner (https://www.k2.t.u-tokyo.ac.jp/fusion/LaserActiveTracking/)
- LaserGo allows playing Go using a laser-pointer (https://www.mine-control.com/go.html)
- E-Chalk project (https://www.echalk.de/)
- MIT iCampus: Magic Paper (https://icampus.mit.edu/MagicPaper/)
- Occlusion-free projection with multiple projectors (https://www.cc.gatech.edu/cpl/vrp/index.html)
- Detect and neutralise digital cameras (https://www-static.cc.gatech.edu/~summetj/cre/)
- Video of Microsoft Surface at popularmechanics.com (https://www.popularmechanics.com/technology/industry/4217348.html) and at at youtube.com (https://youtube.com/watch?v=-9j_tYP-kzc)
- Calibration for a multiple projector mosaic (https://www.merl.com/projects/ProjectorMosaic/)
- Andy Wilson (https://research.microsoft.com/~awilson/)'s human computer interface (video) (https://www.youtube.com/watch?v=AtmwQnUlEmc)
- Navisis USB touch screen extension (https://www.navisis.com/) (technique (https://www.navisis.com/ENGLISH/02_tech/principle_navisis.php?tmenu=02))
- projection keyboards (https://www.alpern.org/weblog/stories/2003/01/09/projectionKeyboards.html)
- Johnny Chung Lee - Wiimote whiteboard (https://www.cs.cmu.edu/~johnny/projects/wii/) (also see Sourceforge project (https://sourceforge.net/projects/wiiwhiteboard/)). The Wiimote has a 90 fps infrared camera and a microcontroller for maxima detection.
- HandVu (https://www.movesinstitute.org/~kolsch/HandVu/HandVu.html) hand gesture recognition
- Multi-Touch Display (https://multitouch.sourceforge.net/) by Pascal Schmitt
- Virtual Laser Keyboard (https://www.virtual-laser-keyboard.com/) for mobile phones!
- Compaq self-calibrating projector (https://citeseer.ist.psu.edu/454741.html)
- L.A.S.E.R. Graffiti (https://graffitiresearchlab.com/?page_id=76) (video (https://graffitiresearchlab.com/rotterdam/laser_tag_WEB.mov))
- Publicity
- mando on digg.com (https://digg.com/linux_unix/Want_a_touch_screen_without_having_to_buy_expensive_stuff)
- mando on barrapunto.com (https://barrapunto.com/article.pl?sid=07/03/27/1127200)
- mando on es.theinquirer.net (https://es.theinquirer.net/2007/03/27/pantallas_tactiles_a_golpe_de.html)
- mando on vocescuola.it (https://www.vocescuola.it/2007/03/28/kmando/)
- mando on ossblog.it (https://www.ossblog.it/post/2266/kmando-interazione-avanzata-con-kde)
- mando on linuzeros.org (https://www.linuzeros.org/index.php?option=com_content&task=view&id=99&Itemid=1)
- mando on somgnu.org (https://www.somgnu.org/?p=66)
- mando on linmagazine.co.il (https://linmagazine.co.il/hacking/kmando-camera-projector-system-37794)
- mando on opennewsshow.org (https://www.opennewsshow.org/node/14)