1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
7
<refentrytitle>unicharset_extractor</refentrytitle>
8
<manvolnum>1</manvolnum>
9
<refmiscinfo class="source"> </refmiscinfo>
10
<refmiscinfo class="manual"> </refmiscinfo>
13
<refname>unicharset_extractor</refname>
14
<refpurpose>extract unicharset from Tesseract boxfiles</refpurpose>
16
<refsynopsisdiv id="_synopsis">
17
<simpara><emphasis role="strong">unicharset_extractor</emphasis> <emphasis>[-D dir]</emphasis> <emphasis>FILE</emphasis>…</simpara>
19
<refsect1 id="_description">
20
<title>DESCRIPTION</title>
21
<simpara>Tesseract needs to know the set of possible characters it can output.
22
To generate the unicharset data file, use the unicharset_extractor
23
program on the same training pages bounding box files as used for
25
<literallayout class="monospaced">unicharset_extractor fontfile_1.box fontfile_2.box ...</literallayout>
26
<simpara>The unicharset will be put into the file <emphasis>dir/unicharset</emphasis>, or simply
27
<emphasis>./unicharset</emphasis> if no output directory is provided.</simpara>
28
<simpara>Tesseract also needs to have access to character properties isalpha,
29
isdigit, isupper, islower, ispunctuation. all of this auxilury data
30
and more is encoded in this file. (See unicharset(5))</simpara>
31
<simpara>If your system supports the wctype functions, these values will be set
32
automatically by unicharset_extractor and there is no need to edit the
33
unicharset file. On some older systems (eg Windows 95), the unicharset
34
file must be edited by hand to add these property description codes.</simpara>
35
<simpara><emphasis role="strong">NOTE</emphasis> The unicharset file must be regenerated whenever inttemp, normproto
36
and pffmtable are generated (i.e. they must all be recreated when the box
37
file is changed) as they have to be in sync. This is made easier than in
38
previous versions by running unicharset_extractor before mftraining and
39
cntraining, and giving the unicharset to mftraining.</simpara>
41
<refsect1 id="_see_also">
42
<title>SEE ALSO</title>
43
<simpara>tesseract(1), unicharset(5)</simpara>
44
<simpara><ulink url="http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3">http://code.google.com/p/tesseract-ocr/wiki/TrainingTesseract3</ulink></simpara>
46
<refsect1 id="_history">
47
<title>HISTORY</title>
48
<simpara>unicharset_extractor first appeared in Tesseract 2.00.</simpara>
50
<refsect1 id="_copying">
51
<title>COPYING</title>
52
<simpara>Copyright (C) 2006, Google Inc.
53
Licensed under the Apache License, Version 2.0</simpara>
55
<refsect1 id="_author">
57
<simpara>The Tesseract OCR engine was written by Ray Smith and his research groups
58
at Hewlett Packard (1985-1995) and Google (2006-present).</simpara>