13 #ifndef TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_ 14 #define TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_ 16 #include "allheaders.h" 27 "Debug level for split shiro-rekha process.");
31 "Whether to create a debug image for split shiro-rekha process.");
55 int*
hist()
const {
return hist_; }
89 bool Split(
bool split_for_pageseg,
DebugPixa* pixa_debug);
97 void RefreshSegmentationWithNewBlobs(C_BLOB_LIST* new_blobs);
101 return pageseg_split_strategy_ != ocr_split_strategy_;
108 segmentation_block_list_ = block_list;
111 static const int kUnspecifiedXheight = -1;
114 global_xheight_ = xheight;
118 perform_close_ = perform;
125 return splitted_image_;
129 void set_orig_pix(Pix* pix);
138 return ocr_split_strategy_;
142 ocr_split_strategy_ = strategy;
146 return pageseg_split_strategy_;
150 pageseg_split_strategy_ = strategy;
154 return segmentation_block_list_;
160 static int GetModeHeight(Pix* pix);
165 static void PerformClose(Pix* pix,
int xheight_estimate);
170 int GetXheightForCC(Box* cc_bbox);
184 Boxa* regions_to_clear);
188 Box* GetBoxForTBOX(
const TBOX& tbox)
const;
192 static void GetShiroRekhaYExtents(Pix* word_pix,
194 int* shirorekha_bottom,
195 int* shirorekha_ylevel);
198 Pix* splitted_image_;
204 BLOCK_LIST* segmentation_block_list_;
212 #endif // TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_
void set_segmentation_block_list(BLOCK_LIST *block_list)
void ConstructVerticalCountHist(Pix *pix)
void set_ocr_split_strategy(SplitStrategy strategy)
bool devanagari_split_debugimage
void set_pageseg_split_strategy(SplitStrategy strategy)
bool HasDifferentSplitStrategies() const
int devanagari_split_debuglevel
int GetHistogramMaximum(int *count) const
SplitStrategy ocr_split_strategy() const
SplitStrategy pageseg_split_strategy() const
void set_perform_close(bool perform)
#define INT_VAR_H(name, val, comment)
#define BOOL_VAR_H(name, val, comment)
void set_global_xheight(int xheight)
BLOCK_LIST * segmentation_block_list()
void ConstructHorizontalCountHist(Pix *pix)