http live stream to OpenCV

asked 2014-03-23 16:06:13 -0600

n4zg gravatar image

Hi im trying to get a video feed from a http page to OpenCV in Java i've tried the following

VideoCapture capture =new VideoCapture("http://192.168.1.100:8080/");

this is the feed string from the server side

 $("#live_image").attr("src", basicURL + "stream/live.jpg?id=" + picCount);

I've tried alot of combinations but have had no luck..

Any help would be gratefully appreciated

Thanks

edit retag flag offensive close merge delete

Comments

your server seems to send out a *single * picture only, and with a different url each time.

that's not a video stream.

read a bit, how to generate a proper mjpg feed.

berak gravatar imageberak ( 2014-03-24 02:12:51 -0600 )edit

Hi i have tried working with ip cam too where im also having problems im using the following VideoCapture capture =new VideoCapture("http://192.168.1.101:8080/videostream.cgi?user=admin&pwd=MYPASS&resolution=32"); the http address works in VLC but not when i use it for OpenCV im using Java for this..

Berek do you know of any tutorials i can follow to create a stream from android to http page .. the one im using is may not be right as you mentioned..Btw im new to opencv..

thanks

n4zg gravatar imagen4zg ( 2014-03-24 16:48:33 -0600 )edit