tesseract v5.3.3.20231005
paragraphs_internal.h File Reference
#include <tesseract/publictypes.h>
#include "paragraphs.h"

Go to the source code of this file.

Classes

struct  tesseract::LineHypothesis
 
class  tesseract::RowScratchRegisters
 
class  tesseract::ParagraphTheory
 
class  tesseract::ParagraphModelSmearer
 

Namespaces

namespace  tesseract
 

Typedefs

using tesseract::SetOfModels = std::vector< const ParagraphModel * >
 

Enumerations

enum  tesseract::LineType { tesseract::LT_START = 'S' , tesseract::LT_BODY = 'C' , tesseract::LT_UNKNOWN = 'U' , tesseract::LT_MULTIPLE = 'M' }
 

Functions

bool tesseract::AsciiLikelyListItem (const std::string &word)
 
void tesseract::RightWordAttributes (const UNICHARSET *unicharset, const WERD_CHOICE *werd, const std::string &utf8, bool *is_list, bool *starts_idea, bool *ends_idea)
 
void tesseract::LeftWordAttributes (const UNICHARSET *unicharset, const WERD_CHOICE *werd, const std::string &utf8, bool *is_list, bool *starts_idea, bool *ends_idea)
 
bool tesseract::StrongModel (const ParagraphModel *model)
 
bool tesseract::ValidFirstLine (const std::vector< RowScratchRegisters > *rows, int row, const ParagraphModel *model)
 
bool tesseract::ValidBodyLine (const std::vector< RowScratchRegisters > *rows, int row, const ParagraphModel *model)
 
bool tesseract::CrownCompatible (const std::vector< RowScratchRegisters > *rows, int a, int b, const ParagraphModel *model)
 
void tesseract::RecomputeMarginsAndClearHypotheses (std::vector< RowScratchRegisters > *rows, int start, int end, int percentile)
 
int tesseract::InterwordSpace (const std::vector< RowScratchRegisters > &rows, int row_start, int row_end)
 
bool tesseract::FirstWordWouldHaveFit (const RowScratchRegisters &before, const RowScratchRegisters &after, tesseract::ParagraphJustification justification)
 
bool tesseract::FirstWordWouldHaveFit (const RowScratchRegisters &before, const RowScratchRegisters &after)
 
bool tesseract::RowsFitModel (const std::vector< RowScratchRegisters > *rows, int start, int end, const ParagraphModel *model)
 
void tesseract::CanonicalizeDetectionResults (std::vector< PARA * > *row_owners, PARA_LIST *paragraphs)