kmando human computer interface

System Software

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
Score 63.3%
Description:

A software for camera-projector interaction was developed by Juan Roldan, Ushakiran Soutapalli, Julien Faucher, and Jan Wedekind at the Microsystem & Machine Vision Laboratory (MMVL) at Sheffield Hallam University, UK.

The software makes use of a low cost off-the shelf webcam that is calibrated against a standard projector screen (note that at the moment the new video for linux standard version 2 (V4L2) is not supported yet). The webcam is 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 wizard allows you to take a reference picture showing the pointer. You then have to select the region in the image for generating a reference histogram. If you are using a projector, make sure that the desktop has a bright background. Otherwise the pointer will be illuminated differently and it will not be recognized any more.

Donnie Bhayangkara has built a package of mando-1.6 for openSuSE 10.3 which can be downloaded here:
http://software.opensuse.org/search?baseproject=openSUSE%3A10.3&p=1&q=mando

For a video see
http://video.google.com/videoplay?docid=4201589281466176805

Mando now has a new project page at Sourceforge:
http://mando.sourceforge.net/

New releases at: http://sourceforge.net/project/showfiles.php?group_id=220882

Git access: git clone git://mando.git.sourceforge.net/gitroot/mando mando

Discussion Forum: http://sourceforge.net/forum/?group_id=220882
C

wedesoft

13 years ago

checking for boost... yes
checking for OpenGL... yes
checking for GL... no
checking for GLU... no
checking for glut... no
configure: error: Check for OpenGL failed.

You need to install GL, GLU, and glut.
On my system this are the packages:
xorg-x11-Mesa-devel
freeglut-devel

Report

tibssy

13 years ago

thx wedesoft :)

Report

curtiskoelling

13 years ago

I ran the sh ./configure and I end up getting the following message:

configure: error: Check for XTestFakeMotionEvent in -lXtst failed

what do I need to do?

Report

C

wedesoft

13 years ago

a) Maybe you still need to install libXtst.so. See rpmseek.com for the corresponding rpm-file of your distribution:
http://search.rpmseek.com/search.html?cs=libXtst.so.6:FN:0:0:0:0
b) Maybe libXtst.so is not in the library-path. If for example libXtst.so is in the directory /usr/X11R6/lib64, you could try configuring with:
./configure LDFLAGS='-L/usr/X11R6/lib64'

If it does not help, let me know your Linux-distribution in your next posting.

Report

djworld

13 years ago

I've built an openSUSE 10.2 RPM package. It's available here:

http://www.polinux.upv.es/~vfernandez/suse/10.2/repodata/repoview/mando-0-1.0-1polinux.html

Since there are a lot of dependencies, it would be better just to add the repository to YaST, then install it with YaST. All the dependencies are already included in the installation CDs/DVD. The address of the repository is this one:

http://www.polinux.upv.es/~vfernandez/suse/10.2/

Report

C

wedesoft

13 years ago

Much appreciated! Muchas Gratias!
It's late night already, so I'll have a look at it another day. I will see, what I can do about the problems with the moc-, ui-, and qrc-files. I'm also interested in the dependencies, which rpmbuild usually discovers.
I will wait a bit more until all the bug-reports are in, before I shell out another version ;)

Report

jarizaro

13 years ago

Hi again... not luck here...

$ make

uic mandoWizard.ui -o ui_mandoWizard.hh
uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.6)
make: *** [ui_mandoWizard.hh] Error 1

i tried make clean before make with the some results..
./configure don't tell me nothing special about uic:
checking for uic... uic
and finish ok.


any solution?

Report

C

wedesoft

13 years ago

> uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.6)

Looks like you have both Qt3 and Qt4 developer tools installed and the configure-script does not choose the appropriate ones.
I have replaced the tests for Qt4-moc, -uic, and -qrc in the configure-script with better ones. Please download the new version 1.2 and let me know, wether it works.

Report

jarizaro

13 years ago

Now compile ok :

