Effacer les filtres
Effacer les filtres

change the resolution in image acquired by webcam command

2 vues (au cours des 30 derniers jours)
Adithya Chakilam
Adithya Chakilam le 17 Jan 2017
Commenté : Walter Roberson le 23 Jan 2017
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?

Réponse acceptée

sanakhan
sanakhan le 23 Jan 2017
Modifié(e) : sanakhan le 23 Jan 2017
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 commentaire
Walter Roberson
Walter Roberson le 23 Jan 2017
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.

Connectez-vous pour commenter.

Plus de réponses (1)

sanakhan
sanakhan le 23 Jan 2017
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