Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv object detection tutorial not working

So I have followed the object detection tutorial to a "T" and it doesn't work. Just to double check for any spelling or syntax errors, I copied and pasted the website's code into my project and changed my code to "old_main.cpp." The actual problem, is that "cmake ." and "make" return's no errors and when I run the program, "./ASL-Interpreter," I see my video but no cascade. Thanks in advance

tutorial I'm using -> https://docs.opencv.org/master/db/d28/tutorial_cascade_classifier.html

my "project" -> https://github.com/ellisa4/ASL-Interpreter

my CMakeLists.txt -> https://raw.githubusercontent.com/ellisa4/ASL-Interpreter/master/CMakeLists.txt

./src/main/cpp/main.cpp -> https://raw.githubusercontent.com/ellisa4/ASL-Interpreter/master/src/main/cpp/main.cpp

[root@Ellis master]# find / -name "haarcascade_frontalface_alt.xml" -print

returns

/home/master/Documents/opencv/data/haarcascades/haarcascade_frontalface_alt.xml
/home/master/Documents/opencv/data/haarcascades_cuda/haarcascade_frontalface_alt.xml
/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml

that leads me to believe that it is there. Anything else I can try to trouble shoot?