필터 지우기
필터 지우기

How to add and delete text on certain frames in a matlab movie?

조회 수: 2 (최근 30일)
Anand
Anand 2014년 4월 25일
편집: Anand 2014년 4월 25일
Hi all, I have managed to read and display text within a running AVI video file, but now i want to only add text to certain frames...e.g frame 1-20 and 30-40....is there any way i can i can add text from one frame to another instead of it displaying throughout the whole video.
thank you.
Title_={'Smile'};
hText = text(x,y,'string');
imshow(Background);
text(40,100,Title_{1},'Color','r','FontWeight','Bold','FontSize',40);
delete(htext);

답변 (1개)

Walter Roberson
Walter Roberson 2014년 4월 25일
If you have the Computer Vision toolbox then you can use inserttext()
(Note: you might find references to imtext() in postings; those references are either mistakes or obsolete and inserttext() is the correct name at the moment.)
  댓글 수: 1
Anand
Anand 2014년 4월 25일
편집: Anand 2014년 4월 25일
Thank you for the reply, i am already using the text() function to display text in the video which already works, so i dont need to use insertText()....the link you provided doesn't show how i would display text in different frames...im sure its just 1 or 2 lines of code....do you know how i would do this...ive searched for hours on the net and on this this website but cant find a solution.... im sure an expert like yourself would understand this, im a beginner in matlab.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by