shantnu / FaceDetect

825 stars 1.25k forks source link

Instructions don't work.. #3

Closed Pithikos closed 9 years ago

Pithikos commented 9 years ago

Following the instructions I get error. Below is what I do on my Ubuntu:

git clone https://github.com/shantnu/FaceDetect
cd FaceDetect
python face_detect.py haarcascade_frontalface_default.xml

I get this error:

Traceback (most recent call last):
  File "face_detect.py", line 6, in <module>
    cascPath = sys.argv[2]
IndexError: list index out of range
shantnu commented 9 years ago

You are right. The correct instructions are:

python face_detect.py abba.png haarcascade_frontalface_default.xml

I've updated the Readme.

I had the instructions correct to begin with, but was putting the image name in <>, and didnt realise Github applied Markdown automatically and removed the image name.

Walkman100 commented 9 years ago

python face_detect.py <image file> haarcascade_frontalface_default.xml That what you were going for?

shantnu commented 9 years ago

Yes

On 1 Dec 2014, at 12:15, ░▒▓█│【Walkman】│█▓▒░ notifications@github.com wrote:

python face_detect.py haarcascade_frontalface_default.xml That what you were going for?

— Reply to this email directly or view it on GitHub.