The GetWords Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
- dpiX
- Horizontal resolution to use when calculating OcrWord.Bounds if unit is LogicalUnit.Pixels.
- dpiY
- Vertical resolution to use when calculating OcrWord.Bounds if unit is LogicalUnit.Pixels.
- unit
- Desired unit to use when calculating OcrWord.Bounds.
Visual Basic (Declaration) | |
---|---|
Function GetWords( _ ByVal dpiX As Integer, _ ByVal dpiY As Integer, _ ByVal unit As LogicalUnit _ ) As ICollection(Of OcrWord) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrZoneCharacters Dim dpiX As Integer Dim dpiY As Integer Dim unit As LogicalUnit Dim value As ICollection(Of OcrWord) value = instance.GetWords(dpiX, dpiY, unit) |
C# | |
---|---|
ICollection<OcrWord> GetWords( int dpiX, int dpiY, LogicalUnit unit ) |
C++/CLI | |
---|---|
ICollection<OcrWord>^ GetWords( int dpiX, int dpiY, LogicalUnit unit ) |
Parameters
- dpiX
- Horizontal resolution to use when calculating OcrWord.Bounds if unit is LogicalUnit.Pixels.
- dpiY
- Vertical resolution to use when calculating OcrWord.Bounds if unit is LogicalUnit.Pixels.
- unit
- Desired unit to use when calculating OcrWord.Bounds.
Return Value
A collection of OcrWord structures that contain the recognized words of this zone.For an example, refer to IOcrPage.GetRecognizedCharacters.
This is a helper method that iterate through the OcrCharacter collection of the zone and constructs the words based on the OcrCharacter.Position flags.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Reference
IOcrZoneCharacters InterfaceIOcrZoneCharacters Members
IOcrPage.SetRecognizedCharacters
IOcrPage.GetRecognizedCharacters
IOcrPage.Recognize
IOcrPage.IsRecognized
OcrCharacter Structure
IOcrPageCharacters Interface
IOcrZoneCharacters Interface
IOcrPageCollection Interface
IOcrZoneCollection Interface
OcrZone Structure
Programming with Leadtools .NET OCR