Problem in cvLoad [closed]
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
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.
I need the xml file to be online,,the webserver is mine and I put the xml file in it
<strike>how do ppl get your program ?</strike>
i mean, they need to get the xml only once. (not with every detection)
anyone can help me on how to read the xml file from my webserver ? Thank You
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