Why do I get JPEG library error
1 次查看(过去 30 天)
显示 更早的评论
(Matlab mobile) Here is the full error message:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1059755/image.png)
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?
0 个评论
回答(1 个)
Image Analyst
2022-7-9
Either save it to a disk that has available disk space, or don't save the image at all.
4 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!