tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
19 #ifndef TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_
20 #define TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_
43 bool *is_list,
bool *starts_idea,
bool *ends_idea);
48 bool *is_list,
bool *starts_idea,
bool *ends_idea);
126 void SetUnknown() { hypotheses_.truncate(0); }
214 int start,
int end)
const;
240 int row_start,
int row_end,
254 void CalculateOpenModels(
int row_start,
int row_end);
257 return open_models_[row - row_start_ + 1];
285 int row_start,
int row_end);
307 PARA_LIST *paragraphs);
311 #endif // TESSERACT_CCMAIN_PARAGRAPHS_INTERNAL_H_
int OffsideIndent(tesseract::ParagraphJustification just) const
ParagraphModelSmearer(GenericVector< RowScratchRegisters > *rows, int row_start, int row_end, ParagraphTheory *theory)
void NonNullHypotheses(SetOfModels *models) const
int UnicodeFor(const UNICHARSET *u, const WERD_CHOICE *werd, int pos)
bool FirstWordWouldHaveFit(const RowScratchRegisters &before, const RowScratchRegisters &after, tesseract::ParagraphJustification justification)
GenericVector< ParagraphModel * > & models()
bool ValidBodyLine(const GenericVector< RowScratchRegisters > *rows, int row, const ParagraphModel *model)
void AppendDebugInfo(const ParagraphTheory &theory, GenericVector< STRING > *dbg) const
const GenericVector< ParagraphModel * > & models() const
bool operator==(const LineHypothesis &other) const
void StrongHypotheses(SetOfModels *models) const
void LeftWordAttributes(const UNICHARSET *unicharset, const WERD_CHOICE *werd, const STRING &utf8, bool *is_list, bool *starts_idea, bool *ends_idea)
ParagraphTheory(GenericVector< ParagraphModel * > *models)
void RecomputeMarginsAndClearHypotheses(GenericVector< RowScratchRegisters > *rows, int start, int end, int percentile)
void CanonicalizeDetectionResults(GenericVector< PARA * > *row_owners, PARA_LIST *paragraphs)
const ParagraphModel * UniqueBodyHypothesis() const
void RightWordAttributes(const UNICHARSET *unicharset, const WERD_CHOICE *werd, const STRING &utf8, bool *is_list, bool *starts_idea, bool *ends_idea)
int AlignsideIndent(tesseract::ParagraphJustification just) const
bool CrownCompatible(const GenericVector< RowScratchRegisters > *rows, int a, int b, const ParagraphModel *model)
void AddBodyLine(const ParagraphModel *model)
const ParagraphModel * AddModel(const ParagraphModel &model)
const ParagraphModel * Fits(const GenericVector< RowScratchRegisters > *rows, int start, int end) const
bool RowsFitModel(const GenericVector< RowScratchRegisters > *rows, int start, int end, const ParagraphModel *model)
void Init(const RowInfo &row)
void DiscardUnusedModels(const SetOfModels &used_models)
LineHypothesis & operator=(const LineHypothesis &other)
bool AsciiLikelyListItem(const STRING &word)
const ParagraphModel * kCrownLeft
static void AppendDebugHeaderFields(GenericVector< STRING > *header)
void DiscardNonMatchingHypotheses(const SetOfModels &models)
LineHypothesis(LineType line_type, const ParagraphModel *m)
int IndexOf(const ParagraphModel *model) const
const ParagraphModel * UniqueStartHypothesis() const
LineType GetLineType() const
void StartHypotheses(SetOfModels *models) const
void NonCenteredModels(SetOfModels *models)
GenericVectorEqEq< const ParagraphModel * > SetOfModels
int InterwordSpace(const GenericVector< RowScratchRegisters > &rows, int row_start, int row_end)
void AddStartLine(const ParagraphModel *model)
const ParagraphModel * kCrownRight
bool StrongModel(const ParagraphModel *model)
bool ValidFirstLine(const GenericVector< RowScratchRegisters > *rows, int row, const ParagraphModel *model)
const ParagraphModel * model