Capturing Lossless Images with USB Webcam Package

4 ビュー (過去 30 日間)
Hakan Caldag
Hakan Caldag 2024 年 12 月 13 日
コメント済み: Hakan Caldag 2024 年 12 月 18 日
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 件のコメント
Swastik Sarkar
Swastik Sarkar 2024 年 12 月 18 日
Hakan Caldag
Hakan Caldag 2024 年 12 月 18 日
Thank you @Swastik Sarkar, I will check this.

サインインしてコメントする。

回答 (0 件)

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by