matlab code for webcam ??

2 views (last 30 days)
scorpion
scorpion on 6 Oct 2014
Answered: Image Analyst on 6 Oct 2014
the below 3line code is used to open webcam
% Display webcam
vid = videoinput('winvideo',1,'YUY2_640x480');
start(vid);
preview(vid);
i want to convert this m-file to .exe, i used deploytool in matlab to build exe but it is taking more time no result

Answers (1)

Image Analyst
Image Analyst on 6 Oct 2014
You paid a lot for the compiler so take advantage of the tech support you get for that. All I can tell you is that I have compiled programs using video cameras and they work fine. I'm not sure why yours hangs up on compilation. My guess is that you have not created an axes with an image it in yet to connect to your video stream.

Community Treasure Hunt

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

Start Hunting!