1

I am trying to draw a UTF8 text on a cv::Mat. OpenCV does not support UTF8 (somehow cv::freetype::FreeType2 is not included in my OpenCV package), so the idea is to:

  1. Acquire and process image in OpenCV (imencode);
  2. Convert data to JPEG;
  3. Load data in a third party library API, draw text using that API;
  4. Encode back image to JPEG;
  5. Load JPEG image into OpenCV (imdecode)

I am looking for a reasonably small image manipulation library that supports drawing text on JPEG (or PNG) in-memory data, being aware of Unicode BiDi and UTF8.

sorush-r
  • 10,490
  • 17
  • 89
  • 173
  • I don't know about `bidi` but I have printed text on Jpeg using [libgd](https://libgd.github.io/). – Galik Jul 26 '18 at 18:18
  • Perhaps these might help: https://stackoverflow.com/questions/17323096/puttext-for-utf-8-characters-c, https://stackoverflow.com/questions/15519373/opencv-puttext-utf-8-characters – Mick Jul 27 '18 at 12:24

0 Answers0