Tesseract 3.01
/data/source/tesseract-ocr/textord/blkocc.h File Reference
#include "params.h"
#include "elst.h"
#include "notdll.h"

Go to the source code of this file.

Classes

class  REGION_OCC
class  BAND

Defines

#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)   ( ((range_min) >= (band_min)) && ((range_max) < (band_max)) ) ? TRUE : FALSE
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)   ( ((range_max) >= (band_min)) && ((range_min) < (band_max)) ) ? TRUE : FALSE
#define MAX_NUM_BANDS   5
#define UNDEFINED_BAND   99
#define NO_LOWER_LIMIT   -9999
#define NO_UPPER_LIMIT   9999
#define DOT_BAND   0
#define END_OF_WERD_CODE   255

Functions

BOOL8 test_underline (BOOL8 testing_on, C_BLOB *blob, inT16 baseline, inT16 xheight)

Variables

bool blockocc_show_result = 0
int blockocc_desc_height = 0
int blockocc_asc_height = 255
int blockocc_band_count = 4
double textord_underline_threshold = 0.9

Define Documentation

#define DOT_BAND   0
#define END_OF_WERD_CODE   255
#define MAX_NUM_BANDS   5
#define NO_LOWER_LIMIT   -9999
#define NO_UPPER_LIMIT   9999
#define RANGE_IN_BAND (   band_max,
  band_min,
  range_max,
  range_min 
)    ( ((range_min) >= (band_min)) && ((range_max) < (band_max)) ) ? TRUE : FALSE
#define RANGE_OVERLAPS_BAND (   band_max,
  band_min,
  range_max,
  range_min 
)    ( ((range_max) >= (band_min)) && ((range_min) < (band_max)) ) ? TRUE : FALSE
#define UNDEFINED_BAND   99

Function Documentation

BOOL8 test_underline ( BOOL8  testing_on,
C_BLOB blob,
inT16  baseline,
inT16  xheight 
)

test_underline

Check to see if the blob is an underline. Return TRUE if it is.


Variable Documentation

"Ascender height after normalisation"

"Number of bands used"

"Descender height after normalisation"

"Show intermediate results"

"Fraction of width occupied"

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines