From: daniel watson Date: Sat, 28 Apr 2012 06:00:46 +0000 (-0400) Subject: expand README to include compilation instructions X-Git-Url: http://challenge-bot.com/repos/?p=ozzloy%40gmail.com%2Foble;a=commitdiff_plain;h=026d4426dc8574aa50d10454e6694c7507f79603 expand README to include compilation instructions --- diff --git a/.gitignore b/.gitignore index c2d6ae6..390e1b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ .*.sw? oble - diff --git a/Makefile b/Makefile index 5db009e..006e7ea 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ OBJS = idle_x11.o oble.o idle_x11.o: idle_x11.h oble.o: oble.h -oble: $(OBJS) haarcascade_frontalface_alt.xml +oble: $(OBJS) gcc $(OBJS) $(LDFLAGS) -o $@ #haarcascade_frontalface_alt.xml: @@ -18,8 +18,8 @@ oble: $(OBJS) haarcascade_frontalface_alt.xml test: all ./oble -c haarcascade_frontalface_alt.xml -dependencies: - sudo aptitude install -y libxss-dev +ubuntu-dependencies: + ./initial_oble_setup_ubuntu.bash clean: rm -rf oble *.o diff --git a/README b/README index 3734014..154e64d 100644 --- a/README +++ b/README @@ -3,3 +3,16 @@ prevent the system from sleeping when a user is looking at the screen. this is accomplished using a camera and opencv to detect a face. this readme is woefully short. + +you'll need to get a file called +haarcascade_frontalface_alt.xml +i was able to get it with this: + wget http://eclecti.cc/files/2008/03/haarcascade_frontalface_alt.xml + +i'm not sure what the rules are on distributing this file, so you'll +have to get it yourself + +if you're on ubuntu: +make ubuntu-dependencies +make +make test # assumes you have haarcascade_frontalface_alt.xml in current dir