The recognized characters collection of a zone inside a page.
public interface IOcrZoneCharacters : System.Collections.Generic.ICollection<OcrCharacter>, System.Collections.Generic.IEnumerable<OcrCharacter>, System.Collections.Generic.IList<OcrCharacter>, System.Collections.IEnumerable Public Interface IOcrZoneCharactersInherits System.Collections.Generic.ICollection(Of OcrCharacter), System.Collections.Generic.IEnumerable(Of OcrCharacter), System.Collections.Generic.IList(Of OcrCharacter), System.Collections.IEnumerable
public interface IOcrZoneCharacters : System.Collections.Generic.ICollection<OcrCharacter>, Windows.Foundation.Collections.IIterable //In WinRT the IEnumerable interface is replaced by IIterable<OcrCharacter>, Windows.Foundation.Collections.IVector //In WinRT the IList interface is replaced by IVector<OcrCharacter>, System.Collections.IEnumerable @interface LTOcrZoneCharacters : NSObject <NSFastEnumeration> public class OcrZoneCharacters implements List<OcrCharacter> function Leadtools.Forms.Ocr.IOcrZoneCharacters() System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable public interface class IOcrZoneCharacters : public System.Collections.Generic.ICollection<OcrCharacter>, System.Collections.Generic.IEnumerable<OcrCharacter>, System.Collections.Generic.IList<OcrCharacter>, System.Collections.IEnumerable 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, or IOcrDocument.SaveAsync, IOcrDocument.SaveXml or or IOcrDocument.SaveXmlAsync.
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:
// Get the page charactersIOcrPageCharacters 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 = 1IOcrZoneCharacters zoneCharacters = pageCharacters.FindZoneCharacters(1);// Loop through the charactersforeach(OcrCharacter ocrCharacter in zoneCharacters){// Do something with ocrCharacter}
For an example, refer to IOcrPage.GetRecognizedCharacters.
|
Products |
Support |
Feedback: IOcrZoneCharacters Interface - Leadtools.Forms.Ocr |
Introduction |
Help Version 19.0.2017.6.6
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.