필터 지우기
필터 지우기

Live frames from IP Camera

조회 수: 2 (최근 30일)
Zafer Orhan
Zafer Orhan 2016년 3월 16일
편집: Image Analyst 2016년 3월 18일
Hi, How can i get the ip camera's frames for video processing?

답변 (1개)

Explorer
Explorer 2016년 3월 16일
Try this:
url = 'http://192.168.1.4:8080/shot.jpg';
ss = imread(url);
fh = image(ss);
while(1)
ss = imread(url);
set(fh,'CData',ss);
drawnow;
end
  댓글 수: 3
Zafer Orhan
Zafer Orhan 2016년 3월 18일
It's not working.
url = ' rtsp://192.168.2.229:554/av0_1';
ss = imread(url);
fh = image(ss);
while(1)
ss = imread(url);
set(fh,'CData',ss);
drawnow;
end
Error using imread (line 330) Cannot read URL " rtsp://192.168.2.229:554/av0_1".
Image Analyst
Image Analyst 2016년 3월 18일
편집: Image Analyst 2016년 3월 18일
Are you on the same side of the router as your camera, or are you, say, at work and trying to access a camera attached to your home router? Is that URL the one the manufacturer or your ip camera told you to use? Did you try things like using http instead of rtsp, getting rid of av0_1, changing 554 to 8080, and those kinds of things?
Do you have the hardware support packages for a webcam installed, though I'm not sure they're needed (since you're using imread), but it can't hurt.
Here's a snippet from my webcam app:
% Make sure you run "supportPackageInstaller" and select installed "OS Generic Video Interface" and "USB Webcams" support packages.
% You can also get to this from the Home tab, the "Add-ons -> Get Hardware Support Packages" button.
% If you can't get it to run, make sure that the camera is seen by windows by looking in the "Imaging Devices" category in Device Manager.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by