Move declaration of ThresholdMethod from public API to thresholder.h

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-10-30 20:10:39 +02:00
parent 97cd07f2a0
commit c0b529f2e1
3 changed files with 9 additions and 9 deletions

View File

@ -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_

View File

@ -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())

View File

@ -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.