#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <map>
#include <random>
#include <string>
#include <utility>
#include <vector>
#include "allheaders.h"
#include "boxchar.h"
#include "commandlineflags.h"
#include "commontraining.h"
#include "degradeimage.h"
#include "errcode.h"
#include "fileio.h"
#include <tesseract/helpers.h>
#include "normstrngs.h"
#include "stringrenderer.h"
#include "tlog.h"
#include "unicharset.h"
#include "util.h"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 719 of file text2image.cpp.
726 backend = getenv(
"PANGOCAIRO_BACKEND");
727 if (backend ==
nullptr) {
728 static char envstring[] =
"PANGOCAIRO_BACKEND=fc";
731 printf(
"Using '%s' as pango cairo backend based on environment "
732 "variable.\n", backend);
734 tesseract::CheckSharedLibraryVersion();
736 if ((strcmp(argv[1],
"-v") == 0) ||
737 (strcmp(argv[1],
"--version") == 0)) {
738 FontUtils::PangoFontTypeInfo();
739 printf(
"Pango version: %s\n", pango_version_string());
◆ kRandomSeed
const int kRandomSeed = 0x18273645 |