can I process on video which is live capturing by camera ?

Hi,sir can i process (like, blob analysis, ) on input live video from camera ?

 採用された回答

Dishant Arora
Dishant Arora 2014 年 2 月 19 日

0 投票

you need to capture snapshots from live video in order to process them.
vidobj = videoinput('winvideo');
snapshot = getsnapshot('vidobj');
imagesc(snapshot);
and if you want to acquire multiple frames do this:
for i = 1:5
snapshot = getsnapshot(vidobj);
imagesc(snapshot);
end
you need to have Image acquisition toolbox.go through demos.

6 件のコメント

sandeep
sandeep 2014 年 11 月 15 日
why for lop is 1:5 what does 5 means here? thanks
David Young
David Young 2014 年 11 月 15 日
See doc colon.
sandeep
sandeep 2014 年 11 月 15 日
i meant why he is running loop 5 times .Is something related to 5
David Young
David Young 2014 年 11 月 15 日
It's just meant as an example. You can run the loop as many times as you need to.
sandeep
sandeep 2014 年 11 月 15 日
i am actually trying to capture a video being played on my laptop screen in minimized window. I do not wanna use videoreader('abcd.mp4'). I need to capture that part of screen where video is running. can u help me please here.
David Young
David Young 2014 年 11 月 17 日
I don't know how to do that. It was a bad idea to accept an answer that does not do what you need. You might need to ask a new question, but make clear exactly what you want to do, giving details of the program that is playing the video.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Support Package for IP Cameras についてさらに検索

質問済み:

2014 年 2 月 19 日

コメント済み:

2014 年 11 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by