OcrFormatProvider
Format provider that uses an OCR provider to create a RadFixedPage from an image.
Definition
Namespace:Telerik.Windows.Documents.Fixed.FormatProviders.Ocr
Assembly:Telerik.Windows.Documents.Fixed.FormatProviders.Ocr.dll
Syntax:
public class OcrFormatProvider : BinaryFormatProviderBase<RadFixedPage>, IFormatProvider<RadFixedPage>, IBinaryFormatProvider<RadFixedPage>
Inheritance: objectFormatProviderBase<RadFixedPage>BinaryFormatProviderBase<RadFixedPage>OcrFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the OcrFormatProvider class.
public OcrFormatProvider(IOcrProvider ocrProvider)
The OCR provider implementation that will be used for optical character recognition operations.
Properties
Gets a value indicating whether format provider can export.
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Gets a value indicating whether format provider can import.
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
The OcrProvider instance used to process the image.
public IOcrProvider OcrProvider { get; set; }
Gets the supported extensions.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides:
Methods
Imports the specified input.
protected override RadFixedPage ImportOverride(Stream input, CancellationToken cancellationToken)
The input stream containing the image data to process with OCR.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:The imported document.
Overrides: