Matlab return usb webcam focus values not consistency

3 visualizaciones (últimos 30 días)
Papaya
Papaya el 13 de Jun. de 2021
Comentada: Walter Roberson el 13 de Jun. de 2021
Hi, I am using the webcam C930e.
I can return the value of the focus property using the following three lines:
cam = webcam(id);
cam.FocusMode = 'auto';
af=cam.Focus.
However, for the same controlled environment the webcam is viewing, in some occassion the returned af=0, and in most occassion af=30. I wish to find a way to troubleshoot and understand this changes of the af value. Please explain what does the af=0 or other value means. Does af=0 means the webcam is not in autofocus more or ? and if there is a way I can troubleshoot why occassional af value changes, how do I get around not having the af to change for the same environment that the webcam is viewing? Thanks.
  2 comentarios
Walter Roberson
Walter Roberson el 13 de Jun. de 2021
I am not finding much about the C930e. I am finding a number of YouTube about working with autofocus on the C920, with people taking the camera apart or using external lens on it.
FocusMode does not show up for my C920 on the Mac; I will experiment to see if it shows up on Windows.
Walter Roberson
Walter Roberson el 13 de Jun. de 2021
I was able to set FocusMode under windows. However, I was running MATLAB in a Virtual Machine hosted by my Mac, and under that chain of emulations, it was not able to access the frame buffer of the USB webcam.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by