UTF-8字符的putText(C ++) [英] putText for UTF-8 characters (C++)
本文介绍了UTF-8字符的putText(C ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用putText OpenCV方法在图像上书写文本.但是它仅适用于ASCII字符.我需要打印诸如ŠŠčČŽž之类的字符.有人可以帮忙吗?
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?
推荐答案
不幸的是,cv::putText()
仅支持ASCII.有一个打开错误报告,要求为此功能提供特殊字符支持,但看来该功能不会很快实现.
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.
这篇关于UTF-8字符的putText(C ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文