imread() unable to read the url.

I have a code where I need to capture an image using IP webcam. But the imread function is unable to read the URL.
url='http://192.168.43.1:8080/pic1.jpg';
img = imread(url);
imshow(img);
fuFileName= fullfile('C:\Users\USER\Desktop\final year project\FFF\car', '.jpg');
imwrite(img,fuFileName);
The error shown is:
Error using imread (line 330)
Can't read URL "http://192.168.43.1:8080/hot1.jpg".
Error in u2>pushbutton1_Callback (line 83)
img = imread(ur);

 Accepted Answer

Walter Roberson
Walter Roberson on 18 Apr 2018
I have never seen an ip webcam use pic1.jpg as the name of the file to access to trigger a snapshot.
In any case you need to use ipcam() along with the appropriate support package.

More Answers (0)

Categories

Find more on MATLAB Support Package for IP Cameras in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!