How can I change the color of my alphabets?

조회 수: 2 (최근 30일)
Kuro Hun
Kuro Hun 2021년 6월 14일
답변: Sailesh Kalyanapu 2021년 6월 14일
original=imread('beach.jpg');
width=440:453;
height=228:242;
n=1;
words=input('Please type your wish here =', 's');
while(width<880)
switch words(n)
case 'A'
original(height,width)=A*255;
width=width+14;
imshow(original)
case 'B'
original(height,width)=B*255;
width=width+15;
imshow(original)
  댓글 수: 2
KSSV
KSSV 2021년 6월 14일
What exactly you are trying?
Kuro Hun
Kuro Hun 2021년 6월 14일
i am trying to print out alphabet on an image, but i need to change the color og my font, its currently in blue

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

답변 (1개)

Sailesh Kalyanapu
Sailesh Kalyanapu 2021년 6월 14일
If you have access to the Computer Vision Toolbox, you can use the ‘insertText’ function to insert text in an image or video. Change the ‘TextColor’ name-value pair to change the alphabet colour.
If you do not have access to the toolbox, refer to this for a workaround.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by