Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to get live streaming from IP camera into matlab
Date: Sun, 6 Dec 2009 09:00:21 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <hffrr5$ehv$1@fred.mathworks.com>
References: <hf8i1r$dku$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1260090021 14911 172.30.248.37 (6 Dec 2009 09:00:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 6 Dec 2009 09:00:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:590569

Hello Muhammad,

I do not have much experience on this sort of stuff, but I had a friend using the following piece of code to get streaming data out of a cam. 

Hope this helps.

Best.


====================================================
cam=imaqhwinfo
cam.InstalledAdaptors

vid=videoinput('winvideo',1);
triggerconfig(vid,'manual');%sets the object to manual triggering(immediate type)
set(vid,'FramesPerTrigger',1);%decides the number of frames you want to capture 
set(vid,'TriggerRepeat',Inf);%decides the number of frames you want to process in your program

start(vid);

% Then, in a for loop, he was capturing one image at a time:
for counter = 1:N
    trigger(vid);%help to get the image when you use manual triggering.
    im=getdata(vid,1);%access these frames
end