Tesseract  3.02
tesseract-ocr/textord/strokewidth.cpp File Reference
#include "strokewidth.h"
#include <math.h>
#include "blobbox.h"
#include "colpartition.h"
#include "colpartitiongrid.h"
#include "imagefind.h"
#include "linlsq.h"
#include "statistc.h"
#include "tabfind.h"
#include "textlineprojection.h"
#include "tordmain.h"

Go to the source code of this file.

Namespaces

namespace  tesseract

Variables

int tesseract::textord_tabfind_show_strokewidths = 0
bool tesseract::textord_tabfind_only_strokewidths = false
bool tesseract::textord_tabfind_vertical_text = true
bool tesseract::textord_tabfind_force_vertical_text = false
bool tesseract::textord_tabfind_vertical_horizontal_mix = true
double tesseract::textord_tabfind_vertical_text_ratio = 0.5
const double tesseract::kStrokeWidthTolerance = 1.5
const double tesseract::kStrokeWidthFractionCJK = 0.25
const double tesseract::kStrokeWidthCJK = 2.0
const int tesseract::kCJKRadius = 2
const double tesseract::kCJKBrokenDistanceFraction = 0.25
const int tesseract::kCJKMaxComponents = 8
const double tesseract::kCJKAspectRatio = 1.25
const double tesseract::kCJKAspectRatioIncrease = 1.0625
const int tesseract::kMaxCJKSizeRatio = 5
const double tesseract::kBrokenCJKIterationFraction = 0.125
const double tesseract::kDiacriticXPadRatio = 7.0
const double tesseract::kDiacriticYPadRatio = 1.75
const double tesseract::kMinDiacriticSizeRatio = 1.0625
const double tesseract::kMaxDiacriticDistanceRatio = 1.25
const double tesseract::kMaxDiacriticGapToBaseCharHeight = 1.0
const int tesseract::kSearchRadius = 2
const int tesseract::kLineTrapLongest = 4
const int tesseract::kLineTrapShortest = 2
const int tesseract::kMostlyOneDirRatio = 3
const double tesseract::kLineResidueAspectRatio = 8.0
const int tesseract::kLineResiduePadRatio = 3
const double tesseract::kLineResidueSizeRatio = 1.75
const float tesseract::kSizeRatioToReject = 2.0
const int tesseract::kMaxLargeOverlaps = 3
const double tesseract::kNeighbourSearchFactor = 2.5