![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168048/image.jpeg)
How to insert text into image
6 ビュー (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
採用された回答
Chandra Kurniawan
2012 年 1 月 13 日
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168048/image.jpeg)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Language Support についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!