я запускаю этот код в MATLAB, но он возвращает Cyan кадрgetsnapshot возвращает экран голубого цвета
obj = videoinput('winvideo', 1);
% Select the source to use for acquisition.
set(obj, 'SelectedSourceName', 'input1')
% View the properties for the selected video source object.
src_obj = getselectedsource(obj);
get(src_obj)
% Acquire and display a single image frame.
frame = getsnapshot(obj);
image(frame);
% Remove video input object from memory.
delete(obj);
Но просмотр видео работает хорошо.
'ans = uint8 ans = 136 ans = 18' – Maysam