tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
13 #ifndef TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
14 #define TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
16 #include "allheaders.h"
26 "Debug level for split shiro-rekha process.");
30 "Whether to create a debug image for split shiro-rekha process.");
52 int*
hist()
const {
return hist_; }
98 return pageseg_split_strategy_ != ocr_split_strategy_;
105 segmentation_block_list_ = block_list;
111 global_xheight_ = xheight;
115 perform_close_ = perform;
122 return splitted_image_;
135 return ocr_split_strategy_;
139 ocr_split_strategy_ = strategy;
143 return pageseg_split_strategy_;
147 pageseg_split_strategy_ = strategy;
151 return segmentation_block_list_;
162 static void PerformClose(Pix* pix,
int xheight_estimate);
167 int GetXheightForCC(Box* cc_bbox);
181 Boxa* regions_to_clear);
185 Box* GetBoxForTBOX(
const TBOX& tbox)
const;
189 static void GetShiroRekhaYExtents(Pix* word_pix,
191 int* shirorekha_bottom,
192 int* shirorekha_ylevel);
195 Pix* splitted_image_;
201 BLOCK_LIST* segmentation_block_list_;
209 #endif // TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
void set_ocr_split_strategy(SplitStrategy strategy)
void set_pageseg_split_strategy(SplitStrategy strategy)
void set_orig_pix(Pix *pix)
void ConstructVerticalCountHist(Pix *pix)
int GetHistogramMaximum(int *count) const
int devanagari_split_debuglevel
void set_perform_close(bool perform)
SplitStrategy ocr_split_strategy() const
void set_segmentation_block_list(BLOCK_LIST *block_list)
BLOCK_LIST * segmentation_block_list()
bool Split(bool split_for_pageseg, DebugPixa *pixa_debug)
static int GetModeHeight(Pix *pix)
void RefreshSegmentationWithNewBlobs(C_BLOB_LIST *new_blobs)
static const int kUnspecifiedXheight
bool HasDifferentSplitStrategies() const
#define INT_VAR_H(name, val, comment)
void ConstructHorizontalCountHist(Pix *pix)
void set_global_xheight(int xheight)
#define BOOL_VAR_H(name, val, comment)
SplitStrategy pageseg_split_strategy() const
virtual ~ShiroRekhaSplitter()
bool devanagari_split_debugimage