LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
GetWords Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrZoneCharacters Interface : GetWords Method



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.

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.
Gets a collection of recognized the words for this zone.

Syntax

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.

Example

For an example, refer to IOcrPage.GetRecognizedCharacters.

Remarks

This is a helper method that iterate through the OcrCharacter collection of the zone and constructs the words based on the OcrCharacter.Position flags.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

GetWords requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features