ClassOcrFormatProvider
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
OcrFormatProvider(IOcrProvider)
Initializes a new instance of the OcrFormatProvider class.
Declaration
public OcrFormatProvider(IOcrProvider ocrProvider)
Parameters
ocrProvider
The OCR provider implementation that will be used for optical character recognition operations.
Properties
CanExport
Gets a value indicating whether format provider can export.
Declaration
public override bool CanExport { get; }
Property Value
The value indicating whether can export.
Overrides
CanImport
Gets a value indicating whether format provider can import.
Declaration
public override bool CanImport { get; }
Property Value
The value indicating whether can import.
Overrides
OcrProvider
The OcrProvider instance used to process the image.
Declaration
public IOcrProvider OcrProvider { get; set; }
Property Value
SupportedExtensions
Gets the supported extensions.
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
The supported extensions.
Overrides
Methods
ImportOverride(Stream, CancellationToken)
Imports the specified input.
Declaration
protected override RadFixedPage ImportOverride(Stream input, CancellationToken cancellationToken)
Parameters
input
The input stream containing the image data to process with OCR.
cancellationToken
The cancellation token used to cancel the operation.
Returns
The imported document.
Overrides