MATLAB Answers


Error in giving input to Imagedatastore

Asked by Maaz Ahmed on 4 Mar 2019
Latest activity Answered by Kojiro Saito on 4 Mar 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 = '' ;
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 .


Sign in to comment.




1 Answer

Answer by Kojiro Saito on 4 Mar 2019

How about downloading an image using websave and then creating imageDatastore?
url = '' ;
filename = 'shot.jpg';
outfilename = websave(filename, url);
tester = imageDatastore(outfilename);


Sign in to comment.