Leadtools.Forms.Ocr Namespace : IOcrPageCharacters Interface |
public interface IOcrPageCharacters : System.Collections.Generic.ICollection<IOcrZoneCharacters>, System.Collections.Generic.IEnumerable<IOcrZoneCharacters>, System.Collections.Generic.IList<IOcrZoneCharacters>, System.Collections.IEnumerable
'Declaration Public Interface IOcrPageCharacters Inherits System.Collections.Generic.ICollection(Of IOcrZoneCharacters), System.Collections.Generic.IEnumerable(Of IOcrZoneCharacters), System.Collections.Generic.IList(Of IOcrZoneCharacters), System.Collections.IEnumerable
'Usage Dim instance As IOcrPageCharacters
public interface IOcrPageCharacters : System.Collections.Generic.ICollection<IOcrZoneCharacters>, Windows.Foundation.Collections.IIterable //In WinRT the IEnumerableinterface is replaced by IIterable <IOcrZoneCharacters>, Windows.Foundation.Collections.IVector //In WinRT the IListinterface is replaced by IVector <IOcrZoneCharacters>, System.Collections.IEnumerable
function Leadtools.Forms.Ocr.IOcrPageCharacters() System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable
public interface class IOcrPageCharacters : public System.Collections.Generic.ICollection<IOcrZoneCharacters>, System.Collections.Generic.IEnumerable<IOcrZoneCharacters>, System.Collections.Generic.IList<IOcrZoneCharacters>, System.Collections.IEnumerable
To get the recognized characters of a page, call IOcrPage.GetRecognizedCharacters after IOcrPage.Recognize or IOcrPage.RecognizeText.
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, ICollection and IEnumerable interfaces with items of type IOcrZoneCharacters. Thus 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, ICollection and IEnumerable interfaces but with items of type OcrCharacter. Each item in the IOcrZoneCharacters contains a collection of the characters of the zone.
The IOcrPageCharacters interface also contains the IOcrPageCharacters.UpdateWord method that allow to modify the OCR recognition results by updating or deleting the words before optionally saving the results to the final output document.
delete any word fromFor 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 characters IOcrPageCharacters pageCharacters = ocrPage.GetRecognizedCharacters(); // Get the 2nd zone characters. Note, index is zero-based so 2nd zone is index 1 // You can also iterate through the pageCharacters collection and find the IOcrZoneCharacters item with ZoneIndex = 1 IOcrZoneCharacters zoneCharacters = pageCharacters.FindZoneCharacters(1); // Loop through the characters foreach(OcrCharacter ocrCharacter in zoneCharacters) { // Do something with ocrCharacter }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
IOcrPageCharacters Members
Leadtools.Forms.Ocr Namespace
IOcrPage.SetRecognizedCharacters
IOcrPage.GetRecognizedCharacters
IOcrPage.Recognize
IOcrPage.IsRecognized
OcrCharacter Structure
IOcrPageCharacters Interface
IOcrZoneCharacters Interface
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with the LEADTOOLS .NET OCR
public interface IOcrPageCharacters : System.Collections.Generic.ICollection<IOcrZoneCharacters>, System.Collections.Generic.IEnumerable<IOcrZoneCharacters>, System.Collections.Generic.IList<IOcrZoneCharacters>, System.Collections.IEnumerable
'Declaration Public Interface IOcrPageCharacters Inherits System.Collections.Generic.ICollection(Of IOcrZoneCharacters), System.Collections.Generic.IEnumerable(Of IOcrZoneCharacters), System.Collections.Generic.IList(Of IOcrZoneCharacters), System.Collections.IEnumerable
'Usage Dim instance As IOcrPageCharacters
public interface IOcrPageCharacters : System.Collections.Generic.ICollection<IOcrZoneCharacters>, Windows.Foundation.Collections.IIterable //In WinRT the IEnumerableinterface is replaced by IIterable <IOcrZoneCharacters>, Windows.Foundation.Collections.IVector //In WinRT the IListinterface is replaced by IVector <IOcrZoneCharacters>, System.Collections.IEnumerable
function Leadtools.Forms.Ocr.IOcrPageCharacters() System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.IEnumerable
public interface class IOcrPageCharacters : public System.Collections.Generic.ICollection<IOcrZoneCharacters>, System.Collections.Generic.IEnumerable<IOcrZoneCharacters>, System.Collections.Generic.IList<IOcrZoneCharacters>, System.Collections.IEnumerable
To get the recognized characters of a page, call IOcrPage.GetRecognizedCharacters after IOcrPage.Recognize or IOcrPage.RecognizeText.
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, ICollection and IEnumerable interfaces with items of type IOcrZoneCharacters. Thus 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, ICollection and IEnumerable interfaces but with items of type OcrCharacter. Each item in the IOcrZoneCharacters contains a collection of the characters of the zone.
The IOcrPageCharacters interface also contains the IOcrPageCharacters.UpdateWord method that allow to modify the OCR recognition results by updating or deleting the words before optionally saving the results to the final output document.
delete any word fromFor 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 characters IOcrPageCharacters pageCharacters = ocrPage.GetRecognizedCharacters(); // Get the 2nd zone characters. Note, index is zero-based so 2nd zone is index 1 // You can also iterate through the pageCharacters collection and find the IOcrZoneCharacters item with ZoneIndex = 1 IOcrZoneCharacters zoneCharacters = pageCharacters.FindZoneCharacters(1); // Loop through the characters foreach(OcrCharacter ocrCharacter in zoneCharacters) { // Do something with ocrCharacter }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
IOcrPageCharacters Members
Leadtools.Forms.Ocr Namespace
IOcrPage.SetRecognizedCharacters
IOcrPage.GetRecognizedCharacters
IOcrPage.Recognize
IOcrPage.IsRecognized
OcrCharacter Structure
IOcrPageCharacters Interface
IOcrZoneCharacters Interface
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with the LEADTOOLS .NET OCR