How do I livestream using an IP camera in Matlab?

2019-09-01 11:49发布

问题:

How can I interface an IP camera in Matlab? I am using an IP55 from Compro technology.

We have tried the code involving the following:

url = '(IPaddressOfCamera)/snapshot.jpg';
ss = imread(url);
preview(ss);

In summary, I am trying to live stream using an IP camera with a Matlab interface. Any help would be greatly appreciated.

回答1:

If I read it correctly, you would need mjpegStreamer.cgi

Here is the description:

<Manufacturer name="Compro">
    <url version="IP350" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP50/70" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP530" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP540" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP55/60" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP570" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
    <url version="NC150/420/500" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP350" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP50/70" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP530" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP540" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP55/60" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP570" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
    <url version="NC150/420/500" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
    <url version="IP70" confirmed="false" prefix="rtsp://" Source="VLC" url="medias[CHANNEL]" AudioModel="" port="" flags="" cookies=""/>
</Manufacturer>