Generate box file for JPN_VERT?

130 views
Skip to first unread message

Seokbong Choi

unread,
Oct 7, 2018, 12:56:09 PM10/7/18
to tesseract-ocr
Hello,

I am a Japanese comic book fan. Recently, I come to learn about tesseract, which is awesome.
There are many challenges around Japanese - it has millions characters, so that millions of iteration are required to train.

Another challenge is vertical text. Most of comic books use vertical alignment for the text.
I am trying to train tesseract based upon JPN_VERT (I already successfully trained JPN).
However, I am not able to find a way to generate "box" file, which is aligned vertically to train JPN_VERT further.
Any idea?

Thanks in advance.

Greg.

Seokbong Choi

unread,
Oct 11, 2018, 7:55:41 PM10/11/18
to tesser...@googlegroups.com
I found myself.
Please see language-specific.sh

VERTICAL_FONTS(= \
    "TAKAoExGothic" \ #for jpn
    "TAKAoExMincho" \ #for jpn
    "WHAT_EVER_FONT_YOU_WANT_TO_ADD"
)

when you execute tesstrain.sh \
  --font_dir /usr/share/font
  --lang jpn
...
  --fontlist "WHAT_EVER_FONT_YOU_WANT_TO_ADD"

You will see the box file and tiff file where characters are vertically aligned.

Thanks!


--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/c82e323c-17b3-4b1e-a8a9-074fadb88528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Soumik Ranjan Dasgupta

unread,
Oct 12, 2018, 3:23:57 AM10/12/18
to tesser...@googlegroups.com
Thank you for sharing :)


For more options, visit https://groups.google.com/d/optout.


--
Regards,
Soumik Ranjan Dasgupta
Reply all
Reply to author
Forward
0 new messages