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:
- Acquire and process image in OpenCV (
imencode
); - Convert data to JPEG;
- Load data in a third party library API, draw text using that API;
- Encode back image to JPEG;
- 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.