Ask Your Question

Error loading CascadeClassifier

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

flaviu2 gravatar image

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

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

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

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


please no screenshots ! (add text instead)

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

I remove the image.

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

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 -0500 )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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

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

berak gravatar image

you probably missed the "raw" button on github, like so:

edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 212 times

Last updated: Jul 24 '18