How to detect faces in image or video?
Is training haar cascade necessary?because iam trying to use the default frontal_face_default.xml file but is not working and i am using open cv2.4.13 and jdk 6 with it.
no, training your own cascade migt not be nessecary, and most likely, your existing cascade was simply not loaded due to a wrong path.
please check
cascade.empty()
after loading, rinse & repeat.also, please add some lines of code, where you try to load it to your question
Hello Berak, i am also trying to use face detection using haar cascade files in c. i am facing the same problem, it is unable to load the file. can you please provide the link for its solution. or can you please provide the solution in c-languge.
thanks in advance, Saurabh
@saurabh, you must not use opencv's c-api (it's dead, no more maintained), but c++, and the tutorial is here
have you tried specifying the absolute path? It happened very often to me that things were not loaded properly if I used the relative path.