フィルターのクリア

how to record real time video from a usb camera?

10 ビュー (過去 30 日間)
Mark Golberg
Mark Golberg 2016 年 2 月 13 日
コメント済み: Geoff Hayes 2016 年 2 月 13 日
Hello, I am creating my video_object with the following line:
vid = videoinput('pixelinkimaq', 1);
I know how to set my ROI, and how to set my FrameRate.
What I can't manage to do is how to record, lets say 1 sec of video.
I'd like to define the NumberOfRecordedFrames and then initiate the recording
start(vid) % right?
if NumberOfRecordedFrames = FrameRate, then recording should stop after 1 sec.
I'd like the recorded movie to be stored in some workspace variable.
Can someone help please.
Thank you.
  3 件のコメント
Mark Golberg
Mark Golberg 2016 年 2 月 13 日
Thank you. I am sure it's something very straight forward, but I can't figure it out how create a recording of X seconds.
I mean, I'd like to set fps=100, then record for 1 second, and receive in the workspace a variable with 100 frames.
Pretty sure this could be made with a few lines of code, but it seems I a missing something basic here.
Help someone...??? Please!!!
Geoff Hayes
Geoff Hayes 2016 年 2 月 13 日

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB 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