Tesseract 3.01
|
#include "mfcpch.h"
#include "scanedg.h"
#include "drawedg.h"
#include "edgloop.h"
#include "edgblob.h"
Defines | |
#define | EXTERN |
Functions | |
extract_edges | |
Run the edge detector over the block and return a list of blobs. | |
void | extract_edges (Pix *pix, BLOCK *block) |
outlines_to_blobs | |
Gather together outlines into blobs using the usual bucket sort. | |
void | outlines_to_blobs (BLOCK *block, ICOORD bleft, ICOORD tright, C_OUTLINE_LIST *outlines) |
fill_buckets | |
Run the edge detector over the block and return a list of blobs. | |
void | fill_buckets (C_OUTLINE_LIST *outlines, OL_BUCKETS *buckets) |
empty_buckets | |
Run the edge detector over the block and return a list of blobs. | |
void | empty_buckets (BLOCK *block, OL_BUCKETS *buckets) |
capture_children | |
Find all neighbouring outlines that are children of this outline and either move them to the output list or declare this outline illegal and return FALSE. | |
BOOL8 | capture_children (OL_BUCKETS *buckets, C_BLOB_IT *reject_it, C_OUTLINE_IT *blob_it) |
Variables | |
EXTERN bool | edges_use_new_outline_complexity = 0 |
EXTERN int | edges_max_children_per_outline = 10 |
EXTERN int | edges_max_children_layers = 5 |
EXTERN bool | edges_debug = 0 |
EXTERN int | edges_children_per_grandchild = 10 |
EXTERN int | edges_children_count_limit = 45 |
EXTERN bool | edges_children_fix = 0 |
EXTERN int | edges_min_nonhole = 12 |
EXTERN int | edges_patharea_ratio = 40 |
EXTERN double | edges_childarea = 0.5 |
EXTERN double | edges_boxarea = 0.875 |
#define EXTERN |
BOOL8 capture_children | ( | OL_BUCKETS * | buckets, |
C_BLOB_IT * | reject_it, | ||
C_OUTLINE_IT * | blob_it | ||
) |
void empty_buckets | ( | BLOCK * | block, |
OL_BUCKETS * | buckets | ||
) |
void extract_edges | ( | Pix * | pix, |
BLOCK * | block | ||
) |
void fill_buckets | ( | C_OUTLINE_LIST * | outlines, |
OL_BUCKETS * | buckets | ||
) |
EXTERN double edges_boxarea = 0.875 |
"Min area fraction of grandchild for box"
EXTERN double edges_childarea = 0.5 |
"Min area fraction of child outline"
EXTERN int edges_children_count_limit = 45 |
"Max holes allowed in blob"
EXTERN bool edges_children_fix = 0 |
"Remove boxy parents of char-like children"
EXTERN int edges_children_per_grandchild = 10 |
"Importance ratio for chucking outlines"
EXTERN bool edges_debug = 0 |
"turn on debugging for this module"
EXTERN int edges_max_children_layers = 5 |
"Max layers of nested children inside a character outline"
EXTERN int edges_max_children_per_outline = 10 |
"Max number of children inside a character outline"
EXTERN int edges_min_nonhole = 12 |
"Min pixels for potential char in box"
EXTERN int edges_patharea_ratio = 40 |
"Max lensq/area for acceptable child outline"
EXTERN bool edges_use_new_outline_complexity = 0 |
"Use the new outline complexity module"