Click or drag to resize

OcrResultRenderer Class

The base interface for rendering tesseract results into a document, such as text, HOCR or pdf. This interface is then used to inject the renderer class into tesseract when processing images. For simplicity implementing this with tesesract version 3.01, the renderer contains document state that is cleared from document to document just as the OcrApi is. This way the base API can just delegate its rendering functionality to injected renderers, and the renderers can manage the associated state needed for the specific formats in addition to the heuristics for producing it.
Inheritance Hierarchy

Namespace:  Patagames.Ocr
Assembly:  Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.2.411
public abstract class OcrResultRenderer : IDisposable

The OcrResultRenderer type exposes the following members.

Public propertyExtension
Gets renderer extension
Public propertyHandle
Handle to internal tesseract renderer
Public propertyImageCount
Gets the index of the last image given to AddImage (i.e. images are incremented whether the image succeeded or not)
Public propertyTitle
Gets document title
Public methodAddImage
Adds the recognized text from the source image to the current document. Invalid if BeginDocument not yet called.
Public methodBeginDocument
Starts a new document with the given title. This clears the contents of the output data.
Public methodDispose
Releases all resources used by this OcrResultRenderer
Public methodEndDocument
Finishes the document and finalizes the output data. Invalid if BeginDocument(String) not yet called.
Public methodInsert
Insert renderer
Public methodNext
Get next rendeder.
See Also
Inheritance Hierarchy