how can i feed the live video(from webcam) to the following code instead of pre-recorded one ?
Show older comments
R2012a > Documentation Center (Beta) > Computer Vision System Toolbox > Featured Examples in Computer Vision System Toolbox > Abandoned Object Detection
Here they are using this code to acquire video :
hVideoSrc = vision.VideoFileReader; hVideoSrc.Filename = 'viptrain.avi'; hVideoSrc.VideoOutputDataType = 'single';
i would like to replace that part with:
vid=videoinput('winvideo',1); start(vid); preview(vid);
how can i do that ? please help.
Answers (1)
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!