jariza@PC-JAVI:~/Descargado/mando-1.2$ make
/usr/bin/moc-qt4 mandoWindow.hh -o moc_mandoWindow.cc
/usr/bin/moc-qt4 mandoWizard.hh -o moc_mandoWizard.cc
/usr/bin/uic-qt4 mandoWindow.ui -o ui_mandoWindow.hh
/usr/bin/uic-qt4 mandoWizard.ui -o ui_mandoWizard.hh
/usr/bin/rcc mando.qrc -o qrc_mando.cc
make all-am
make[1]: se ingresa al directorio `/home/jariza/Descargado/mando-1.2'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -O6 -DNDEBUG -DQT_SHARED -I/usr/inclu
de/qt4 -I/usr/include/qt4/QtOpenGL -MT calibrateWidget.o -MD -MP -MF ".dep s/calibrateWidget.Tpo" -c -o calibrateWidget.o calibrateWidget.cc; \
then mv -f ".deps/calibrateWidget.Tpo" ".deps/calibrateWidget.Po"; e lse rm -f ".deps/calibrateWidget.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -O6 -DNDEBUG -DQT_SHARED -I/usr/inclu de/qt4 -I/usr/include/qt4/QtOpenGL -MT cameraProjectorCalibration.o -MD -M P -MF ".deps/cameraProjectorCalibration.Tpo" -c -o cameraProjectorCalibratio n.o cameraProjectorCalibration.cc; \
then mv -f ".deps/cameraProjectorCalibration.Tpo" ".deps/cameraProje ctorCalibration.Po"; else rm -f ".deps/cameraProjectorCalibration.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -O6 -DNDEBUG -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtOpenGL -MT crossWidget.o -MD -MP -MF ".deps/crossWidget.Tpo" -c -o crossWidget.o crossWidget.cc; \
.... etc

:D thanks.

Report

djworld

13 years ago

Bitte schön. :) These are the dependencies I've added to the package:

libqt4 >= 4.2.0
libqt4-x11 >= 4.2.0
boost >= 1.33
freeglut
lapack >= 3.0
f2c
libgfortran >= 4.1
fftw3

You may find them with "rpm -q --requires -p mando-1.0.i586.rpm". Let me know if I'm missing something, I haven't checked the binary with ldd to make sure nothing's missing.

Report

C

wedesoft

13 years ago

Boost is not required (I'm only using the template-classes during compilation). I also require blas, but it may be included in the dependency of lapack now. I guess libMesaGLU1 is already in the dependency of freeglut. Looks like your dependency list is complete.
Regarding regenerating MOC-files. I will extend "make clean" accordingly. However automake always includes built sources in the distribution. It's not a bug, it's a feature ;) So far I've not found a good solution for this problem.

Report

mrX

13 years ago

when I tried to install kmando I got errors at make:


moc_calibrateWidget.cc:14:2: error: #error "This file was generated using the moc from 4.0.1. It"
moc_calibrateWidget.cc:15:2: error: #error "cannot be used with the include files from this version of Qt."
moc_calibrateWidget.cc:16:2: error: #error "(The moc has changed too much.)"
make[1]: *** [moc_calibrateWidget.o] Fehler 1
make[1]: Leaving directory `/home/mrx/programme/mando-1.0'
make: *** [all] Fehler 2



what did I wrong?

Report

djworld

13 years ago

Well, looks like they even haven't included removing the moc files in "make clean". :(

So to solve the problem: just do "rm -f moc_*.cc". Everything should go fine after that.

Report

C

wedesoft

13 years ago

You have a newer version of Qt. Some files need to be rebuild:

cd mando-1.0
rm qrc_mando.cc moc_*.cc ui_*.hh
make

I hope it helps.

Report

mrX

13 years ago

wow.. It runs :-) ... now I just have to find out (without a beamer, just with filming the monitor) how it works... or I just have to read the manual :-)
thanks und sorry for bad english!

Report

mrX

13 years ago

PS: If at "capture reference image for colour segemtation" the finish butten stays grey, it menas, that this step is not done well?

Report

C

wedesoft

13 years ago

Sorry, this is insufficient documentation on my part. The wizard allows you to take a reference picture showing the pointer. You then have to select the region in the image for generating a reference histogram.

