Acquire an image frame using manual shutter mode from an iOS mobile
device camera. To complete this example, you must have MATLAB
Mobile on your iOS device and you must be connected to the MathWorks Cloud. If you have not, see Install MATLAB Mobile on Your Apple iOS Device.
Start MATLAB
Mobile on your iOS device.
On the Commands screen of MATLAB
Mobile, create a mobiledev object, m.
m =
mobiledev with properties:
Connected: 1
AvailableCameras: {'back' 'front'}
Logging: 0
InitialTimestamp: ''
AccelerationSensorEnabled: 0
AngularVelocitySensorEnabled: 0
MagneticSensorEnabled: 0
OrientationSensorEnabled: 0
PositionSensorEnabled: 0
Supported functionsCreate a connection to the 'back' camera of the device.
cam =
Camera with properties:
Name: 'back'
AvailableResolutions: {'640x480' '1280x720'}
Resolution: '640x480'
Autofocus: 'on'
Flash: 'off'Acquire a single image and timestamp from the camera using the manual shutter mode.
The camera preview opens on your device. You can move your mobile device to capture the
desired image in the preview. Press the shutter button on the device to acquire the
image.
Display the acquired image in MATLAB
Mobile.