how to record real time video from a usb camera?
Afficher commentaires plus anciens
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 commentaires
Geoff Hayes
le 13 Fév 2016
Mark - I don't have the Image Acquisition Toolbox, but perhaps you are supposed to make use of a trigger to stop the recording. See Starting and Stopping a Video Input Object for details.
Mark Golberg
le 13 Fév 2016
Geoff Hayes
le 13 Fév 2016
Mark - see Walter's answer at http://www.mathworks.com/matlabcentral/answers/112087-how-to-captured-60-frames-in-1-sec.
Réponses (0)
Catégories
En savoir plus sur Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!