Interface
IOcrProvider

Contract for OCR engines that extract text from images for search, selection, or analysis.

Definition

Namespace:Telerik.Windows.Documents.Ocr

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

cs-api-definition
public interface IOcrProvider

Properties

ParseLevel

Gets or sets the parsing granularity used by the OCR engine (word- or line-level).

Declaration

cs-api-definition
OcrParseLevel ParseLevel { get; set; }

Property Value

OcrParseLevel

Methods

GetAllTextFromImage(byte[])

Extract all text from the image and return a single concatenated string.

Declaration

cs-api-definition
string GetAllTextFromImage(byte[] imageBytes)

Parameters

imageBytes

byte[]

The bytes of the image.

Returns

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

cs-api-definition
Dictionary<Rectangle, string> GetTextFromImage(byte[] imageBytes)

Parameters

imageBytes

byte[]

The bytes of the image.

Returns

Dictionary<Rectangle, string>

Words with corresponding bounding rectangles