Note that the illumination conditions are very important, because the segmentation algorithm is not very smart. This is especially important if you use the software with a monitor. Ideally you should use a marker pen (very good reflection) and maybe you have to dim the monitor a bit.

Report

mrX

13 years ago

ok.. thanks again.. no it works.. faszinierend ;-)

Report

mrX

13 years ago

"no" means "now" .. sorry :-)

Report

djworld

13 years ago

Have you tried "make clean" before "make"? Looks like the developers forgot to "make clean" before packaging the source code.

Report

jarizaro

13 years ago

The some here...

moc_calibrateWidget.cc:14:2: error: #error "This file was generated using the moc from 4.0.1. It"
moc_calibrateWidget.cc:15:2: error: #error "cannot be used with the include files from this version of Qt."
moc_calibrateWidget.cc:16:2: error: #error "(The moc has changed too much.)"
make[1]: *** [moc_calibrateWidget.o] Error 1
make[1]: se sale del directorio `/home/javi/Descargado/mando-1.0'
make: *** [all] Error 2

Any solution ?

Report

arturok

13 years ago

Im running FC5, finally i installed mando0.2, but when i run it and press calibrate button, it crahes and show me a message: Segmentation fault.

dmesg:

usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
Linux video capture interface: v1.00
w9968cf: V4L driver for W996[87]CF JPEG USB Dual Mode Camera Chip 1:1.33-basic
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
usb 2-1: Creative Labs Video Blaster WebCam Go Plus detected
usb 2-1: V4L device registered as /dev/video0
ovcamchip: Camera chip is an OV7620
usb 2-1: OV7620 image sensor initialized
usbcore: registered new driver w9968cf

My camera works with kopete, what im doing wrong??

Report

C

wedesoft

13 years ago

Hi Arturo,
Sorry to hear that the software didn't work properly. This must be a bug in our software or (less probably) an error in the camera-driver (erroneous return values or broken support for some advertised colourspaces).
I assume you mean the Configure-button (not the Calibrate-button). Or did the wizard successfully display webcam-images?
Can you please run mando with the debugger and post me the output?
make clean
./configure --enable-debug=yes
make
gdb ./mando # Type 'run' at the gdb-prompt
# Type 'backtrace' after the segmentation fault has occurred
# Type 'quit' to leave the debugger
# This will yield more information.
By the way: Our Logitech Quickcam on the other hand does not work properly with kopete.

Report

arturok

13 years ago

Hi wedesoft, thanx for the replay, well here is the debugger output:

(gdb) run
Starting program: /home/arturo/documents/programs/linux/multimedia/webcam/mando/mando-0.2/mando
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xc1d000
[Thread debugging using libthread_db enabled]
[New Thread -1208834384 (LWP 20228)]
W996[87]CF USB Camera #0:
type = 129
channels = 1
audios = 0
minwidth = 64
minheight = 48
maxwidth = 640
maxheight = 480
Using 9th supported option.
Memory-map interface:
buffer-size = 1228800
frames = 2
offset of each frame = 0xb330be4
0xb3411008 307200 640 480
0xb31d4008 307200 640 480

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208834384 (LWP 20228)]
0x001f5023 in QEventLoop::exit ()
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libQtCore.so.4
(gdb) quit
The program is running. Exit anyway? (y or n) y

hope it helps. About Calibrate-button, i clicked it after the Configure-button and a couple of next-buttons. The wizard didn't display any image of my webcam. The Segmentation fault appears after a black screen shows on my display when i click Calibrate-button.
Thanx again

Report

C

wedesoft

13 years ago

There was a bug in our software: When encountering an unsupported colourspace the camera-class was throwing an exception only while grabbing.
Furthermore the colourspace of your camera was not supported (UYVY-colourspace) by our software. I've added support for UYVY. Can you please let me know, wether the new version of the software (0.4) does successfully display images, because I cannot test this in our lab?

Report

12345678910
2
product-maker schleby Mar 07 2011 9 excellent
product-maker jrepin Nov 29 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
Pelandritus
Aug 15 2010
Tids
Jun 29 2009
carterson2
Apr 21 2009
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.7
updated Jun 29 2009
added Oct 11 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 3
System Tags app software