snapshot
Acquire single image frame from mobile device camera
Description
Add-On Required
To use this function for accessing mobile device sensors remotely from MATLAB® installed on a desktop or laptop computer, you must also install either MATLAB Support Package for Apple iOS Sensors or MATLAB Support Package for Android® Sensors. For more information, see Get and Manage Add-Ons.
[
acquires a single image and its timestamp from a mobile device camera
img
,timestamp
] = snapshot(cam
,shutterMode
);cam
using the specified shutter option
shutterMode
. The snapshot
function opens a camera
preview on the device and returns the current frame in MATLAB as an RGB image. The resolution of the image is specified by the
Resolution
property of the camera
object
cam
.
Preview the image using image
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019a