Ask Your Question
-1

Error loading CascadeClassifier

asked 2018-07-24 05:57:14 -0600

flaviu2 gravatar image

updated 2018-07-24 06:44:15 -0600

Hi. I have met a weird crash rtying to load an xml into CascadeClassifier:

            if(! m_CascadeFace.load("haarcascade_frontalface_alt.xml")) // <-- crash
            return;

where m_CascadeFace is type of cv::CascadeClassifier.

Is there any wrong here ? I have taken this xml from here: link text

can you help me ?

edit retag flag offensive close merge delete

Comments

please no screenshots ! (add text instead)

berak gravatar imageberak ( 2018-07-24 06:13:10 -0600 )edit

I remove the image.

flaviu2 gravatar imageflaviu2 ( 2018-07-25 01:36:53 -0600 )edit
1

maybe you should check, if there's really valid xml inside that file (not an html error msg from a failed download)

berak gravatar imageberak ( 2018-07-25 02:47:07 -0600 )edit

Berak, tank you. You were right. I have checked xml files with this tool: link text but I downloaded from github, without error ... I wonder where can I find them good ...

flaviu2 gravatar imageflaviu2 ( 2018-07-25 03:50:39 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-07-25 04:03:17 -0600

berak gravatar image

you probably missed the "raw" button on github, like so: https://raw.githubusercontent.com/ope...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-24 05:57:14 -0600

Seen: 304 times

Last updated: Jul 24 '18