mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-06 09:17:49 +08:00
fix issue 967
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@886 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
9f1d243d82
commit
ee08f623ce
@ -750,7 +750,7 @@ class TESS_API TessBaseAPI {
|
|||||||
TESS_LOCAL int FindLines();
|
TESS_LOCAL int FindLines();
|
||||||
|
|
||||||
/** Delete the pageres and block list ready for a new page. */
|
/** Delete the pageres and block list ready for a new page. */
|
||||||
TESS_LOCAL void ClearResults();
|
TESS_API void ClearResults();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return an LTR Result Iterator -- used only for training, as we really want
|
* Return an LTR Result Iterator -- used only for training, as we really want
|
||||||
|
@ -13,10 +13,11 @@ AM_CPPFLAGS += -DTESS_EXPORTS \
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
include_HEADERS = \
|
include_HEADERS = \
|
||||||
thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h
|
thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h \
|
||||||
|
osdetect.h
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
control.h cube_reco_context.h cubeclassifier.h docqual.h \
|
control.h cube_reco_context.h cubeclassifier.h docqual.h \
|
||||||
equationdetect.h fixspace.h imgscale.h mutableiterator.h osdetect.h \
|
equationdetect.h fixspace.h imgscale.h mutableiterator.h \
|
||||||
output.h paragraphs.h paragraphs_internal.h paramsd.h pgedit.h \
|
output.h paragraphs.h paragraphs_internal.h paramsd.h pgedit.h \
|
||||||
reject.h scaleimg.h tessbox.h tessedit.h tesseractclass.h \
|
reject.h scaleimg.h tessbox.h tessedit.h tesseractclass.h \
|
||||||
tesseract_cube_combiner.h tessvars.h werdit.h
|
tesseract_cube_combiner.h tessvars.h werdit.h
|
||||||
|
@ -59,7 +59,7 @@ struct OSResults {
|
|||||||
// orientation id.
|
// orientation id.
|
||||||
void update_best_script(int orientation_id);
|
void update_best_script(int orientation_id);
|
||||||
// Return the index of the script with the highest score for this orientation.
|
// Return the index of the script with the highest score for this orientation.
|
||||||
int get_best_script(int orientation_id) const;
|
TESS_API int get_best_script(int orientation_id) const;
|
||||||
// Accumulate scores with given OSResults instance and update the best script.
|
// Accumulate scores with given OSResults instance and update the best script.
|
||||||
void accumulate(const OSResults& osr);
|
void accumulate(const OSResults& osr);
|
||||||
|
|
||||||
@ -129,6 +129,6 @@ bool os_detect_blob(BLOBNBOX* bbox, OrientationDetector* o,
|
|||||||
// Helper method to convert an orientation index to its value in degrees.
|
// Helper method to convert an orientation index to its value in degrees.
|
||||||
// The value represents the amount of clockwise rotation in degrees that must be
|
// The value represents the amount of clockwise rotation in degrees that must be
|
||||||
// applied for the text to be upright (readable).
|
// applied for the text to be upright (readable).
|
||||||
const int OrientationIdToValue(const int& id);
|
TESS_API const int OrientationIdToValue(const int& id);
|
||||||
|
|
||||||
#endif // TESSERACT_CCMAIN_OSDETECT_H__
|
#endif // TESSERACT_CCMAIN_OSDETECT_H__
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#ifndef TESSERACT_CCMAIN_THRESHOLDER_H__
|
#ifndef TESSERACT_CCMAIN_THRESHOLDER_H__
|
||||||
#define TESSERACT_CCMAIN_THRESHOLDER_H__
|
#define TESSERACT_CCMAIN_THRESHOLDER_H__
|
||||||
|
|
||||||
|
#include "platform.h"
|
||||||
|
|
||||||
class IMAGE;
|
class IMAGE;
|
||||||
struct Pix;
|
struct Pix;
|
||||||
|
|
||||||
@ -31,7 +33,7 @@ namespace tesseract {
|
|||||||
/// Each instance deals with a single image, but the design is intended to
|
/// Each instance deals with a single image, but the design is intended to
|
||||||
/// be useful for multiple calls to SetRectangle and ThresholdTo* if
|
/// be useful for multiple calls to SetRectangle and ThresholdTo* if
|
||||||
/// desired.
|
/// desired.
|
||||||
class ImageThresholder {
|
class TESS_API ImageThresholder {
|
||||||
public:
|
public:
|
||||||
ImageThresholder();
|
ImageThresholder();
|
||||||
virtual ~ImageThresholder();
|
virtual ~ImageThresholder();
|
||||||
|
Loading…
Reference in New Issue
Block a user