Main Content

IP Camera Acquisition Overview

IP cameras, also referred to as netcams or network cameras, are increasingly popular in live image processing applications. Use the MATLAB® Support Package for IP Cameras to bring live images from an Internet Protocol (IP) camera into MATLAB. Images can be from IP Cameras that support MJPEG over HTTP/RTSP or H.264 over RTSP stream with basic authentication or digest authentication.

With simple MATLAB functions you can preview your image, acquire single snapshots from the camera, and optionally set up a loop of acquired images. The ipcam function creates the IP Camera object that is used to acquire images, and the snapshot function returns a single image from the camera.

IP Camera support is available only through a hardware support package. Download and install the necessary files using the Support Package Installer, which you open by typing supportPackageInstaller in MATLAB. On the Select support package to install screen, select IP Cameras from the list.

You can use MATLAB IP Camera support on the following platforms:

  • Microsoft® Windows® 64-bit

  • Mac OS X 64-bit

  • Linux®

Create Standalone Applications using MATLAB Compiler and IP Camera

You can build standalone applications that run MATLAB programs that interface with the IP Cameras without having MATLAB installed. For more details on the application compiler app, see Create Standalone Application from MATLAB and Manage Support Packages.

While deploying applications to decode H.264 video streams using the MATLAB Support Package for IP Cameras, ensure that you have access to the Cisco® OpenH264 library which has its own license requirement. Refer to the Cisco license agreement before using the Cisco OpenH264 library.

After you have packaged the application, ensure that you download, extract, and place the library in the same folder as the application. The application will error out if you execute it without the library in the folder. You can download the Cisco OpenH264 version 1.8.0 from here.

Operating SystemCisco OpenH264 Libraries