addText() without guiMainThread

asked 2014-10-16 09:29:42 -0600

plaxik gravatar image

Hi,

I built opencv with QT support since the character set of putText() is too limited for my needs (need French accents and German umlaute).

When I use AddText() with a fontQT, i get an error, since cvAddText() of window_QT.cpp expects guiMainThread to be set. However, I only do image computations and add text, so I don't want to show the image. Followingly, I do not need a NamedWindow which would set guiMainThread.

Is there a way to use addText() on images without setting guiMainThread aka displaying them?

edit retag flag offensive close merge delete

Comments

2

wait, i hope, you don't expect, it draws into the image ?

it will only draw onto the window, that's all it does !

berak gravatar imageberak ( 2014-10-16 09:33:09 -0600 )edit
1

oehm, jarp, I expect it to draw into the image. Puh, good to know that it is only good for drawing onto the window :-(

Is there no way in opencv to write unicode text into an image? (Like putText() does it but with unicode characters)

plaxik gravatar imageplaxik ( 2014-10-16 10:23:57 -0600 )edit

There is a feature request which is still open for this.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-17 04:42:45 -0600 )edit