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.");
80 bool Split(
bool split_for_pageseg);
92 return pageseg_split_strategy_ != ocr_split_strategy_;
99 segmentation_block_list_ = block_list;
105 global_xheight_ = xheight;
109 perform_close_ = perform;
116 return splitted_image_;
129 return ocr_split_strategy_;
133 ocr_split_strategy_ = strategy;
137 return pageseg_split_strategy_;
141 pageseg_split_strategy_ = strategy;
145 return segmentation_block_list_;
159 static void PerformClose(Pix* pix,
int xheight_estimate);
164 int GetXheightForCC(Box* cc_bbox);
178 Boxa* regions_to_clear);
182 Box* GetBoxForTBOX(
const TBOX& tbox)
const;
186 static void GetShiroRekhaYExtents(Pix* word_pix,
188 int* shirorekha_bottom,
189 int* shirorekha_ylevel);
192 Pix* splitted_image_;
198 BLOCK_LIST* segmentation_block_list_;
206 #endif // TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
BLOCK_LIST * segmentation_block_list()
void set_global_xheight(int xheight)
bool devanagari_split_debugimage
void RefreshSegmentationWithNewBlobs(C_BLOB_LIST *new_blobs)
#define INT_VAR_H(name, val, comment)
bool HasDifferentSplitStrategies() const
void set_perform_close(bool perform)
SplitStrategy ocr_split_strategy() const
SplitStrategy pageseg_split_strategy() const
void set_orig_pix(Pix *pix)
void set_pageseg_split_strategy(SplitStrategy strategy)
void set_segmentation_block_list(BLOCK_LIST *block_list)
bool Split(bool split_for_pageseg)
void ConstructVerticalCountHist(Pix *pix)
void ConstructHorizontalCountHist(Pix *pix)
virtual ~ShiroRekhaSplitter()
void set_ocr_split_strategy(SplitStrategy strategy)
int GetHistogramMaximum(int *count) const
int devanagari_split_debuglevel
void DumpDebugImage(const char *filename) const
static int GetModeHeight(Pix *pix)
#define BOOL_VAR_H(name, val, comment)
static const int kUnspecifiedXheight