OcrImageEnhancementOptions Class
A class containing the options for Image Enhancement during the OCR process.
Inheritance
System.Object
OcrImageEnhancementOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.OCRProcessor
Assembly: Syncfusion.OCRProcessor.Base.dll
Syntax
public class OcrImageEnhancementOptions
Examples
// Initialize the OCR processor.
OCRProcessor processor = new OCRProcessor();
//loading the input image.
FileStream stream = new FileStream(@"Input.pdf", FileMode.Open);
PdfLoadedDocument document = new PdfLoadedDocument(stream);
sets the image enhancement options for OCR processor to enhance the images.
OcrImageEnhancementOptions options = new OcrImageEnhancementOptions();
options.IsGrayscaleEnabled = true;
options.IsDeskewEnabled = true;
options.IsDenoiseEnabled = false;
processor.Settings.ImageEnhancementOptions = options;
document = processor.PerformOCR(document);
FileStream outputStream = new FileStream("Output.pdf", FileMode.CreateNew);
//Save the document into stream.
document.Save(outputStream);
document.Close(true);
Constructors
OcrImageEnhancementOptions()
Declaration
public OcrImageEnhancementOptions()
Properties
IsBinarizeEnabled
Gets or sets the binarize of image.
Declaration
public bool IsBinarizeEnabled { set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsConstrastEnabled
Gets or sets the contrast of image.
Declaration
public bool IsConstrastEnabled { set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsDenoiseEnabled
Gets or sets the denoise of image.
Declaration
public bool IsDenoiseEnabled { set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsDeskewEnabled
Gets or sets the deskew of image.
Declaration
public bool IsDeskewEnabled { set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsGrayscaleEnabled
Gets or sets the grayscale of image.
Declaration
public bool IsGrayscaleEnabled { set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|