tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::CCNonTextDetect Class Reference

#include <ccnontextdetect.h>

Inheritance diagram for tesseract::CCNonTextDetect:
Collaboration diagram for tesseract::CCNonTextDetect:

Public Member Functions

 CCNonTextDetect (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
virtual ~CCNonTextDetect ()
 
Pix * ComputeNonTextMask (bool debug, Pix *photo_map, TO_BLOCK *blob_block)
 
- Public Member Functions inherited from tesseract::BlobGrid
 BlobGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
virtual ~BlobGrid ()
 
void InsertBlobList (BLOBNBOX_LIST *blobs)
 
- Public Member Functions inherited from tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT >
 BBGrid ()
 
 BBGrid (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
virtual ~BBGrid ()
 
void Init (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
void Clear ()
 
void ClearGridData (void(*free_method)(BLOBNBOX *))
 
void InsertBBox (bool h_spread, bool v_spread, BLOBNBOX *bbox)
 
void InsertPixPtBBox (int left, int bottom, Pix *pix, BLOBNBOX *bbox)
 
void RemoveBBox (BLOBNBOX *bbox)
 
bool RectangleEmpty (const TBOX &rect)
 
IntGridCountCellElements ()
 
ScrollViewMakeWindow (int x, int y, const char *window_name)
 
void DisplayBoxes (ScrollView *window)
 
void AssertNoDuplicates ()
 
virtual void HandleClick (int x, int y)
 
- Public Member Functions inherited from tesseract::GridBase
 GridBase ()=default
 
 GridBase (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
virtual ~GridBase ()
 
void Init (int gridsize, const ICOORD &bleft, const ICOORD &tright)
 
int gridsize () const
 
int gridwidth () const
 
int gridheight () const
 
const ICOORDbleft () const
 
const ICOORDtright () const
 
void GridCoords (int x, int y, int *grid_x, int *grid_y) const
 
void ClipGridCoords (int *x, int *y) const
 

Private Member Functions

IntGridComputeNoiseDensity (bool debug, Pix *photo_map, BlobGrid *good_grid)
 
void MarkAndDeleteNonTextBlobs (BLOBNBOX_LIST *blobs, int max_blob_overlaps, ScrollView *win, ScrollView::Color ok_color, Pix *nontext_mask)
 
bool BlobOverlapsTooMuch (BLOBNBOX *blob, int max_overlaps)
 

Private Attributes

int max_noise_count_
 
IntGridnoise_density_
 

Additional Inherited Members

- Protected Attributes inherited from tesseract::BBGrid< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT >
BLOBNBOX_CLIST * grid_
 
- Protected Attributes inherited from tesseract::GridBase
int gridsize_
 
int gridwidth_
 
int gridheight_
 
int gridbuckets_
 
ICOORD bleft_
 
ICOORD tright_
 

Constructor & Destructor Documentation

◆ CCNonTextDetect()

tesseract::CCNonTextDetect::CCNonTextDetect ( int  gridsize,
const ICOORD bleft,
const ICOORD tright 
)

◆ ~CCNonTextDetect()

tesseract::CCNonTextDetect::~CCNonTextDetect ( )
virtual

Member Function Documentation

◆ BlobOverlapsTooMuch()

bool tesseract::CCNonTextDetect::BlobOverlapsTooMuch ( BLOBNBOX blob,
int  max_overlaps 
)
private

◆ ComputeNoiseDensity()

IntGrid * tesseract::CCNonTextDetect::ComputeNoiseDensity ( bool  debug,
Pix *  photo_map,
BlobGrid good_grid 
)
private

◆ ComputeNonTextMask()

Pix * tesseract::CCNonTextDetect::ComputeNonTextMask ( bool  debug,
Pix *  photo_map,
TO_BLOCK blob_block 
)

◆ MarkAndDeleteNonTextBlobs()

void tesseract::CCNonTextDetect::MarkAndDeleteNonTextBlobs ( BLOBNBOX_LIST *  blobs,
int  max_blob_overlaps,
ScrollView win,
ScrollView::Color  ok_color,
Pix *  nontext_mask 
)
private

Member Data Documentation

◆ max_noise_count_

int tesseract::CCNonTextDetect::max_noise_count_
private

◆ noise_density_

IntGrid* tesseract::CCNonTextDetect::noise_density_
private

The documentation for this class was generated from the following files: