How to add text to a video in matlab?
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hi, can someone help me on how to add text to a video that is running on matlab, my teacher told me its very simple and just 1 or 2 lines of code. i think you have to use the insertText function but im not sure how to do it. basically all i want to do is to write some text in certain frames of the video. it would be outputted in the subplot below. can someone please help me on this problem.
subplot(2, 2, 3);
imshow(Background);
title('Detecting Expression...', 'FontSize', fontSize)
thankyou
Respuestas (2)
Image Analyst
el 24 de Abr. de 2014
With text(), the text shows up in the overlay above the image. I believe the insertText function of the Computer Vision System Toolbox "burns it into" the image, though I don't use that function. I use text() to display text over a live video all the time. Not sure what your problem is. imshow() dispalys a still image while preview() shows a live video from a video camera. How are you displaying your video?
2 comentarios
Image Analyst
el 25 de Abr. de 2014
Get the handle to the text when you display it, then delete it when you want it to disappear.
hText = text(x,y,str); % Create it.
delete(htext); % Delete it.
Ver también
Categorías
Más información sobre Computer Vision with Simulink en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!