SHAPECLUSTERING(1)

๐ŸŒธ NAME โ€” shapeclustering(1) ๐ŸŒธ

okay so shapeclustering is literally shape clustering training for Tesseract. That's the whole NAME vibe, bestie. ๐Ÿ’–


โœจ SYNOPSIS โœจ

shapeclustering -D output_dir -U unicharset -O mfunicharset -F
font_props -X xheights FILE...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

shapeclustering(1) takes extracted feature .tr files โ€” those are generated by tesseract(1) run in a special mode from box files โ€” and produces a file shapetable plus an enhanced unicharset. The way it eats: feature files in, iconic output files out. โœจ

Vibe check though: this program is still experimental, and it is not required (yet) for training Tesseract. No cap, that's straight from the manual. ๐Ÿ’…

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -U FILE โ€” the unicharset generated by unicharset_extractor(1). That's the one, bestie. ๐Ÿซถ
  • -D dir โ€” directory to write output files to. Yes, dir, the place where the output files go. ๐Ÿ“
  • -F font_properties_file โ€” (Input) font properties file, where each line is of this form, and each field other than the font name is 0 or 1:

'font_name' 'italic' 'bold' 'fixed_pitch' 'serif' 'fraktur'

  • -X xheights_file โ€” (Input) x heights file, each line is of this form, where xheight is calculated as the pixel x height of a character drawn at 32pt on 300 dpi. [ That is, if base x height + ascenders + descenders = 133, how much is x height? ] Like, do the math, bestie. ๐Ÿงฎ

'font_name' 'xheight'

  • -O FILE โ€” the output unicharset that will be given to combine_tessdata(1). Periodt. ๐Ÿ‘‘

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

๐ŸŽ€ COPYING ๐ŸŽ€

Copyright (C) Google, 2011 Licensed under the Apache License, Version 2.0 โ€” yes bestie, that's the legal tea. โš–๏ธ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

The Tesseract OCR engine was written by Ray Smith and his research groups at Hewlett Packard (1985-1995) and Google (2006-2018). Absolute legend behavior. ๐ŸŒˆ


xoxo, bestie โ€” page date 2026-09-28, manual SHAPECLUSTERING(1) ๐Ÿ’–๐ŸŽ€

๐Ÿ“ฆ where this page comes from