'From Video Device' Block Error: '...' is not a valid enumeration choice for data type 'VideoFormatMenu'
Ältere Kommentare anzeigen
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 Kommentar
Román Cifuentes
am 22 Sep. 2016
I'm having exactly the same problem. Did you happen to find any solution?
Antworten (1)
vic wang
am 29 Jun. 2017
1 Stimme
When the hardware support packages were installed, You should restart your PC. Then the problem will be solved.
Kategorien
Mehr zu Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!