Skip to content

Commit fcd5f7d

Browse files
committed
textord: Remove unused constants
Signed-off-by: Stefan Weil <[email protected]>
1 parent d40b28f commit fcd5f7d

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

textord/tabfind.cpp

-21
Original file line numberDiff line numberDiff line change
@@ -45,36 +45,15 @@ const int kMinColumnWidth = 200;
4545
const double kMinFractionalLinesInColumn = 0.125;
4646
// Fraction of height used as alignment tolerance for aligned tabs.
4747
const double kAlignedFraction = 0.03125;
48-
// Minimum gutter width in absolute inch (multiplied by resolution)
49-
const double kMinGutterWidthAbsolute = 0.02;
5048
// Maximum gutter width (in absolute inch) that we care about
5149
const double kMaxGutterWidthAbsolute = 2.00;
5250
// Multiplier of gridsize for min gutter width of TT_MAYBE_RAGGED blobs.
5351
const int kRaggedGutterMultiple = 5;
5452
// Min aspect ratio of tall objects to be considered a separator line.
5553
// (These will be ignored in searching the gutter for obstructions.)
5654
const double kLineFragmentAspectRatio = 10.0;
57-
// Multiplier of new y positions in running average for skew estimation.
58-
const double kSmoothFactor = 0.25;
59-
// Min coverage for a good baseline between vectors
60-
const double kMinBaselineCoverage = 0.5;
61-
// Minimum overlap fraction when scanning text lines for column widths.
62-
const double kCharVerticalOverlapFraction = 0.375;
63-
// Maximum horizontal gap allowed when scanning for column widths
64-
const double kMaxHorizontalGap = 3.0;
65-
// Maximum upper quartile error allowed on a baseline fit as a fraction
66-
// of height.
67-
const double kMaxBaselineError = 0.4375;
6855
// Min number of points to accept after evaluation.
6956
const int kMinEvaluatedTabs = 3;
70-
// Minimum aspect ratio of a textline to make a good textline blob with a
71-
// single blob.
72-
const int kMaxTextLineBlobRatio = 5;
73-
// Minimum aspect ratio of a textline to make a good textline blob with
74-
// multiple blobs. Target ratio varies according to number of blobs.
75-
const int kMinTextLineBlobRatio = 3;
76-
// Fraction of box area covered by image to make a blob image.
77-
const double kMinImageArea = 0.5;
7857
// Up to 30 degrees is allowed for rotations of diacritic blobs.
7958
// Keep this value slightly larger than kCosSmallAngle in blobbox.cpp
8059
// so that the assert there never fails.

0 commit comments

Comments
 (0)