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.");
53 int*
hist()
const {
return hist_; }
99 return pageseg_split_strategy_ != ocr_split_strategy_;
106 segmentation_block_list_ = block_list;
112 global_xheight_ = xheight;
116 perform_close_ = perform;
123 return splitted_image_;
136 return ocr_split_strategy_;
140 ocr_split_strategy_ = strategy;
144 return pageseg_split_strategy_;
148 pageseg_split_strategy_ = strategy;
152 return segmentation_block_list_;
163 static void PerformClose(Pix* pix,
int xheight_estimate);
168 int GetXheightForCC(Box* cc_bbox);
182 Boxa* regions_to_clear);
186 Box* GetBoxForTBOX(
const TBOX& tbox)
const;
190 static void GetShiroRekhaYExtents(Pix* word_pix,
192 int* shirorekha_bottom,
193 int* shirorekha_ylevel);
196 Pix* splitted_image_;
202 BLOCK_LIST* segmentation_block_list_;
210 #endif // TESSERACT_TEXTORD_DEVNAGARI_PROCESSING_H_ void ConstructVerticalCountHist(Pix *pix)
static const int kUnspecifiedXheight
#define INT_VAR_H(name, val, comment)
int devanagari_split_debuglevel
BLOCK_LIST * segmentation_block_list()
#define BOOL_VAR_H(name, val, comment)
void RefreshSegmentationWithNewBlobs(C_BLOB_LIST *new_blobs)
SplitStrategy ocr_split_strategy() const
virtual ~ShiroRekhaSplitter()
void set_global_xheight(int xheight)
bool HasDifferentSplitStrategies() const
static int GetModeHeight(Pix *pix)
void set_perform_close(bool perform)
int GetHistogramMaximum(int *count) const
void set_orig_pix(Pix *pix)
SplitStrategy pageseg_split_strategy() const
void set_pageseg_split_strategy(SplitStrategy strategy)
bool Split(bool split_for_pageseg, DebugPixa *pixa_debug)
void ConstructHorizontalCountHist(Pix *pix)
void set_ocr_split_strategy(SplitStrategy strategy)
bool devanagari_split_debugimage
void set_segmentation_block_list(BLOCK_LIST *block_list)