MATLAB: Use video Live stream

computer visionimageimage processingMATLABvideovideo processing

Hello guys. I need to have a live video stream on matlab. I prefer if it's not on GUIDE. I found one but it's a .dll file and I can't use it. When I call it's function i get error. Do they need to be complied into matlab in any way???
All I need is to be able to capture an image from video stream each half second or maybe more. I have a code to process images but I want them to be taken from live webcam.
I appreciate any help. Regards, Arman

Best Answer

You will need the Image Acquisition Toolbox for that. You can look at the examples provided at: https://www.mathworks.com/help/imaq/examples.html
A typical workflow will be:
vid = videoinput('winvideo'); img = getsnapshot(vid);
Related Question