How to insert text into image

6 views (last 30 days)
Hi,
Does anyone know how to insert text into the image?
I've been looking for some references and did not find it.
Is there a spesific algorithm to do it?
Thanks in advance!

Accepted Answer

Chandra Kurniawan
Chandra Kurniawan on 13 Jan 2012
What version of Matlab are you using?
Is there computer vision system toolbox?
You can use vision.TextInserter from Matlab
Text = sprintf('Create text inserter object \nwith same property values');
H = vision.TextInserter(Text);
H.Color = [1.0 1.0 0];
H.FontSize = 20;
H.Location = [25 25];
I = im2double((imread('football.jpg')));
InsertedImage = step(H, I);
imshow(InsertedImage);
The result shown below
  1 Comment
Cecilia Adriana
Cecilia Adriana on 13 Jan 2012
I am using Matlab R2011a.
Thank you, sir
It works!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!