4 #ifndef TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
5 #define TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
16 "Debug level for split shiro-rekha process.");
20 "Whether to create a debug image for split shiro-rekha process.");
81 bool Split(
bool split_for_pageseg);
93 return pageseg_split_strategy_ != ocr_split_strategy_;
100 segmentation_block_list_ = block_list;
106 global_xheight_ = xheight;
110 perform_close_ = perform;
117 return splitted_image_;
130 return ocr_split_strategy_;
134 ocr_split_strategy_ = strategy;
138 return pageseg_split_strategy_;
142 pageseg_split_strategy_ = strategy;
146 return segmentation_block_list_;
160 static void PerformClose(Pix* pix,
int xheight_estimate);
165 int GetXheightForCC(Box* cc_bbox);
179 Boxa* regions_to_clear);
183 Box* GetBoxForTBOX(
const TBOX& tbox)
const;
187 static void GetShiroRekhaYExtents(Pix* word_pix,
189 int* shirorekha_bottom,
190 int* shirorekha_ylevel);
193 Pix* splitted_image_;
199 BLOCK_LIST* segmentation_block_list_;
207 #endif // TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
bool HasDifferentSplitStrategies() const
virtual ~ShiroRekhaSplitter()
void ConstructVerticalCountHist(Pix *pix)
void set_orig_pix(Pix *pix)
#define BOOL_VAR_H(name, val, comment)
void set_global_xheight(int xheight)
void RefreshSegmentationWithNewBlobs(C_BLOB_LIST *new_blobs)
SplitStrategy pageseg_split_strategy() const
void ConstructHorizontalCountHist(Pix *pix)
bool devanagari_split_debugimage
SplitStrategy ocr_split_strategy() const
int GetHistogramMaximum(int *count) const
void set_pageseg_split_strategy(SplitStrategy strategy)
static int GetModeHeight(Pix *pix)
BLOCK_LIST * segmentation_block_list()
void set_segmentation_block_list(BLOCK_LIST *block_list)
bool Split(bool split_for_pageseg)
void set_ocr_split_strategy(SplitStrategy strategy)
void set_perform_close(bool perform)
int devanagari_split_debuglevel
#define INT_VAR_H(name, val, comment)
void DumpDebugImage(const char *filename) const
static const int kUnspecifiedXheight