Interface IOcrProvider
Contract for OCR engines that extract text from images for search, selection, or analysis.
Namespace: Telerik.Windows.Documents.Ocr
Assembly: Telerik.Windows.Documents.Core.dll
Syntax
public interface IOcrProvider
Properties
ParseLevel
Gets or sets the parsing granularity used by the OCR engine (word- or line-level).
Declaration
OcrParseLevel ParseLevel { get; set; }
Property Value
|
OcrParseLevel
|
Methods
GetAllTextFromImage(Byte[])
Extract all text from the image and return a single concatenated string.
Declaration
string GetAllTextFromImage(byte[] imageBytes)
Parameters
|
System.Byte[]
imageBytes
The bytes of the image. |
Returns
|
System.String
The entire text as a string. |
GetTextFromImage(Byte[])
Extract text with word-level bounding boxes, returning a map of regions to recognized strings.
Declaration
Dictionary<Rectangle, string> GetTextFromImage(byte[] imageBytes)
Parameters
|
System.Byte[]
imageBytes
The bytes of the image. |
Returns
|
System.Collections.Generic.Dictionary<System.Drawing.Rectangle, System.String>
Words with corresponding bounding rectangles |