Why do I get JPEG library error
이전 댓글 표시
(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?
답변 (1개)
Image Analyst
2022년 7월 9일
0 개 추천
Either save it to a disk that has available disk space, or don't save the image at all.
댓글 수: 4
Brayann Alexander Perez Guizar
2022년 7월 9일
Image Analyst
2022년 7월 9일
편집: Image Analyst
2022년 7월 9일
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
2022년 7월 10일
Image Analyst
2022년 7월 10일
I don't use the mobile version. Call tech support.
카테고리
도움말 센터 및 File Exchange에서 Image Preview and Device Configuration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!