trishume / eyeLike

A webcam based pupil tracking implementation.
MIT License
935 stars 334 forks source link

Issues with pathing to haarcascade_frontalface_alt.xml #17

Open justint opened 7 years ago

justint commented 7 years ago

Hey Tristan, great eye tracking system first of all. 😄

Just a heads up, your current implementation as it is in the repository won't run due to the path given to the haarcascade_frontalface_alt.xml file in main.cpp. Since eyeLike's post-build executable location is under build/bin/, the double ellipse count should be two, not three, eg:

cv::String face_cascade_name = "../../res/haarcascade_frontalface_alt.xml";

I might suggest turning the path of said xml file into an argument, so the user can specify where the xml file is without needing to recompile.

trishume commented 7 years ago

Yah that's probably reasonable. The path is correct for the way I build eyeLike with XCode, which puts the binary under build/bin/Debug/, but that's not what happens with command line CMake.

It being a command line parameter that defaults to two levels up seems like a better option indeed.