fix issue 967

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@886 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
zdenop@gmail.com 2013-09-29 20:48:06 +00:00
parent 9f1d243d82
commit ee08f623ce
4 changed files with 10 additions and 7 deletions

View File

@ -750,7 +750,7 @@ class TESS_API TessBaseAPI {
TESS_LOCAL int FindLines();
/** 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

View File

@ -6,17 +6,18 @@ AM_CPPFLAGS += \
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil \
-I$(top_srcdir)/neural_networks/runtime -I$(top_srcdir)/cube \
-I$(top_srcdir)/textord
if VISIBILITY
AM_CPPFLAGS += -DTESS_EXPORTS \
-fvisibility=hidden -fvisibility-inlines-hidden
endif
include_HEADERS = \
thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h
thresholder.h ltrresultiterator.h pageiterator.h resultiterator.h \
osdetect.h
noinst_HEADERS = \
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 \
reject.h scaleimg.h tessbox.h tessedit.h tesseractclass.h \
tesseract_cube_combiner.h tessvars.h werdit.h

View File

@ -59,7 +59,7 @@ struct OSResults {
// orientation id.
void update_best_script(int orientation_id);
// 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.
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.
// The value represents the amount of clockwise rotation in degrees that must be
// 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__

View File

@ -20,6 +20,8 @@
#ifndef TESSERACT_CCMAIN_THRESHOLDER_H__
#define TESSERACT_CCMAIN_THRESHOLDER_H__
#include "platform.h"
class IMAGE;
struct Pix;
@ -31,7 +33,7 @@ namespace tesseract {
/// Each instance deals with a single image, but the design is intended to
/// be useful for multiple calls to SetRectangle and ThresholdTo* if
/// desired.
class ImageThresholder {
class TESS_API ImageThresholder {
public:
ImageThresholder();
virtual ~ImageThresholder();