简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM