Describe OpenGazer here.

{{ svn co https://opengazer.svn.sourceforge.net/svnroot/opengazer apt-get install libcv-dev libhighgui-dev libcvaux-dev \

}}} VXL:

apt-get install cmake build-essential 

Download http://vxl.sourceforge.net/

unzip vxl-1.14.0...
cmake /home/lucas/vxl-1.14.0 -DBUILD_EXAMPLES:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DVXL_USE_LFS:BOOL=ON 
cd vxl-1.14.0
make -Bik install

* Now lets install opengazer

cd /path/to/opengazer/
vi Makefile

And change

#from:
VXLDIR = /opt
#to:
VXLDIR = /usr/local

If you got an error:

delldebian:/home/lucas/tmp/opengazer-0.1.2# make
g++ -c -Wall -g -O3 -o opengazer.o `pkg-config cairomm-1.0 opencv gtkmm-2.4 --cflags`  -I/usr/local/include/core -I/usr/local/include/vcl -I/usr/local/include/contrib/oxl  -I/usr/local/include/core -I/usr/local/include/vcl -I/usr/local/include/contrib/oxl  -I/usr/local/include/vxl/core -I/usr/local/include/vxl/vcl -I/usr/local/include/vxl/contrib/oxl opengazer.cpp 
In file included from TrackingSystem.h:3,
                 from MainGazeTracker.h:3,
                 from GazeArea.h:3,
                 from GazeTrackerGtk.h:6,
                 from opengazer.cpp:3:
PointTracker.h:11: error: reference to ‘exception’ is ambiguous
/usr/include/boost/exception/exception.hpp:191: error: candidates are: class boost::exception
/usr/include/c++/4.4/exception:60: error:                 class std::exception
PointTracker.h:11: error: reference to ‘exception’ is ambiguous
/usr/include/boost/exception/exception.hpp:191: error: candidates are: class boost::exception
/usr/include/c++/4.4/exception:60: error:                 class std::exception
make: *** [opengazer.o] Error 1

Change the include line

# change the following line if your vxl library is installed elsewhere
#From
INCLUDES = $(foreach prefix,/usr/local/include $(VXLDIR)/include $(VXLDIR)/include/vxl, \
       $(foreach suffix,/core /vcl /contrib/oxl,-I$(prefix)$(suffix)))
#To
INCLUDES = $(foreach prefix,/usr/local/include $(VXLDIR), \
        $(foreach suffix,/core /vcl /contrib/oxl,-I$(prefix)$(suffix)))

Change point trucker vi PointTracker.h

#from
class TrackingException: public exception {};
#to
class TrackingException: public std::exception {};

make

Check if camera is used

mplayer TV: / / 0

export LD_LIBRARY_PATH=$VXLDIR/lib
rmmod pwc
modprobe pwc size=vga

./opengazer

https://www.evernote.com/shard/s1/note/c39d6fc0-0f18-4c29-8e86-f4c21f0ab9ec/jasperhartong/jasperhartongsnotebook#b=8a7060eb-3386-4933-8a23-8b91eed4b688&n=c39d6fc0-0f18-4c29-8e86-f4c21f0ab9ec

MyWiki: OpenGazer (last edited 2011-11-21 03:12:23 by LukaszSzybalski)