필터 지우기
필터 지우기

change the resolution in image acquired by webcam command

조회 수: 2 (최근 30일)
Adithya Chakilam
Adithya Chakilam 2017년 1월 17일
댓글: Walter Roberson 2017년 1월 23일
the command i am using is
vid = webcam;
img= snapshot(vid);
and is there also a way i can crop the input image to specified region of interest?

채택된 답변

sanakhan
sanakhan 2017년 1월 23일
편집: sanakhan 2017년 1월 23일
cam.AvailableResolutions
check your camera available resolutions
Change the resolution.
cam.Resolution = '630x400';
for more help check the following link
https://www.mathworks.com/help/supportpkg/usbwebcams/ug/set-properties-for-webcam-acquisition.html
  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 1월 23일
Correct. On some cameras you can request a resolution, and on some cameras you can request a crop. What you can do with a particular camera can depend on which interface you use for it, which connector and which driver. IP and GigE cameras tend to be more configurable.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

sanakhan
sanakhan 2017년 1월 23일
pls clarify ur question

Community Treasure Hunt

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

Start Hunting!

Translated by