I came across with this project, after some small changes it now works with fgfs
https://github.com/ralph-glass/headtrack
The modifications are already commited in the code.
you start ./headtrack
start fgfs
alt-tab to headtrack
press m this will send events to the mouse.
alt-tab back to fgfs and right click twice to get the <-> and move your head.
you need sudo modprobe uinput
and chmod a+rw /dev/uinput
before starting headtrack.
headtrack.c: In function ‘main’:
headtrack.c:210: error: too few arguments to function ‘cvHaarDetectObjects’
headtrack.c:221: error: too few arguments to function ‘cvHaarDetectObjects’
headtrack.c:229: error: too few arguments to function ‘cvHaarDetectObjects’
gluon wrote in Wed Mar 02, 2011 6:41 pm:Hi,
I tried to compile the latest Snapshot from Git on OpenSuse 11.2 but to no avail.
First the Installation-Instructions are incomplete - you also depend on gtk2 devel. OK, that was figured out quite fast.
However I think the opencv version (2.2.0) supplied with my (old) OpenSuse version isn't up to date (yeah, I know i should upgrade . This is what I get:
- Code: Select all
headtrack.c: In function ‘main’:
headtrack.c:210: error: too few arguments to function ‘cvHaarDetectObjects’
headtrack.c:221: error: too few arguments to function ‘cvHaarDetectObjects’
headtrack.c:229: error: too few arguments to function ‘cvHaarDetectObjects’
But the function looks fine according to the docs I found on the net.
So, which version of opencv do you use (please also name the specific version you depend on in the Installation file)?
Hope this helps.
$ ./headtrack
headtrack.c: Created socket. Destination = 127.0.0.1:49405!
Xlib: extension "RANDR" missing on display ":0".
Sorry, cannot open camera.
OpenCV Error: Null pointer (NULL array pointer is passed) in cvGetMat, file /var/tmp/portage/media-libs/opencv-2.1.0/work/OpenCV-2.1.0/src/cxcore/cxarray.cpp, line 2376
terminate called after throwing an instance of 'cv::Exception'
what(): /var/tmp/portage/media-libs/opencv-2.1.0/work/OpenCV-2.1.0/src/cxcore/cxarray.cpp:2376: error: (-27) NULL array pointer is passed in function cvGetMat
Aborted
Users browsing this forum: No registered users and 4 guests