Frage

I'm Working On Optical Character Recognition.In our work we need automatically generate some rendered word image and we need each characters location(boundary) in rendered word image. this meta data about rendered image is called ground truth. How can I do that?

War es hilfreich?

Lösung

I found a rendering c api called Pango wich has a function named pango_layout_Iter_get_char_extent() that can be used for that.

https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-iter-get-char-extents

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top