MATLAB: Imread() unable to read the url.

image acquisitionimreadip webcam

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);

Best Answer

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.
Related Question