forked from gali8/Tesseract-OCR-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathG8TesseractParameters.h
2406 lines (1925 loc) · 66 KB
/
G8TesseractParameters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// G8TesseractParameters.h
// Tesseract OCR iOS
// This code is auto-generated from Tesseract headers.
//
// Created by Nikolay Volosatov on 17/12/14.
// Copyright (c) 2014 Daniele Galiotto - www.g8production.com.
// All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef Tesseract_OCR_iOS_G8TesseractParameters_h
#define Tesseract_OCR_iOS_G8TesseractParameters_h
///Expect spaces bigger than this
///@param Type double
///@param Default 0.33
extern NSString *const kG8ParamTospTableXhtSpRatio;
///Generate training data from boxed chars
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditTrainFromBoxes;
///* blob height for initial linesize
///@param Type double
///@param Default 1.25
extern NSString *const kG8ParamTextordMinLinesize;
///Fract of xheight for wide
///@param Type double
///@param Default 0.52
extern NSString *const kG8ParamTospWideFraction;
///Use spline baseline
///@param Type BOOL
///@param Default TRUE
extern NSString *const kG8ParamTextordFixXheightBug;
///Good blob limit
///@param Type double
///@param Default -2.25
extern NSString *const kG8ParamTesseditCertaintyThreshold;
///Penalty increment
///@param Type double
///@param Default 0.01
extern NSString *const kG8ParamLanguageModelPenaltyIncrement;
///Learn both character fragments (as is done in the special low exposure mode) as well as unfragmented characters.
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamApplyboxLearnCharsAndCharFragsMode;
///Generate more boxes from boxed chars
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditMakeBoxesFromBoxes;
///How wide fuzzies need context
///@param Type double
///@param Default 0.75
extern NSString *const kG8ParamTospPassWideFuzzSpToContext;
///Use pre-adapted classifier templates
///@param Type BOOL
///@param Default 0
extern NSString *const kG8ParamClassifyUsePreAdaptedTemplates;
///Split overlap adjustment
///@param Type double
///@param Default 0.9
extern NSString *const kG8ParamChopOverlapKnob;
///Extend permuter check
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamRejAlphasInNumberPerm;
///Baseline Normalized Matching
///@param Type BOOL
///@param Default 0
extern NSString *const kG8ParamTessBnMatching;
///Dont bother with word plausibility
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditUnrejAnyWd;
///Dump word pass/fail chk
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamDebugAcceptableWds;
///Debug data
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamTospDebugLevel;
///Use information from fragments to guide chopping process
///@param Type BOOL
///@param Default FALSE
extern NSString *const kG8ParamFragmentsGuideChopper;
///Factor to expand rows by in expand_rows
///@param Type double
///@param Default 1.0
extern NSString *const kG8ParamTextordExpansionFactor;
///Write repetition char code
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditWriteRepCodes;
///Print cube debug info.
///@param Type INT
///@param Default 1
extern NSString *const kG8ParamCubeDebugLevel;
///Load unambiguous word dawg.
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamLoadUnambigDawg;
///Take segmentation and labeling from box file
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditResegmentFromBoxes;
///Min # of permanent classes
///@param Type INT
///@param Default 1
extern NSString *const kG8ParamMatcherPermanentClassesMin;
///POTENTIAL crunch rating lt this
///@param Type double
///@param Default 60
extern NSString *const kG8ParamCrunchDelRating;
///Default flip
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTospFlipFuzzKnToSp;
///Score multiplier for word matches which have good case and are frequent in the given language (lower is better).
///@param Type double
///@param Default 1.0
extern NSString *const kG8ParamSegmentPenaltyDictFrequentWord;
///Factor to bring log-probs into the same range as ratings when multiplied by outline length
///@param Type double
///@param Default 16.0
extern NSString *const kG8ParamLanguageModelNgramRatingFactor;
///rep gap multiplier for space
///@param Type double
///@param Default 1.6
extern NSString *const kG8ParamTospRepSpace;
///or should we use mean
///@param Type INT
///@param Default 3
extern NSString *const kG8ParamTospEnoughSpaceSamplesForMedian;
///Min Number of Points on Outline
///@param Type INT
///@param Default 6
extern NSString *const kG8ParamChopMinOutlinePoints;
///Max large speckle size
///@param Type double
///@param Default 0.30
extern NSString *const kG8ParamSpeckleLargeMaxSize;
///Which OCR engine(s) to run (Tesseract, Cube, both). Defaults to loading and running only Tesseract (no Cube, no combiner). (Values from OcrEngineMode enum in tesseractclass.h)
///@param Type INT
///@param Default tesseract::OEM_TESSERACT_ONLY
extern NSString *const kG8ParamTesseditOcrEngineMode;
///Output text with boxes
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditCreateBoxfile;
///How many times worse certainty does a superscript position glyph need to be for us to try classifying it as a char with a different baseline?
///@param Type double
///@param Default 2.0
extern NSString *const kG8ParamSuperscriptWorseCertainty;
///Maximum size of viterbi list.
///@param Type INT
///@param Default 10
extern NSString *const kG8ParamMaxViterbiListSize;
///Good split limit
///@param Type double
///@param Default 50.0
extern NSString *const kG8ParamChopGoodSplit;
///Individual rejection control
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamRejUseTessBlanks;
///Blacklist of chars not to recognize
///@param Type STRING
///@param Default ""
extern NSString *const kG8ParamTesseditCharBlacklist;
///Min blobs before gradient counted
///@param Type INT
///@param Default 4
extern NSString *const kG8ParamTextordMinBlobsInRow;
///coord of test pt
///@param Type INT
///@param Default -MAX_INT32
extern NSString *const kG8ParamTextordTestY;
///coord of test pt
///@param Type INT
///@param Default -MAX_INT32
extern NSString *const kG8ParamTextordTestX;
///A list of user-provided patterns.
///@param Type STRING
///@param Default ""
extern NSString *const kG8ParamUserPatternsSuffix;
///Use within xht gap for wd breaks
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTospUseXhtGaps;
///Conversion of word/line box file to char box file
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditResegmentFromLineBoxes;
///Mark v.bad words for tilde crunch
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamUnlvTildeCrunching;
///SegSearch debug level
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamSegsearchDebugLevel;
///Load dawg with number patterns.
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamLoadNumberDawg;
///Worst certainty for words that can be inserted into the document dictionary
///@param Type double
///@param Default -2.25
extern NSString *const kG8ParamDocDictCertaintyThreshold;
///Min blobs in each spline segment
///@param Type INT
///@param Default 8
extern NSString *const kG8ParamTextordSplineMinblobs;
///POTENTIAL crunch rating lt this
///@param Type double
///@param Default 40
extern NSString *const kG8ParamCrunchPotPoorRate;
///Test xheight algorithms
///@param Type BOOL
///@param Default FALSE
extern NSString *const kG8ParamTextordDebugXheights;
///Suspect marker level
///@param Type INT
///@param Default 99
extern NSString *const kG8ParamSuspectLevel;
///crunch garbage rating lt this
///@param Type double
///@param Default 60
extern NSString *const kG8ParamCrunchPoorGarbageRate;
///Display unsorted blobs
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTextordShowBlobs;
///Accepted variation
///@param Type double
///@param Default 0.1
extern NSString *const kG8ParamTextordXheightErrorMargin;
///Save adapted templates to a file
///@param Type BOOL
///@param Default 0
extern NSString *const kG8ParamClassifySaveAdaptedTemplates;
///Allow NN to unrej
///@param Type STRING
///@param Default "-?*\075"
extern NSString *const kG8ParamOkRepeatedChNonAlphanumWds;
///Maximum number of prunable (those for which PrunablePath() is true) entries in each viterbi list recorded in BLOB_CHOICEs
///@param Type INT
///@param Default 10
extern NSString *const kG8ParamLanguageModelViterbiListMaxNumPrunable;
///Dont crunch words with long lower case strings
///@param Type INT
///@param Default 4
extern NSString *const kG8ParamCrunchLeaveUcStrings;
///Strength of the character ngram model relative to the character classifier
///@param Type double
///@param Default 0.03
extern NSString *const kG8ParamLanguageModelNgramScaleFactor;
///xh fract width error for norm blobs
///@param Type double
///@param Default 0.4
extern NSString *const kG8ParamTextordNoiseSxfract;
///Max number of seams in seam_pile
///@param Type INT
///@param Default 150
extern NSString *const kG8ParamChopSeamPileSize;
///Perform training for ambiguities
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditAmbigsTraining;
///Block stats to use fixed pitch rows?
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTospOnlyUsePropRows;
///Print paragraph debug info.
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamParagraphDebugLevel;
///good_quality_doc lte outline error limit
///@param Type double
///@param Default 1.0
extern NSString *const kG8ParamQualityOutlinePc;
///Debug level for TessdataManager functions.
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamTessdataManagerDebugLevel;
///Print blamer debug messages
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamWordrecDebugBlamer;
///Rejection algorithm
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamTesseditRejectMode;
///crunch rating lt this
///@param Type double
///@param Default 80.0
extern NSString *const kG8ParamCrunchTerribleRating;
///Certainty threshold for non-dict words
///@param Type double
///@param Default -2.50
extern NSString *const kG8ParamStopperNondictCertaintyBase;
///Default score multiplier for word matches, which may have case issues (lower is better).
///@param Type double
///@param Default 1.3125
extern NSString *const kG8ParamSegmentPenaltyDictCaseBad;
///Apply row rejection to good docs
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTesseditRowRejGoodDocs;
///Display blob bounds after pre-ass
///@param Type BOOL
///@param Default FALSE
extern NSString *const kG8ParamTextordShowFinalBlobs;
///Average classifier score of a non-matching unichar
///@param Type double
///@param Default -40.0
extern NSString *const kG8ParamLanguageModelNgramNonmatchScore;
///Language model debug level
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamLanguageModelDebugLevel;
///good_quality_doc gte good char limit
///@param Type double
///@param Default 1.1
extern NSString *const kG8ParamQualityRowrejPc;
///Maximum number of pain point classifications per word.
///@param Type INT
///@param Default 10
extern NSString *const kG8ParamSegsearchMaxFutileClassifications;
///Call Tess to learn blobs
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditTrainingTess;
///Del if word gt xht x this below bl
///@param Type double
///@param Default 0.5
extern NSString *const kG8ParamCrunchDelLowWord;
///Penalty for inconsistent script
///@param Type double
///@param Default 0.5
extern NSString *const kG8ParamLanguageModelPenaltyScript;
///Exclude fragments that do not match any whole character with at least this certainty
///@param Type double
///@param Default -3.0
extern NSString *const kG8ParamClassifyCharacterFragmentsGarbageCertaintyThreshold;
///Class Pruner CutoffStrength:
///@param Type INT
///@param Default 7
extern NSString *const kG8ParamClassifyCpCutoffStrength;
///Only rej partially rejected words in block rejection
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTesseditPreserveBlkRejPerfectWds;
///Aspect ratio dot/hyphen test
///@param Type double
///@param Default 1.8
extern NSString *const kG8ParamTesseditUpperFlipHyphen;
///OK split limit
///@param Type double
///@param Default 100.0
extern NSString *const kG8ParamChopOkSplit;
///For smooth factor
///@param Type INT
///@param Default 4
extern NSString *const kG8ParamTextordSkewsmoothOffset;
///Score penalty (0.1 = 10%) added if an xheight is inconsistent.
///@param Type double
///@param Default 0.25
extern NSString *const kG8ParamXheightPenaltyInconsistent;
///Chop debug
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamChopDebug;
///Reject noise-like words
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTextordNoiseRejwords;
///Debug character fragments
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamFragmentsDebug;
///Dot to norm ratio for deletion
///@param Type double
///@param Default 6.0
extern NSString *const kG8ParamTextordNoiseRowratio;
///X / Y length weight
///@param Type INT
///@param Default 3
extern NSString *const kG8ParamChopXYWeight;
///Max allowed deviation of blob top outside of font data
///@param Type INT
///@param Default 8
extern NSString *const kG8ParamXHtAcceptanceTolerance;
///Maximum number of different character choices to consider during permutation. This limit is especially useful when user patterns are specified, since overly generic patterns can result in dawg search exploring an overly large number of options.
///@param Type INT
///@param Default 10000
extern NSString *const kG8ParamMaxPermuterAttempts;
///Use sigmoidal score for certainty
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamLanguageModelUseSigmoidalCertainty;
///Force straight baselines
///@param Type BOOL
///@param Default FALSE
extern NSString *const kG8ParamTextordStraightBaselines;
///Reestimate debug
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamDebugXHtLevel;
///Dont pot crunch sensible strings
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamCrunchLeaveAcceptStrings;
///Generate and print debug information for adaption
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditAdaptionDebug;
///Output data to debug file
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditDebugQualityMetrics;
///Only stat OBVIOUS spaces
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTospBlockUseCertSpaces;
///Only reject tess failures
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditMinimalRejection;
///Del if word ht lt xht x this
///@param Type double
///@param Default 0.7
extern NSString *const kG8ParamCrunchDelMinHt;
///gap ratio to flip sp->kern
///@param Type double
///@param Default 0.83
extern NSString *const kG8ParamTospGapFactor;
///Prevent multiple baselines
///@param Type BOOL
///@param Default TRUE
extern NSString *const kG8ParamTextordFixMakerowBug;
///Only run OCR for words that had truth recorded in BlamerBundle
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamWordrecSkipNoTruthWords;
///Height fraction to discard outlines as speckle noise
///@param Type double
///@param Default 1.0/64
extern NSString *const kG8ParamTextordNoiseHfract;
///xh fract error for norm blobs
///@param Type double
///@param Default 0.2
extern NSString *const kG8ParamTextordNoiseSyfract;
///Penalty for inconsistent spacing
///@param Type double
///@param Default 0.05
extern NSString *const kG8ParamLanguageModelPenaltySpacing;
///Debug level for sub & superscript fixer
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamSuperscriptDebug;
///Don't output block information
///@param Type BOOL
///@param Default FALSE
extern NSString *const kG8ParamWordrecNoBlock;
///Lag for skew on row accumulation
///@param Type double
///@param Default 0.02
extern NSString *const kG8ParamTextordSkewLag;
///Vertical creep
///@param Type BOOL
///@param Default 0
extern NSString *const kG8ParamChopVerticalCreep;
///Min suspect level for rejecting spaces
///@param Type INT
///@param Default 100
extern NSString *const kG8ParamSuspectSpaceLevel;
///Min char x-norm scale ...
///@param Type double
///@param Default 0.0
extern NSString *const kG8ParamClassifyMinNormScaleX;
///Write .pdf output file
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditCreatePdf;
///Penalty for inconsistent font
///@param Type double
///@param Default 0.00
extern NSString *const kG8ParamLanguageModelPenaltyFont;
///Page number to apply boxes from
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamApplyboxPage;
///Classify debug level
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamClassifyDebugLevel;
///Use only the first UTF8 step of the given string when computing log probabilities.
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamUseOnlyFirstUft8Step;
///rej good doc wd if more than this fraction rejected
///@param Type double
///@param Default 1.1
extern NSString *const kG8ParamTesseditGoodDocStillRowrejWd;
///Use DOC dawg in 11l conf. detector
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamRejTrustDocDawg;
///Only stat OBVIOUS spaces
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamTospRowUseCertSpaces1;
///No.samples reqd to reestimate for row
///@param Type INT
///@param Default 10
extern NSString *const kG8ParamTospRedoKernLimit;
///Del if word ht gt xht x this
///@param Type double
///@param Default 3.0
extern NSString *const kG8ParamCrunchDelMaxHt;
///Veto ratio between classifier ratings
///@param Type double
///@param Default 1.5
extern NSString *const kG8ParamClassifyMaxRatingRatio;
///Min cap/xheight
///@param Type double
///@param Default 1.25
extern NSString *const kG8ParamTextordAscxRatioMin;
///Output char for unidentified blobs
///@param Type STRING
///@param Default "|"
extern NSString *const kG8ParamUnrecognisedChar;
///Del if word width lt xht x this
///@param Type double
///@param Default 3.0
extern NSString *const kG8ParamCrunchDelMinWidth;
///Min difference of kn & sp in table
///@param Type double
///@param Default 2.25
extern NSString *const kG8ParamTospTableKnSpRatio;
///Min pile height to make ascheight
///@param Type double
///@param Default 0.08
extern NSString *const kG8ParamTextordAscheightModeFraction;
///A superscript scaled down more than this is unbelievably small. For example, 0.3 means we expect the font size to be no smaller than 30% of the text line font size.
///@param Type double
///@param Default 0.4
extern NSString *const kG8ParamSuperscriptScaledownRatio;
///wide if w/h less than this
///@param Type double
///@param Default 0.0
extern NSString *const kG8ParamTospWideAspectRatio;
///Dont trust spaces less than this time kn
///@param Type double
///@param Default 1.5
extern NSString *const kG8ParamTospMinSaneKnSp;
///Fract of xheight for fuzz sp
///@param Type double
///@param Default 0.6
extern NSString *const kG8ParamTospFuzzySpaceFactor;
///Scale factor for features not used
///@param Type double
///@param Default 0.00390625
extern NSString *const kG8ParamTesseditClassMissScale;
///POTENTIAL crunch cert lt this
///@param Type double
///@param Default -10.0
extern NSString *const kG8ParamCrunchDelCert;
///Lengths of unichars in word_to_debug
///@param Type STRING
///@param Default ""
extern NSString *const kG8ParamWordToDebugLengths;
///Min pile height to make descheight
///@param Type double
///@param Default 0.08
extern NSString *const kG8ParamTextordDescheightModeFraction;
///Capture the image from the IPE
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditWriteImages;
///Dont touch bad rating limit
///@param Type double
///@param Default 999.9
extern NSString *const kG8ParamSuspectRatingPerCh;
///Run in parallel where possible
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamTesseditParallelize;
///Certainty to add for each dict char above small word size.
///@param Type double
///@param Default -0.50
extern NSString *const kG8ParamStopperCertaintyPerChar;
///Test for point
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTestPt;
///Words are delimited by space
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamLanguageModelNgramSpaceDelimitedLanguage;
///For adj length in rating per ch
///@param Type INT
///@param Default 10
extern NSString *const kG8ParamCrunchRatingMax;
///Penalty for inconsistent case
///@param Type double
///@param Default 0.1
extern NSString *const kG8ParamLanguageModelPenaltyCase;
///Fract of kerns reqd for isolated row stats
///@param Type double
///@param Default 0.65
extern NSString *const kG8ParamTospEnoughSmallGaps;
///Accept good rating limit
///@param Type double
///@param Default -999.9
extern NSString *const kG8ParamSuspectAcceptRating;
///Veto difference between classifier certainties
///@param Type double
///@param Default 5.5
extern NSString *const kG8ParamClassifyMaxCertaintyMargin;
///Class Pruner Multiplier 0-255:
///@param Type INT
///@param Default 15
extern NSString *const kG8ParamClassifyClassPrunerMultiplier;
///Individual rejection control
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamRejUseGoodPerm;
///Dont adapt to i/I at beginning of word
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamIl1AdaptionTest;
///Min change in xht before actually trying it
///@param Type INT
///@param Default 8
extern NSString *const kG8ParamXHtMinChange;
///POTENTIAL crunch garbage
///@param Type BOOL
///@param Default true
extern NSString *const kG8ParamCrunchPotGarbage;
///Max words to keep in list
///@param Type INT
///@param Default 10
extern NSString *const kG8ParamTesseditTruncateWordchoiceLog;
///Enable adaptive classifier
///@param Type BOOL
///@param Default 1
extern NSString *const kG8ParamClassifyEnableAdaptiveMatcher;
///Write .html hOCR output file
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditCreateHocr;
///Certainty scaling factor
///@param Type double
///@param Default 20.0
extern NSString *const kG8ParamCertaintyScale;
///Size of dict word to be treated as non-dict word
///@param Type INT
///@param Default 2
extern NSString *const kG8ParamStopperSmallwordSize;
///Max number of broken pieces to associate
///@param Type INT
///@param Default 4
extern NSString *const kG8ParamWordrecMaxJoinChunks;
///Dot to norm ratio for deletion
///@param Type double
///@param Default 2.0
extern NSString *const kG8ParamTextordNoiseNormratio;
///Split length adjustment
///@param Type double
///@param Default 0.5
extern NSString *const kG8ParamChopSplitDistKnob;
///Debug level for hyphenated words.
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamHyphenDebugLevel;
///Write .unlv output file
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditWriteUnlv;
///good_quality_doc gte good blobs limit
///@param Type double
///@param Default 0.0
extern NSString *const kG8ParamQualityBlobPc;
///super norm blobs to save row
///@param Type INT
///@param Default 1
extern NSString *const kG8ParamTextordNoiseSncount;
///Fract of xheight for fuzz sp
///@param Type double
///@param Default 0.5
extern NSString *const kG8ParamTospFuzzySpaceFactor1;
///Fract of xheight for fuzz sp
///@param Type double
///@param Default 0.72
extern NSString *const kG8ParamTospFuzzySpaceFactor2;
///Run interactively?
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamInteractiveDisplayMode;
///Fraction of size for maxima
///@param Type INT
///@param Default 10
extern NSString *const kG8ParamTextordNoiseSizefraction;
///Write block separators in output
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditWriteBlockSeparators;
///Adaptation decision algorithm for tess
///@param Type INT
///@param Default 3
extern NSString *const kG8ParamTesseditTestAdaptionMode;
///Allow feature extractors to see the original outline
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamPolyAllowDetailedFx;
///Space stats use prechopping?
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTospUsePreChopping;
///narrow if w/h less than this
///@param Type double
///@param Default 0.48
extern NSString *const kG8ParamTospNarrowAspectRatio;
///Display page correlated rows
///@param Type BOOL
///@param Default FALSE
extern NSString *const kG8ParamTextordShowParallelRows;
///Percentile for small blobs
///@param Type double
///@param Default 20
extern NSString *const kG8ParamTextordBlobSizeSmallile;
///As it says
///@param Type INT
///@param Default 0
extern NSString *const kG8ParamCrunchDebug;
///Enable match debugger
///@param Type BOOL
///@param Default 0
extern NSString *const kG8ParamClassifyEnableAdaptiveDebugger;
///Crunch words with long repetitions
///@param Type INT
///@param Default 3
extern NSString *const kG8ParamCrunchLongRepetitions;
///Penalty for inconsistent character type
///@param Type double
///@param Default 0.3
extern NSString *const kG8ParamLanguageModelPenaltyChartype;
///Perfect Match (0-1)
///@param Type double
///@param Default 0.02
extern NSString *const kG8ParamMatcherPerfectThreshold;
///Penalty for words not in the frequent word dictionary
///@param Type double
///@param Default 0.1
extern NSString *const kG8ParamLanguageModelPenaltyNonFreqDictWord;
///Vigorously remove noise
///@param Type BOOL
///@param Default FALSE
extern NSString *const kG8ParamTextordHeavyNr;
///how far between kern and space?
///@param Type double
///@param Default 0
extern NSString *const kG8ParamTospThresholdBias2;
///how far between kern and space?
///@param Type double
///@param Default 0
extern NSString *const kG8ParamTospThresholdBias1;
///Force parallel baselines
///@param Type BOOL
///@param Default TRUE
extern NSString *const kG8ParamTextordParallelBaselines;
///%rej allowed before rej whole row
///@param Type double
///@param Default 40.00
extern NSString *const kG8ParamTesseditRejectRowPercent;
///Threshold for good features during adaptive 0-255
///@param Type INT
///@param Default 230
extern NSString *const kG8ParamClassifyAdaptFeatureThreshold;
///Width change adjustment
///@param Type double
///@param Default 5.0
extern NSString *const kG8ParamChopWidthChangeKnob;
///Dont reject ANYTHING AT ALL
///@param Type BOOL
///@param Default false
extern NSString *const kG8ParamTesseditZeroKelvinRejection;
///Pixel size of noise
///@param Type INT
///@param Default 7
extern NSString *const kG8ParamTextordMaxNoiseSize;
///Dont autoflip kn to sp when large separation
///@param Type double
///@param Default 0.0
extern NSString *const kG8ParamTospFlipCaution;
///xcoord
///@param Type double
///@param Default 99999.99
extern NSString *const kG8ParamTestPtX;