Error in giving input to Imagedatastore

1 visualización (últimos 30 días)
Maaz Ahmed
Maaz Ahmed el 4 de Mzo. de 2019
Respondida: Kojiro Saito el 4 de Mzo. de 2019
I am taking an image from android phone and capturing on MATLAB . I want the captured image to be stored in imageDatastore format but i am getting the error .
url = 'http://192.168.43.1:8080/shot.jpg' ;
tester = imageDatastore(url);
I know it is not the correct way to give input to imagedatastore , if anyone can help me here so that my input from mobile gets stored in imagedatastore .

Respuestas (1)

Kojiro Saito
Kojiro Saito el 4 de Mzo. de 2019
How about downloading an image using websave and then creating imageDatastore?
url = 'http://192.168.43.1:8080/shot.jpg' ;
filename = 'shot.jpg';
outfilename = websave(filename, url);
tester = imageDatastore(outfilename);

Categorías

Más información sobre MATLAB Mobile en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by