Nvidia Jetson Nano two Webcams with same name

6 visualizaciones (últimos 30 días)
Matti Kaupenjohann
Matti Kaupenjohann el 10 de Sept. de 2021
Comentada: Walter Roberson el 17 de Mzo. de 2025
I have to Logitech C720 cams which name is not a valid identifier since the cam gets the name from the Card-Type. The method camlist returns both cameras: one on /dev/video0 and the other on /dev/video1. Since the camera method uses the camname for analysing the device index, the sscanf function returns an error because to names are available.
My solution for the Moment is to rewrite the function, but this issues should be fixed in future releases.
  1 comentario
Sai Ram Sristi
Sai Ram Sristi el 20 de En. de 2023
Hi Matti,
The camera function enables the user to create a camera object based on the card-type. To create a camera object for the desired camera, provide the Card-type(Ex '/dev/video0') in place of 'VideoDeviceID' in the below syntax.
camObj = camera(hwObj, cameraName, resolution, 'VideoDevice', '<VideoDeviceID>');

Iniciar sesión para comentar.

Respuestas (1)

Ramakrishna Mandalapu
Ramakrishna Mandalapu el 17 de Mzo. de 2025
Hi Matti,
The camera function enables the user to create a camera object based on the card-type. To create a camera object for the desired camera, provide the Card-type(Ex '/dev/video0') in place of 'VideoDeviceID' in the below syntax.
camObj = camera(hwObj, cameraName, resolution, 'VideoDevice', '<VideoDeviceID>');
  1 comentario
Walter Roberson
Walter Roberson el 17 de Mzo. de 2025
This duplicates what @Sai Ram Sristi already posted.
If the point was to move Sai's posting to be an Answer, then the moderators have tools to do that.

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by