'From Video Device' Block Error: '...' is not a valid enumeration choice for data type 'VideoFormatMenu'
Mostrar comentarios más antiguos
I created with Matlab 2016a a Simulink model with a 'From Video Device' Block. I installed the OS Generic Video Interface package which allows me to select my webcam as input device. When I change the 'Video format' Block parameter, the following error appears:
'...' is not a valid enumeration choice for data type 'VideoFormatMenu'
It happens independently of the selected format. If I start the simulation, I'll get the error:
Component: Simulink | Category: Block warning
No format is selected or available.
The camera works fine in Matlab with
vidobj = videoinput('winvideo');
snapshot = getsnapshot(vidobj);
1 comentario
Román Cifuentes
el 22 de Sept. de 2016
I'm having exactly the same problem. Did you happen to find any solution?
Respuestas (1)
vic wang
el 29 de Jun. de 2017
1 voto
When the hardware support packages were installed, You should restart your PC. Then the problem will be solved.
Categorías
Más información sobre Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!