mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-20 15:59:11 +08:00
Move declaration of ThresholdMethod from public API to thresholder.h
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
97cd07f2a0
commit
c0b529f2e1
@ -278,13 +278,6 @@ enum OcrEngineMode {
|
||||
OEM_COUNT // Number of OEMs
|
||||
};
|
||||
|
||||
enum class ThresholdMethod {
|
||||
Otsu, // Tesseract's legacy Otsu
|
||||
LeptonicaOtsu, // Leptonica's Otsu
|
||||
Sauvola, // Leptonica's Sauvola
|
||||
Max, // Number of Thresholding methods
|
||||
};
|
||||
|
||||
} // namespace tesseract.
|
||||
|
||||
#endif // TESSERACT_CCSTRUCT_PUBLICTYPES_H_
|
||||
|
@ -46,6 +46,7 @@
|
||||
# include "equationdetect.h"
|
||||
#endif
|
||||
#include "lstmrecognizer.h"
|
||||
#include "thresholder.h" // for ThresholdMethod
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
@ -75,7 +76,7 @@ Tesseract::Tesseract()
|
||||
" (Values from PageSegMode enum in tesseract/publictypes.h)",
|
||||
this->params())
|
||||
, INT_MEMBER(thresholding_method,
|
||||
static_cast<int>(tesseract::ThresholdMethod::Otsu),
|
||||
static_cast<int>(ThresholdMethod::Otsu),
|
||||
"Thresholding method: 0 = Otsu, 1 = LeptonicaOtsu, 2 = "
|
||||
"Sauvola",
|
||||
this->params())
|
||||
|
@ -20,7 +20,6 @@
|
||||
#define TESSERACT_CCMAIN_THRESHOLDER_H_
|
||||
|
||||
#include <tesseract/export.h>
|
||||
#include <tesseract/publictypes.h>
|
||||
|
||||
#include <vector> // for std::vector
|
||||
|
||||
@ -28,6 +27,13 @@ struct Pix;
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
enum class ThresholdMethod {
|
||||
Otsu, // Tesseract's legacy Otsu
|
||||
LeptonicaOtsu, // Leptonica's Otsu
|
||||
Sauvola, // Leptonica's Sauvola
|
||||
Max, // Number of Thresholding methods
|
||||
};
|
||||
|
||||
class TessBaseAPI;
|
||||
|
||||
/// Base class for all tesseract image thresholding classes.
|
||||
|
Loading…
Reference in New Issue
Block a user