Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

putText for UTF-8 characters (C++)

I am using putText OpenCV method for writing text on images. But it only works for ASCII characters. I need to print characters such as šŠčČŽž. Can anybody help?

like image 302
TIBOU Avatar asked Jun 26 '13 14:06

TIBOU


1 Answers

Unfortunately, cv::putText() only supports ASCII. There is an open bug report which requests special character support for this function, but it appears that this feature will not be implemented soon.

If you have compiled OpenCV with Qt support, you may be able to use cv::addText() instead.

like image 165
Aurelius Avatar answered Nov 13 '22 22:11

Aurelius