how to using OpenCv API get web video stream!
Is there have a API we can use to get video stream from web. For example from 192.168.1.180/?action=stream.
You can use OpenCV VideoCapture class to open video streaming from web
Using
VideoCapture cap;
cap.open(192.168.1.180/?action=stream?dummy=param.mjpg);
And see some links with this thread.
http://answers.opencv.org/question/3664/ip-network-camera-access/
http://stackoverflow.com/questions/712998/opencv-with-network-cameras
http://stackoverflow.com/questions/15584161/ip-camera-and-opencv
Just try this link working for me in vs 2010
cap.open("http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8?dummy=param.mjpg");
. Also see the answer here http://answers.opencv.org/question/23030/dynamic-display-multiple-video-feed-from-multiple/?answer=23043#post-id-23043
thanks! I'm using your cord: cap.open("http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8dummy=param.mjpg"); the URL can open in browser,but can not open in vs2010 use you code :cap.open(URL); whether should I do some setting with my vs2010 ? or the version problem of my opencv . my opencv version is 2.3.0
Mat grains(480,640,CV_8UC3,Scalar::all(0)); const string videoStreamAddress1 = "http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8?dummy=param.mjpg"; //From mjpeg streamer const string videoStreamAddress2 = "http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8?dummy=param.mjpg"; //From mjpeg streamer
if(!vcap1.open(videoStreamAddress1)) {
cout << "Error opening video stream1" <<endl;
}
after execute this cord the screen print Error opening video stream1 ,
if i'm using browser I can capture webcam.
but can't capture using vs2010
Hello. I am able to get the above code to work. I would like to get a different type of stream to pipe in to opencv. I have an html5 canvas on a webpage served at 127.0.0.1:5555 that I am loading a stream into with the following code:
<div id="droneStream" style="width: 640px; height: 360px"></div>
new NodecopterStream(document.getElementById("droneStream"));
var myImage = canvas.toDataURL("image/png");
I want to pipe that stream from the page into opencv in the way that you have accomplished above. Do you know how to structure the url to grab the image stream? Right now I have a URL that I know is wrong, but here is my opencv code:
capture.open("http://127.0.0.1:5555/#droneStream");
Thanks for your help.
Like @berak suggested ... please do not open cold turkey topics :)
Asked: 2013-11-20 01:30:53 -0600
Seen: 59,326 times
Last updated: Apr 25 '14
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images
compile error in opencv2/flann/lsh_table.h when compiling bgslibrary