Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello guys

I am working on visual studio 2010 and opencv-2.4.9 and i want to put unicode text on image using puttext function but puttext function not working properly with unicode text(japanease,arabic etc) and dispaly text on image as"??????" but puttext() with english text work properly.

code snippet:

cv::Mat m=img;

cv::putText(m,"名前",cv::Point((m.cols/2,m.rows/2),cv::FONT_ITALIC,.5,cv::Scalar(180,180,180),1,CV_AA); please help me for showing unicode text on image

your help will be appreciated. thanks

What I have tried:

I am working on visual studio 2010 and opencv-2.4.9 and i want to put unicode text on image using puttext function but puttext function not working properly with unicode text(japanease,arabic etc) and dispaly text on image as"??????" but puttext() with english text work properly.

code snippet:

cv::Mat m=img;

cv::putText(m,"名前",cv::Point((m.cols/2,m.rows/2),cv::FONT_ITALIC,.5,cv::Scalar(180,180,180),1,CV_AA); please help me for showing unicode text on image

your help will be appreciated. thanks
Posted
Comments
zulf171983 8-Feb-16 3:34am    
hi
i have used
cv::addText(m,"名前",cv::Point(0,m.rows-10),cv::fontQt ("Times", 30, cv::Scalar (0, 0, 0), CV_FONT_NORMAL));
no debug error in visual studio 2010 but not working throw exeception

1 solution

It looks that puttext is not able to render such characters, see "puttext and unicode text (chinese, japanese, ...)"[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900