3

I have an IP camera that can be accessed easily using its IP address and a web browser. My project involves extracting that stream from the IP webpage into my Matlab GUI and analyzing it frame by frame. The first and easiest method was using the imread method:

 url = 'http://192.168.1.2:80/jpg/image.jpg?timestamp=';
 image  = imread(url);
 fh = image(ss);
 while(1)
  image  = imread(url);
  set(fh,'CData',image);
  drawnow;
end

This method has one BIG disadvantage, it reads in the stream really slow (about 1 fps) and the actual stream is streaming at 30fps.

Another method to extract the stream and link it to my Matlab GUI, I thought of extracting HTML Tags of the webpage using a TCP/IP object but I've looked around a lot and found nothing. Is there any OTHER way around it? Any help would be appreciated.

P.S I asked around at the MATLAB Newsgroup but no one seems to know a solution for that problem.

dda
  • 6,030
  • 2
  • 25
  • 34
user1111726
  • 157
  • 2
  • 8
  • 18
  • possible duplicate of [MATLAB - capturing video streams (MJPEG, rtsp, mpeg)](http://stackoverflow.com/questions/8669865/matlab-capturing-video-streams-mjpeg-rtsp-mpeg) – bla Jun 11 '13 at 18:45
  • I considered the 'mmread' option, but i am not sure if it can actually get the stream from the IP camera. what would be the correct syntax ? – user1111726 Jun 11 '13 at 19:34
  • Possible duplicate: [How do I livestream using an IP camera in Matlab?](http://stackoverflow.com/questions/21522255/how-do-i-livestream-using-an-ip-camera-in-matlab) – Dennis Jaheruddin Dec 30 '14 at 09:21

0 Answers0