Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/tesseract/doc/shapeclustering.1.asc @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 SHAPECLUSTERING(1) | |
| 2 ================== | |
| 3 :doctype: manpage | |
| 4 | |
| 5 NAME | |
| 6 ---- | |
| 7 shapeclustering - shape clustering training for Tesseract | |
| 8 | |
| 9 SYNOPSIS | |
| 10 -------- | |
| 11 shapeclustering -D 'output_dir' | |
| 12 -U 'unicharset' -O 'mfunicharset' | |
| 13 -F 'font_props' -X 'xheights' | |
| 14 'FILE'... | |
| 15 | |
| 16 DESCRIPTION | |
| 17 ----------- | |
| 18 shapeclustering(1) takes extracted feature .tr files (generated by | |
| 19 tesseract(1) run in a special mode from box files) and produces a | |
| 20 file *shapetable* and an enhanced unicharset. This program is still | |
| 21 experimental, and is not required (yet) for training Tesseract. | |
| 22 | |
| 23 OPTIONS | |
| 24 ------- | |
| 25 -U 'FILE':: | |
| 26 The unicharset generated by unicharset_extractor(1). | |
| 27 | |
| 28 -D 'dir':: | |
| 29 Directory to write output files to. | |
| 30 | |
| 31 -F 'font_properties_file':: | |
| 32 (Input) font properties file, where each line is of the following form, where each field other than the font name is 0 or 1: | |
| 33 | |
| 34 'font_name' 'italic' 'bold' 'fixed_pitch' 'serif' 'fraktur' | |
| 35 | |
| 36 -X 'xheights_file':: | |
| 37 (Input) x heights file, each line is of the following 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? ] | |
| 38 | |
| 39 'font_name' 'xheight' | |
| 40 | |
| 41 -O 'FILE':: | |
| 42 The output unicharset that will be given to combine_tessdata(1). | |
| 43 | |
| 44 SEE ALSO | |
| 45 -------- | |
| 46 tesseract(1), cntraining(1), unicharset_extractor(1), combine_tessdata(1), | |
| 47 unicharset(5) | |
| 48 | |
| 49 <https://tesseract-ocr.github.io/tessdoc/Training-Tesseract.html> | |
| 50 | |
| 51 COPYING | |
| 52 ------- | |
| 53 Copyright \(C) Google, 2011 | |
| 54 Licensed under the Apache License, Version 2.0 | |
| 55 | |
| 56 AUTHOR | |
| 57 ------ | |
| 58 The Tesseract OCR engine was written by Ray Smith and his research groups | |
| 59 at Hewlett Packard (1985-1995) and Google (2006-2018). |
