tesseract  5.0.0-alpha-619-ge9db
strokewidth.cpp File Reference
#include "strokewidth.h"
#include <algorithm>
#include <cmath>
#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

 tesseract
 

Variables

const double tesseract::kStrokeWidthFractionTolerance = 0.125
 
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::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 double tesseract::kNeighbourSearchFactor = 2.5
 
const double tesseract::kNoiseOverlapGrowthFactor = 4.0
 
const double tesseract::kNoiseOverlapAreaFactor = 1.0 / 512