how to have stream video from my ipcam to matlab
Mostrar comentarios más antiguos
this function it's for stream image. please I would like to have for video stream function. Thank you, best regard
url = 'http://192.168.0.3:8080/shot.jpg';
ss=imread(url);
fh = imshow(ss, 'Parent', handles.axes1);
while(1)
ss=imread(url);
set(fh,'CData',ss);
drawnow;
end
Respuestas (3)
Walter Roberson
el 24 de Sept. de 2015
1 voto
Note: not all cameras support the streaming frame mode needed for ipcam . You need a different URL than what you show in order to get it to work when the device supports it at all. When devices only support taking jpeg snapshots then ipcam() is not appropriate.
14 comentarios
Tiwa Romuald
el 30 de Sept. de 2015
Walter Roberson
el 30 de Sept. de 2015
Try
cam = ipcam('http://192.168.1.3:8080/video.mjpeg', '', '', 'Timeout', 20)
Tiwa Romuald
el 1 de Oct. de 2015
Walter Roberson
el 1 de Oct. de 2015
The IP address. You used 192.168.1.3 when you were successful in getting single snapshots, but you changed to 192.168.1.106 when you were failing to get a video stream.
Tiwa Romuald
el 3 de Oct. de 2015
Walter Roberson
el 3 de Oct. de 2015
What manufacturer and model of IP camera do you have?
Tiwa Romuald
el 6 de Oct. de 2015
Walter Roberson
el 6 de Oct. de 2015
You will need to change the IP address in the string every time your phone gets a new address. Unless, that is, you use a program with your phone that automatically notices that its IP address has changes and registers the new address against a DNS host name, and then you could use the hostname in the string instead of the IP address. For example you could use the Dyndns Client.
Tiwa Romuald
el 6 de Oct. de 2015
Tiwa Romuald
el 6 de Oct. de 2015
Editada: Tiwa Romuald
el 6 de Oct. de 2015
Walter Roberson
el 6 de Oct. de 2015
https://code.google.com/p/idyndns/ if you are using iPhone
https://play.google.com/store/apps/details?id=com.dyndns if you have Android
Please indicate what kind of smartphone you are using.
Tiwa Romuald
el 8 de Oct. de 2015
Walter Roberson
el 8 de Oct. de 2015
Editada: Walter Roberson
el 8 de Oct. de 2015
Then you can use the dyndns application I linked to above, and you can use the ip webcam program listed in previous discussions.
Tiwa Romuald
el 8 de Oct. de 2015
Image Analyst
el 7 de Oct. de 2015
0 votos
Perhaps install the IP camera hardware support package first from the Add-Ons drop down button in the Environment section of the "Home" tab/ribbon. See the instructions here: http://www.mathworks.com/videos/webcam-support-101624.html. Make sure you select ipcam on the listbox that appears:

1 comentario
Tiwa Romuald
el 8 de Oct. de 2015
Jun ady
el 14 de Oct. de 2019
0 votos
how to realtime ip camera get snapshot/
Categorías
Más información sobre MATLAB Mobile en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!