Why do I get JPEG library error
Show older comments
(Matlab mobile) Here is the full error message:

And the full code:
clc
clear
m=mobiledev;
m.Logging=1;
cam=camera(m,'back');
cam.Resolution='640x480';
a=1;
while a==1
img=snapshot(cam,'manual');
ent=input('Nombre de imagen: ','s');
ent2=input('Nombre de carpeta: ','s');
b='\';
s=strcat(ent2,b);
mkdir(ent2);
pause(2)
imwrite(img,[s,ent,'.jpg']);
c=strcat(s,ent,'.jpg');
img2=imread(c);
imshow(img2);
end
How can I resolve this error?
Answers (1)
Image Analyst
on 9 Jul 2022
0 votes
Either save it to a disk that has available disk space, or don't save the image at all.
4 Comments
Brayann Alexander Perez Guizar
on 9 Jul 2022
Image Analyst
on 9 Jul 2022
Edited: Image Analyst
on 9 Jul 2022
clc
clear
m=mobiledev;
m.Logging=1;
cam=camera(m,'back');
cam.Resolution='640x480';
a=1;
while a==1
img=snapshot(cam,'manual');
imshow(img, []);
drawnow;
%ent=input('Nombre de imagen: ','s');
%ent2=input('Nombre de carpeta: ','s');
%b='\';
%s=strcat(ent2,b);
%mkdir(ent2);
%pause(2)
%imwrite(img,[s,ent,'.jpg']);
%c=strcat(s,ent,'.jpg');
%img2=imread(c);
%imshow(img2);
end
Brayann Alexander Perez Guizar
on 10 Jul 2022
Image Analyst
on 10 Jul 2022
I don't use the mobile version. Call tech support.
Categories
Find more on Image Preview and Device Configuration 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!