Click or drag to resize

OmniPageOcrTextRegion Class

OmniPageOcrTextRegion represents an area of printed text on a page, specific to the OmniPage OCR engine.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Atalasoft.OcrOcrRegion
      Atalasoft.OcrOcrTextRegion
        Atalasoft.Ocr.OmniPageOmniPageOcrTextRegion
          Atalasoft.Ocr.OmniPageOmniPageIcrTextRegion
          Atalasoft.Ocr.OmniPageOmniPageOcrCMC7TextRegion
          Atalasoft.Ocr.OmniPageOmniPageOcrMicrTextRegion

Namespace:  Atalasoft.Ocr.OmniPage
Assembly:  Atalasoft.dotImage.Ocr.OmniPage (in Atalasoft.dotImage.Ocr.OmniPage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class OmniPageOcrTextRegion : OcrTextRegion

The OmniPageOcrTextRegion type exposes the following members.

Constructors
  NameDescription
Public methodOmniPageOcrTextRegion(Rectangle)
Initializes a new instance of the OmniPageOcrTextRegion class.
Public methodOmniPageOcrTextRegion(PolygonF)
Initializes a new instance of the OmniPageOcrTextRegion class.
Public methodOmniPageOcrTextRegion(Rectangle, OcrTextRotation)
Initializes a new instance of the OmniPageOcrTextRegion class.
Top
Properties
  NameDescription
Public propertyBounds
This property represents the bounds of the Region in pixels.
(Inherited from OcrRegion.)
Public propertyConfidence
This property represents the overall confidence with which the text was recognized.
(Inherited from OcrTextRegion.)
Public propertyExpectedSymbolSet
Gets or sets expected symbol set for the text region.
(Inherited from OcrTextRegion.)
Public propertyIsRectangular
Gets a value indicating whether region is rectangular or not.
(Inherited from OcrRegion.)
Public propertyLines
This property provides access to individual lines of text within the region.
(Inherited from OcrTextRegion.)
Public propertyPolygonBounds
This property represents the bounds of the Region.
(Inherited from OcrRegion.)
Public propertyRotation
This property represents the orientation of the text region, expressed as a rotation.
(Inherited from OcrTextRegion.)
Public propertyTextKind
Gets or sets kind of the text within the text sregion.
(Inherited from OcrTextRegion.)
Top
Methods
  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodMaskToBounds
Masks provided image to the region's bounds, optionally cropping masked area.
(Inherited from OcrRegion.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodRecalculateBounds
Recalculates the bounding box of a text region.
(Inherited from OcrTextRegion.)
Public methodCode exampleToString
Converts the entire contents of an OcrTextRegion to a single string.
(Inherited from OcrTextRegion.)
Top
Remarks
OmniPage OCR engine auto rotation mechanism works with multiple image attributes, mostly text lines and the amount of the text has large weight in the rotation decision. As the result the “right” direction is the direction in which the majority text is detected. This lead to the fact that OmniPage in some cases is not able to process correctly pages which contain text blocks with different directions. Also rotated blocks could be in the detection results with incorrect data string (as for example vertical text is tried to be recognized as horizontal).
See Also