How to connect live video camera with gui?

3 views (last 30 days)
rina gracic
rina gracic on 16 Mar 2018
Commented: rina gracic on 22 Mar 2018
I have built a code which opens a folder for searching an existing video, separating frames of that video and then operating the code. How can I connect real-time camera with the code so that it makes it work on live video?
Here is part of my code:
vidFrames = read(readerobj);
% Get the number of frames.
numFrames = get(readerobj, 'NumberOfFrames');
%Create a MATLAB movie struct from the video frames
  1 Comment
rina gracic
rina gracic on 22 Mar 2018
I would like to make the program universal, for any mobile device camera not just mine. Does anyone know how to make this possible? :)

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 16 Mar 2018
Run imaqtool and see what code it makes when you operate the camera. Copy and paste that code into your own program.
  1 Comment
rina gracic
rina gracic on 22 Mar 2018
It helped but still when i run the program the camera turns on but does not emmit the video.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!