ipcam
Create ipcam
object to acquire images from an IP
camera
Add-On Required: This feature requires the MATLAB Support Package for IP Cameras add-on.
Syntax
Description
cam = ipcam('
creates the
URL
')ipcam
object cam
, where
URL
is a character vector value that identifies a
particular camera by its URL and connects it to the camera with that address.
The URL must either be for a Motion JPEG (mjpeg
) over HTTP or
RTSP stream or H.264 over RTSP stream with basic authentication or digest
authentication.
This way of creating the object requires no user authentication. When you
create the ipcam
object, it connects to the camera and you
can then preview or acquire images.
cam = ipcam('
creates the URL
', 'Timeout', Timeout
)ipcam
object cam
, where
URL
is a character vector value that identifies a
particular camera by its URL and connects it to the camera with that address.
The URL must either be for a Motion JPEG (mjpeg
) over HTTP or
RTSP stream or H.264 over RTSP stream with basic authentication or digest
authentication.
The additional option Timeout
can be used to set a timeout
value other than the default of 10
seconds. The
Timeout
property specifies the amount of time that the
snapshot
function waits for data to be returned.
This way of creating the object requires no user authentication. When you
create the ipcam
object, it connects to the camera and you
can then preview or acquire images.
Examples
Input Arguments
Version History
Introduced in R2015a