snapshot
Acquire single image frame from a webcam
Add-On Required: This feature requires the MATLAB Support Package for USB Webcams add-on.
Syntax
Description
img = snapshot(cam);webcam object cam and
        assigns it to the variable img. The snapshot
        function returns the current frame. Calling snapshot in a loop returns
        a new frame each time. The returned image is always an RGB image.
          snapshot uses the camera’s default resolution or another resolution
        that you specify using the Resolution property.
Examples
Input Arguments
Version History
Introduced in R2014a

