Ask Your Question
0

Unhandled exception using cvLoadIMage

asked 2013-11-27 04:33:36 -0600

I Hi everyone, I Have a web hosting and that I uploaded my files in and I am using visual studio 2010 exemple: IplImage* image = cvLoadImage("http://carprotectionsystem.webuda.com/m012_full_body0000_2.jpg" ); 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 close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-27 04:51:53 -0600

berak gravatar image

updated 2013-11-27 05:19:31 -0600

  • you can't read urls like this (imread/cvLoadImage only accept a local path)
  • please avoid the old c-api(IplImages, cv*Functions), support for that will end soon.
  • you could try to abuse VideoCapture for this:

Mat frame;
VideoCapture cap("http://carprotectionsystem.webuda.com/m012_full_body0000_2.jpg");
if ( cap.isOpened() )
    cap.read(frame);
edit flag offensive delete link more

Comments

and to use cvHaarDetectObjects .. it takes as first paramter const CvArr* Image.. ?

WaelAssaf123312 gravatar imageWaelAssaf123312 ( 2013-11-27 05:24:41 -0600 )edit

please have a look at the tutorial

berak gravatar imageberak ( 2013-11-27 05:50:43 -0600 )edit

Question Tools

Stats

Asked: 2013-11-27 04:33:36 -0600

Seen: 333 times

Last updated: Nov 27 '13