readFrame
Read older image frame(s) from Raspberry Pi camera board or USB web camera
Syntax
Description
returns the oldest RGB image frame, as obtained from the Raspberry Pi™ camera board, as a 3-D image.data
= 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.
[
returns the oldest RGB image frame, as obtained from the Raspberry Pi camera board, as a 3-D image along with the timestamp.
data
,ts
] = readFrame(cameraboardObj
)ts
is the timestamp corresponding to
the frame.
[
returns multiple RGB image frames, as obtained from the Raspberry Pi camera board, as a 4-D array along with the
timestamps. The data
,ts
] = readFrame(cameraboardObj
,count
)count
value specifies the
number of frames, with a maximum allowed value of 10. The oldest
image is returned first. ts
is the timestamp
corresponding to each frame.
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
)
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.
[
returns the oldest RGB image frame, as obtained from the web camera
attached to the Raspberry Pi camera board, as a 3-D image along with the timestamp.
data
,ts
] = readFrame(webcamObj
)ts
is the timestamp corresponding to
the frame.
[
returns multiple RGB image frames, as obtained from the web camera
attached to the Raspberry Pi board, as a 4-D array along with the timestamps. The
data
,ts
] = readFrame(webcamObj
,count
)count
value specifies the number of
frames, with a maximum allowed value of 10. The oldest image is
returned first. ts
is the timestamp
corresponding to each frame.
Examples
Input Arguments
Output Arguments
Extended Capabilities
See Also
raspi
| cameraboard
| webcam
| snapshot
| record
| stop
| getFile
| deleteFile