webcam
Create connection to Raspberry Pi web camera
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Description
This object represents a connection from the MATLAB® software to a web camera attached to the Raspberry Pi hardware. To create this
object, use the webcam
function. To configure the web camera
settings, use the object properties listed in Properties. To interact with
the web camera, use this object with the functions listed in Object Functions.
Creation
Description
creates a connection, wcam
= webcam(mypi
)wcam
, from the MATLAB software to a web camera that is attached the Raspberry Pi® hardware. You can capture still images by using
wcam
with the snapshot
function.
allows you to select the camera specified by wcam
= webcam(mypi
, cameraName
)cameraName
. Use this
syntax when you have more than one camera connected to the Raspberry Pi hardware.
allows you to select the camera specified by wcam
= webcam(mypi
, cameraIndex
)cameraIndex
. Use this
syntax when you have more than one camera connected to the Raspberry Pi hardware.
allows you to select the dimensions of the image taken by the camera connected to the
Raspberry Pi hardware.wcam
= webcam(mypi
, cameraName
, resolution
)
Input Arguments
Properties
Object Functions
Examples
Extended Capabilities
Version History
Introduced in R2016a