Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  • 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 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(); if ( cap.isOpened() ) cap.read(frame);

  • 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();
cap("http://carprotectionsystem.webuda.com/m012_full_body0000_2.jpg");
if ( cap.isOpened() )
cap.read(frame);

cap.read(frame);