Click or drag to resize

OcrPageIterator Class

Class to iterate over tesseract results, providing access to all levels of the page hierarchy.
Inheritance Hierarchy
SystemObject
  Patagames.OcrOcrPageIterator

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public class OcrPageIterator : IDisposable

The OcrPageIterator type exposes the following members.

Properties
 NameDescription
Public propertyBlockType Gets the type of the current block. See PolyBlockType for details.
Public propertyDeskewAngle Gets deskew angle of the current iterator
Public propertyFirstLineIndent Gets the indent of the first line of current paragraph
Public propertyHandle Handle to internal tesseract iterator
Public propertyIsCrown Check whether the first line of the paragraph is aligned with the other lines of the paragraph.
Public propertyIsListItem Check whether the current paragraph is a member of an ordered or unordered list
Public propertyJustify Get ParagraphJustification for the current paragraph, if available.
Public propertyOrientations Gets orientation of the current iterator
Public propertyTextlineOrder Gets text line order of the current iterator
Public propertyWritingDirection Gets writing direction of the current iterator
Top
Methods
 NameDescription
Public methodBegin Moves the iterator to point to the start of the page to begin an iteration
Public methodCopy PageIterators may be copied! This makes it possible to iterate over all the objects at a lower level, while maintaining an iterator to objects at a higher level.
Public methodDispose Releases all resources used by this OcrPageIterator
Public methodGetBaseLine Get the baseline of the current object at the given level.
Public methodGetBinaryImage Get f binary image of the current object at the given level.
Public methodGetBoundingBox Gets bounding rectangle of the current object at the given level.
Public methodGetImage Get an image of the current object at the given level in greyscale if available in the input.
Public methodGetIteratorParams Get orientation for the block the iterator points to.
Public methodGetParagraphInfo Get information about the current paragraph, if available.
Public methodIsAtBeginningOf Check whether the iterator is at the start of an object at the given level
Public methodIsAtFinalElement Check whether the iterator is positioned at the last element in a given level. (e.g.the last word in a line, the last line in a block)
Public methodNext Moves to the start of the next object at the given level in the page hierarchy.
Top
Remarks
Caution note  Caution
This class points to data held within the OcrApi class, and therefore can only be used while the OcrApi class still exists and has not been subjected to a call of Init, SetImage, Recognize, Clear, Release, or anything else that changes the internal PAGE_RES.
See Also