Capturing Lossless Images with USB Webcam Package

2 次查看(过去 30 天)
Hi everyone,
I am using Matlab to capture images from a USB camera. I want to save in bitmap to avoid any compression but the images appear to have compression artefacts. Below is a simple version of the routine I am using to capture and save images:
aa=webcam('Camera_name_here');
aa.Resolution='1920x1080';
img=snapshot(aa);
img=imcrop(img,[1219 300 600 200]);
filename='test2.bmp';
imwrite(img,filename);
Might there be any hidden compression in these steps? The file size is large as expected from bitmap images but the image itself is not bitmap quality. Are there any settings that I can change to ensure that there is no compression during the capture? Is using the webcam package functions causing issues? Should I use functions from the Image Acquisition Toolbox? I know webcams do compress images but what I am using is a camera with USB connection, not a simple webcam.
  6 个评论

请先登录,再进行评论。

回答(0 个)

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by