Click or drag to resize

RecoStarOcrPreprocessingOptions Class

An object representing preprocessing options performed on the image.
Inheritance Hierarchy
SystemObject
  Atalasoft.OcrOcrPreprocessingOptions
    Atalasoft.Ocr.RecoStarRecoStarOcrPreprocessingOptions

Namespace:  Atalasoft.Ocr.RecoStar
Assembly:  Atalasoft.dotImage.Ocr.RecoStar (in Atalasoft.dotImage.Ocr.RecoStar.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class RecoStarOcrPreprocessingOptions : OcrPreprocessingOptions

The RecoStarOcrPreprocessingOptions type exposes the following members.

Constructors
  NameDescription
Public methodRecoStarOcrPreprocessingOptions
Constructs a new RecoStarOcrPreprocessingOptions object set to defaults.
Public methodRecoStarOcrPreprocessingOptions(Int32)
Constructs a new RecoStarOcrPreprocessingOptions object set to the set of options specified by bits in the int.
Top
Properties
  NameDescription
Public propertyAutoRotate
Determines of the OCR engine should rotate the document based on text orientation.
(Inherited from OcrPreprocessingOptions.)
Public propertyDeskew
Determines if the OCR engine should deskew the image.
(Inherited from OcrPreprocessingOptions.)
Public propertyDespeckle
Determines if the engine should despeckle the image.
(Inherited from OcrPreprocessingOptions.)
Public propertyDetectPaperArea
Sets or gets
Public propertyFlipLeftRight
Determines if the engine should flip the image left to right
(Inherited from OcrPreprocessingOptions.)
Public propertyInvert
Determines if the engine should invert the image
(Inherited from OcrPreprocessingOptions.)
Public propertyRemoveHolePunches
Sets or gets whether the engine will attempt to remove marks from hole punches while processing.
Public propertyRemoveLines
Sets or gets whether the engine will attempt to remove marks from lines on the page.
Public propertyRemoveShading
Sets or gets whether the engine will attempt to remove marks from halftone shading.
Public propertyToBilevel
Determines if the image should convert to black and white prior to OCR.
(Inherited from OcrPreprocessingOptions.)
Top
Methods
  NameDescription
Public methodClone
Creates a copy of this object
(Inherited from OcrPreprocessingOptions.)
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.)
Protected methodGetOption
Retrieves the option using the integer mask.
(Inherited from OcrPreprocessingOptions.)
Public methodGetOptionsMask
Gets the native pre-processing options from the value of properties in this class.
(Inherited from OcrPreprocessingOptions.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInternalClone (Overrides OcrPreprocessingOptionsInternalClone.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSetOption
Sets an option using an integer mask
(Inherited from OcrPreprocessingOptions.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
The options set by default are OcrNativePreprocessingOptions.Deskew and RecoStarNativePreprocessingOptionsDetectPaperArea.
Examples
C#
RecoStarOcrPreprocessingOptions opts = engine.PreprocessingOptions as RecoStarOcrPreprocessingOptions;
opts.DetectPaperArea = false;
See Also