readFrame
Return oldest image frame from board, web, or ArduCam module camera
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Syntax
Description
returns the oldest RGB image frame, as obtained from the Raspberry Pi® camera board, as a 3-D image.data
= readFrame(cameraboardObj
)
[
also returns the timestamp of the oldest image.data
,ts
] = readFrame(cameraboardObj
)
returns multiple RGB image frames, as obtained from the Raspberry Pi camera board, as a 4-D array. The
data
= readFrame(cameraboardObj
,count
)count
value specifies the number of
frames, with a maximum allowed value of 10. The oldest image is
returned first. If count
=
1
, the function returns a 3-D image.
[
also returns the timestamps corresponding to each image
frame.data
,ts
] = readFrame(cameraboardObj
,count
)
returns the oldest RGB image frame, as obtained from the web camera
attached to the Raspberry Pi board, as a 3-D image.data
= readFrame(webcamObj
)
[
also returns the timestamp of the oldest image.data
,ts
] = readFrame(webcamObj
)
returns multiple RGB image frames, as obtained from the web camera
attached to the Raspberry Pi board, as a 4-D array. The data
= readFrame(webcamObj
,count
)count
value specifies the number of frames, with a maximum allowed value
of 10. The oldest image is returned first. If
count
= 1
, the
function returns a 3-D image.
[
also returns the timestamps corresponding to each image
frame.data
,ts
] = readFrame(webcamObj
,count
)
returns the oldest RGB image frame from the selected camera on
ArduCam Multi Camera Adapter Module as a 3-D array.data
= readFrame(aCamObj
)
[
also returns the timestamp of the oldest image.data
,ts
] = readFrame(aCamObj
)
returns multiple RGB image frames, as obtained from the selected
camera attached to the ArduCam Multi Camera Adapter Module, as a
4-D array. The data
= readFrame(aCamObj
,count
)count
value specifies the number
of frames, with a maximum allowed value of 10. The oldest image is
returned first. If count
=
1
, the function returns a 3-D image.
[
also returns the timestamps corresponding to each image
frame.data
,ts
] = readFrame(aCamObj
,count
)
Examples
Input Arguments
Output Arguments
Extended Capabilities
See Also
raspi
| arducam
| record
| stop
| snapshot
| selectCamera
| getFile
| deleteFile