IP Camera Image Acquisition
你创建一个ipcam
object and then use thesnapshot
function to acquire images from an IP camera. You can acquire a single image or set up a loop to acquire multiple images. Use thepreview
function to test the camera stream.
Functions
ipcam |
Create ipcam object to acquire images from an IP camera |
preview |
Preview live video data from IP camera |
snapshot |
Acquire single image frame from an IP camera |
closePreview |
Close IP camera preview window |
Examples and How To
Acquire Images from IP Cameras
This example shows how to use thesnapshot
function to acquire one image frame from an IP camera and display it.
获得IP摄像机图像在一个循环中nd Create an AVI File
This example shows how to acquire multiple image frames from an IP camera, and log the images to an AVI file using MATLAB®VideoWriter.
Set Properties for IP Camera Acquisition
You can set the Timeout property during or after object creation. You can set device-specific properties using thewebread
function.
Acquire Images from an IP Camera Android App
This example shows how to use your Android phone as an IP camera and acquire images from it.
Detect Circles from IP Camera Using Image Processing Toolbox
This example shows how to detect circles from images acquired on the IP camera using Image Processing Toolbox functions.
Concepts
IP Camera Acquisition Overview
You can use the Internet Protocol (IP) Camera support to bring live images into MATLAB from any IP Camera that supports Motion JPEG stream over HTTP or RTSP with basic authentication support.