real-time acquiring and displaying image via camera

2 visualizaciones (últimos 30 días)
tren
tren el 20 de Dic. de 2022
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?

Respuestas (0)

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by