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_