'From Video Device' Block Error: '...' is not a valid enumeration choice for data type 'VideoFormatMenu'
이전 댓글 표시
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
Román Cifuentes
2016년 9월 22일
I'm having exactly the same problem. Did you happen to find any solution?
답변 (1개)
vic wang
2017년 6월 29일
1 개 추천
When the hardware support packages were installed, You should restart your PC. Then the problem will be solved.
카테고리
도움말 센터 및 File Exchange에서 Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!