Quantcast
Channel: MATLAB Central Newsreader - tag:"urlread"
Viewing all articles
Browse latest Browse all 16

Streaming from Zavio IP camera into MATLAB Framework

$
0
0
I am working on a wireless surveillance project, requires me to receive a feed from a zavio IP camera and analyze frames individually. The camera feed can be accessed through a IP address within any browser. Eg: "http:\\192.168.1.x" This works fine, the thing is that I need to access this URL using matlab and to be able to analyze each frame individually. Here's what I've tried so far.

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

By using imread i can easily access the IP address of the wireless camera and handle each frame individually, The only problem is the frame rate, the proper frame rate the camera is using is 30fps which looks quite good when opened using the browser, but is definitely slower when using imread on matlab. Is there a alternative or adjustment that i can make for it to actually read using the same frame rate ?

2) mmread and urlread method
I tried using both these methods to actually read from a url, but not sure weather mmread can actually read from a real time url. I tried using urlread i guess i missing something, but i am pretty sure that it can be used for this purpose.

3) TCP/IP method
I googled, and googled around, but didnt get anything solid to work with, some people recomended the Image Aqu. Toolbox, but found out it may not work with IP cameras :S. Can this method be used for my purpose, if yes any links would be appreciated.

Any help would be greatly appreciated. Thank you

Viewing all articles
Browse latest Browse all 16

Trending Articles