Bug#785477: libopencv-highgui2.4: Cannot render UTF-8 text unless we link against Qt

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Thu Jan 7 05:33:08 UTC 2016


Hi,

Thanks for your report.

> libopencv-highgui2.4: Cannot render UTF-8 text unless we link against Qt
>
> I'm writing and packaging an application for Debian, and ran into an issue
> while testing my pre-release.  Non-ASCII text cannot be rendered with the
> stock opencv packages.
>
> I'd like to suggest that we link against the Qt library by enabling the WITH_QT
> flag in debian/rules, which causes the highgui library to provide text
> rendering functions that work on the full UTF-8 character set.
>
> (See patch below.)
>
> OpenCV has two functions to render text,
> [putText](http://docs.opencv.org/modules/core/doc/drawing_functions.html#puttext)
> and
> [addText](http://docs.opencv.org/modules/highgui/doc/qt_new_functions.html?highlight=addtext#addtext).
> putText only supports ASCII text.  addText relies on the Qt libraries, and will
> throw an exception if highgui is compiled without Qt support.
>
> There is some recent work (as of version 2.4.11) to expand on putText's
> character range, but only Cyrillic has been implemented so far.  If
> there is an alternative to addText and Qt integration, please mention
> it here.
>
> Thanks,
> Adam

Latest opencv package can not support Qt. Needed to build image files
(modules/highgui/src/files_Qt/Milky/*)
has been removed in the latest, because these files are non-free.
If you know that the file to be these alternative is in the Qt
library, could you tell me. I'll fix it so that it can be
build by using them.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6



More information about the debian-science-maintainers mailing list