Problem in cvLoad [closed]

asked 2013-11-27 05:44:19 -0600

I Hi everyone, I Have a web hosting and that I uploaded my files in and I am using visual studio 2010 exemple: CvHaarClassifierCascade facedetection = ( CvHaarClassifierCascade )cvLoad( http://carprotectionsystem.webuda.com/haarcascade_frontalface_alt.xml);

but when I run my program an error appears : Error: cv::Exception at memory location 0x00... any help? I really need it ! Thank you in advance

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-26 08:40:39.034674

Comments

cvLoad can't read urls.

and besides, downloading it from a webserver looks like a bad idea. instead, bundle the xml locally with your client code.

berak gravatar imageberak ( 2013-11-27 06:01:56 -0600 )edit

I need the xml file to be online,,the webserver is mine and I put the xml file in it

WaelAssaf123312 gravatar imageWaelAssaf123312 ( 2013-11-27 06:23:46 -0600 )edit

<strike>how do ppl get your program ?</strike>

i mean, they need to get the xml only once. (not with every detection)

berak gravatar imageberak ( 2013-11-27 06:26:45 -0600 )edit

anyone can help me on how to read the xml file from my webserver ? Thank You

WaelAssaf123312 gravatar imageWaelAssaf123312 ( 2013-11-27 06:35:19 -0600 )edit

you'd have to use libcurl, or any other http-utility lib for the download.

if you're using old-style cascades(made from cvhaartraining), you'd have do save it to a file, and load it the usual way, if it's a new-style one (made from opencv_traincascade), you can pass it in memory

berak gravatar imageberak ( 2013-11-27 06:41:31 -0600 )edit