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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.