Main Content
snapshot
Acquire single image frame from an IP camera
Add-On Required: This feature requires the MATLAB Support Package for IP Cameras add-on.
Description
img = snapshot(cam);
acquires a single image from the IP
camera cam
and assigns it to img
. The
snapshot
function returns the current frame. Calling
snapshot
in a loop returns a new frame each time. The
returned image uses whatever format and resolution the IP camera stream is set
to, and these properties cannot be changed programmatically.
Examples
Output Arguments
Version History
Introduced in R2015a