Use the MATLAB® Support Package for IP Cameras to import live images into MATLAB. Images can be from IP cameras that support MJPEG over HTTP/RTSP streams or that support H.264 over RTSP streams, with basic authentication.
Install hardware support, set up hardware connection
Acquire images from IP camera
Resolve unexpected issues in MATLAB Support Package for IP Cameras