|
22 | 22 | #include "config_auto.h"
|
23 | 23 | #endif
|
24 | 24 |
|
| 25 | +#include "baseapi.h" |
25 | 26 | #ifdef __linux__
|
26 |
| -#include <signal.h> |
| 27 | +#include <signal.h> // for sigaction, SA_RESETHAND, SIGBUS, SIGFPE |
27 | 28 | #endif
|
28 | 29 |
|
29 | 30 | #if defined(_WIN32)
|
|
34 | 35 | #include <fcntl.h>
|
35 | 36 | #include <io.h>
|
36 | 37 | #else
|
37 |
| -#include <dirent.h> |
| 38 | +#include <dirent.h> // for closedir, opendir, readdir, DIR, dirent |
38 | 39 | #include <libgen.h>
|
39 |
| -#include <cstring> |
40 | 40 | #include <sys/types.h>
|
41 |
| -#include <sys/stat.h> |
| 41 | +#include <sys/stat.h> // for stat, S_IFDIR |
42 | 42 | #include <unistd.h>
|
43 | 43 | #endif // _WIN32
|
44 | 44 |
|
45 |
| -#include <algorithm> |
46 |
| -#include <clocale> |
47 |
| -#include <fstream> |
48 |
| -#include <iostream> |
49 |
| -#include <iterator> |
50 |
| -#include <memory> // std::unique_ptr |
51 |
| -#include <string> |
52 |
| - |
53 |
| -#include "allheaders.h" |
54 |
| - |
55 |
| -#include "baseapi.h" |
56 |
| -#include "blobclass.h" |
57 |
| -#include "resultiterator.h" |
58 |
| -#include "mutableiterator.h" |
59 |
| -#include "thresholder.h" |
60 |
| -#include "tesseractclass.h" |
61 |
| -#include "pageres.h" |
62 |
| -#include "paragraphs.h" |
63 |
| -#include "tessvars.h" |
64 |
| -#include "control.h" |
65 |
| -#include "dict.h" |
66 |
| -#include "pgedit.h" |
67 |
| -#include "paramsd.h" |
68 |
| -#include "output.h" |
69 |
| -#include "globaloc.h" |
70 |
| -#include "globals.h" |
71 |
| -#include "edgblob.h" |
72 |
| -#include "equationdetect.h" |
73 |
| -#include "makerow.h" |
74 |
| -#include "otsuthr.h" |
75 |
| -#include "osdetect.h" |
76 |
| -#include "params.h" |
77 |
| -#include "renderer.h" |
78 |
| -#include "strngs.h" |
79 |
| -#include "openclwrapper.h" |
| 45 | +#include <clocale> // for LC_ALL, LC_CTYPE, LC_NUMERIC |
| 46 | +#include <cmath> // for round, M_PI |
| 47 | +#include <cstdint> // for int32_t |
| 48 | +#include <cstring> // for strcmp, strcpy |
| 49 | +#include <fstream> // for size_t |
| 50 | +#include <iostream> // for std::cin |
| 51 | +#include <memory> // for std::unique_ptr |
| 52 | +#include "allheaders.h" // for pixDestroy, boxCreate, boxaAddBox, box... |
| 53 | +#include "blobclass.h" // for ExtractFontName |
| 54 | +#include "boxword.h" // for BoxWord |
| 55 | +#include "config_auto.h" // for PACKAGE_VERSION |
| 56 | +#include "coutln.h" // for C_OUTLINE_IT, C_OUTLINE_LIST |
| 57 | +#include "dawg_cache.h" // for DawgCache |
| 58 | +#include "dict.h" // for Dict |
| 59 | +#include "edgblob.h" // for extract_edges |
| 60 | +#include "elst.h" // for ELIST_ITERATOR, ELISTIZE, ELISTIZEH |
| 61 | +#include "environ.h" // for l_uint8, FALSE, TRUE |
| 62 | +#include "equationdetect.h" // for EquationDetect |
| 63 | +#include "errcode.h" // for ASSERT_HOST |
| 64 | +#include "globaloc.h" // for SavePixForCrash, signal_exit |
| 65 | +#include "helpers.h" // for IntCastRounded, chomp_string |
| 66 | +#include "host.h" // for BOOL8 |
| 67 | +#include "imageio.h" // for IFF_TIFF_G4, IFF_TIFF, IFF_TIFF_G3 |
| 68 | +#include "intfx.h" // for INT_FX_RESULT_STRUCT |
| 69 | +#include "mutableiterator.h" // for MutableIterator |
| 70 | +#include "normalis.h" // for kBlnBaselineOffset, kBlnXHeight |
| 71 | +#include "ocrclass.h" // for ETEXT_DESC |
| 72 | +#include "openclwrapper.h" // for PERF_COUNT_END, PERF_COUNT_START, PERF... |
| 73 | +#include "osdetect.h" // for OSResults, OSBestResult, OrientationId... |
| 74 | +#include "pageres.h" // for PAGE_RES_IT, WERD_RES, PAGE_RES, CR_DE... |
| 75 | +#include "paragraphs.h" // for DetectParagraphs |
| 76 | +#include "params.h" // for BoolParam, IntParam, DoubleParam, Stri... |
| 77 | +#include "pdblock.h" // for PDBLK |
| 78 | +#include "points.h" // for FCOORD |
| 79 | +#include "polyblk.h" // for POLY_BLOCK |
| 80 | +#include "rect.h" // for TBOX |
| 81 | +#include "renderer.h" // for TessResultRenderer |
| 82 | +#include "resultiterator.h" // for ResultIterator |
| 83 | +#include "stepblob.h" // for C_BLOB_IT, C_BLOB, C_BLOB_LIST |
| 84 | +#include "strngs.h" // for STRING |
| 85 | +#include "tessdatamanager.h" // for TessdataManager, kTrainedDataSuffix |
| 86 | +#include "tesseractclass.h" // for Tesseract |
| 87 | +#include "thresholder.h" // for ImageThresholder |
| 88 | +#include "tprintf.h" // for tprintf |
| 89 | +#include "werd.h" // for WERD, WERD_IT, W_FUZZY_NON, W_FUZZY_SP |
80 | 90 |
|
81 | 91 | BOOL_VAR(stream_filelist, FALSE, "Stream a filelist from stdin");
|
82 | 92 |
|
|
0 commit comments