real-time acquiring and displaying image via camera

2 views (last 30 days)
I am using a USB camera to acquire and display frames with some basic image processing (displaying a line on top).
when i write
preview(vid)
i can get a video preview of almost 10FPS dispalyed as video.
but when i code like:
loop start
start(vid);
trigger(vid);
f=getdata(vid,1);
%insertshape to add line to image
imshow(f)
loop ends
the dispaly rate is very slow almost 1 frame per 1.6 sec.
How can I code to acquire and display images faster from my cam?

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!