Hi all. I wanna ask how to make interface(fig) with real time camera video... I am first time doing this.... I thing i will be using ActiveX Control>WIA video preview class. Maybe someone have a example how to do his... Then I using this comands: vid = videoinput('winvideo'); figure('Toolbar','none',... 'Menubar', 'none',... 'NumberTitle','Off',... 'Name','My Preview Window'); vidRes = get(vid, 'VideoResolution'); nBands = get(vid, 'NumberOfBands'); hImage = image( zeros(vidRes(2), vidRes(1), nBands) ); preview(vid, hImage);
mat lab make new fig with wideo but for me need to change size, add 2 buttons and another staff. When I wanna make on the new blank of gui not working.... For me need video or example how make fig with real time video from camera....

답변 (1개)

Jacob Mathew
Jacob Mathew 2024년 11월 20일

0 개 추천

Hey Eimantas,
You can use the preview method, which is a part of MATLAB Support package for USB Webcam, to see the live output from the webcam device of your choice passed as a parameter to it. Refer the documentation below for more details:
However, if you want to create a custom UI to display the live output, then the following MATLAB Answer is a good starting point:

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

질문:

2011년 4월 5일

답변:

2024년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by