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โ theunicharsetgenerated byunicharset_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 is0or1:
'font_name' 'italic' 'bold' 'fixed_pitch' 'serif' 'fraktur'
-X xheights_fileโ (Input) x heights file, each line is of this form, wherexheightis calculated as the pixel x height of a character drawn at32pton300 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 outputunicharsetthat will be given tocombine_tessdata(1). Periodt. ๐
๐ฅ SEE ALSO ๐ฅ
tesseract(1)cntraining(1)unicharset_extractor(1)combine_tessdata(1)unicharset(5)https://tesseract-ocr.github.io/tessdoc/Training-Tesseract.html
๐ 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
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 ยท Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 ยท Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 ยท Apache-2.0 AND GPL-2.0-or-later
- opensuse-leap 16.0: tesseract-ocr 5.5.3-bp160.2.1 ยท Apache-2.0 AND GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms