←Select platform

IOcrZoneCharacters Interface

Summary

The recognized characters collection of a zone inside a page.

Syntax

C#
VB
Java
Objective-C
C++
public interface IOcrZoneCharacters : IList<OcrCharacter>, ICollection<OcrCharacter>, IEnumerable<OcrCharacter>, IEnumerable 

Public Interface IOcrZoneCharacters  
   Inherits System.Collections.Generic.ICollection(Of OcrCharacter), System.Collections.Generic.IEnumerable(Of OcrCharacter), System.Collections.Generic.IList(Of OcrCharacter), System.Collections.IEnumerable  

@interface LTOcrZoneCharacters : NSObject <NSFastEnumeration> 

public class OcrZoneCharacters implements List<OcrCharacter> 

public interface class IOcrZoneCharacters : public System.Collections.Generic.ICollection<OcrCharacter>, System.Collections.Generic.IEnumerable<OcrCharacter>, System.Collections.Generic.IList<OcrCharacter>, System.Collections.IEnumerable   

Remarks

To get the recognized characters of a page, call IOcrPage.GetRecognizedCharacters after IOcrPage.Recognize.

To update the recognized characters of a page, call IOcrPage.GetRecognizedCharacters before calling IOcrDocument.Save, IOcrDocument.SaveXml.

IOcrPageCharacters implements the standard IList<T>, ICollection<T> and IEnumerable<T> interfaces with items of type IOcrZoneCharacters. Each item in the IOcrPageCharacters contains a collection of the character collections of the zones.

The IOcrZoneCharacters interface contains a collection of the characters of a particular zones.

IOcrZoneCharacters also implements IList<T>, ICollection<T> and IEnumerable<T> interfaces but with items of type OcrCharacter. Each item in the IOcrZoneCharacters contains a collection of the characters of the zone.

For example, if you are interested in iterating through the characters of the 2nd zone in the page, you can do the following:

C#
// Get the page characters  
IOcrPageCharacters pageCharacters = ocrPage.GetRecognizedCharacters(); 
 
// Get the 2nd zone characters. Note, the index is zero-based so the 2nd zone is at index 1 
// You can also iterate through the pageCharacters collection and fine the IOcrZoneCharacters item with ZoneIndex = 1  
IOcrZoneCharacters zoneCharacters = pageCharacters.FindZoneCharacters(1);  
 
// Loop through the characters  
foreach(OcrCharacter ocrCharacter in zoneCharacters) 
{ 
   // Do something with ocrCharacter 
} 

Example

For an example, refer to IOcrPage.GetRecognizedCharacters.

Requirements

Target Platforms

Help Version 20.0.2018.6.20
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly