Leadtools.Forms.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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.
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) 
Overridable 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# 
virtual ICollection<OcrWord> GetWords( 
   int dpiX,
   int dpiY,
   LogicalUnit unit
)
C++/CLI 
virtual 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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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