Ask Your Question
0

cvload report cv::Exception at memory location

asked 2016-11-02 01:55:34 -0600

opencv 2.4.13, vs2013。opencv work fine before. When I called following code,report:cv::Exception at memory location C++ please help, thanks a lot. ^_^

    const char *pstrCascadeFileName = "C:\\Users\\aaa\\Desktop\\hand\\opencv\\sources\\data\\haarcascades\\haarcascade_profileface.xml";

    CvHaarClassifierCascade *pHaarCascade = NULL;

    cvReleaseHaarClassifierCascade(&pHaarCascade);

    pHaarCascade = (CvHaarClassifierCascade*)cvLoad(pstrCascadeFileName,0,0,0);
edit retag flag offensive close merge delete

Comments

btw, please don't post duplicate questions.

berak gravatar imageberak ( 2016-11-02 02:52:56 -0600 )edit
1

sorry, system delay, thought first submit is failed.

westtalkzzz gravatar imagewesttalkzzz ( 2016-11-02 06:05:26 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2016-11-02 02:07:49 -0600

berak gravatar image

please DO NOT try to use opencv's deprecated and no more maintained c-api

(cvLoad() cannot read new style cascades introduced in 2010 already)

start all over, and use this tutorial

edit flag offensive delete link more

Comments

It works,thanks. ^_^

westtalkzzz gravatar imagewesttalkzzz ( 2016-11-02 06:05:54 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-11-02 01:55:34 -0600

Seen: 462 times

Last updated: Nov 02 '16