Ask Your Question
1

c++ opencv code Error

asked 2018-03-26 12:40:40 -0600

anushkawellawaya@gmail.com gravatar image

this code link

This program demonstrates using the cv::CascadeClassifier class to detect objects (Face + eyes) in a video stream. You can use Haar or LBP features.

Usage: FACE_RECOGNITION_DOOR_ACCESS_SYSTEM.exe [params]

    --eyes_cascade (value:../../data/haarcascades/haarcascade_eye_tree_eyeglasses.xml)

    --face_cascade (value:../../data/haarcascades/haarcascade_frontalface_alt.xml)
  -h, --help

--(!)Error loading face cascade Press any key to continue . . .

Why do I encounter this error? Could you please somebody explain me to avoid this and run my project successfully? Your help me greatly appreciated in this matter.

Thank You

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-03-26 12:50:45 -0600

berak gravatar image

"Why do I encounter this error" -- because the path to the cascade file is wrong.

you probably did not run this from within the samples/cpp folder.

try to give an absolute path to the cascade files instead.

edit flag offensive delete link more

Comments

thank you for your advice

anushkawellawaya@gmail.com gravatar image[email protected] ( 2018-03-27 20:44:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-26 12:40:40 -0600

Seen: 199 times

Last updated: Mar 26 '18