LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)
LEAD Technologies, Inc

GetWords(Int32,Int32,LogicalUnit) Method






Horizontal resolution to use when calculating OcrWord.Bounds if unit is LogicalUnit.Pixels.
Vertical resolution to use when calculating OcrWord.Bounds if unit is LogicalUnit.Pixels.
Desired unit to use when calculating OcrWord.Bounds.
Gets a list of recognized the words for this zone in the specified units. .NET support
Syntax
IList<OcrWord> GetWords( 
   int dpiX,
   int dpiY,
   LogicalUnit unit
)
'Declaration
 
Overloads Function GetWords( _
   ByVal dpiX As Integer, _
   ByVal dpiY As Integer, _
   ByVal unit As LogicalUnit _
) As IList(Of OcrWord)
'Usage
 
Dim instance As IOcrZoneCharacters
Dim dpiX As Integer
Dim dpiY As Integer
Dim unit As LogicalUnit
Dim value As IList(Of OcrWord)
 
value = instance.GetWords(dpiX, dpiY, unit)
function Leadtools.Forms.Ocr.IOcrZoneCharacters.GetWords(Int32,Int32,LogicalUnit)( 
   dpiX ,
   dpiY ,
   unit 
)
IList<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 list of OcrWord structures that contain the recognized words of this zone.
Remarks

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

The returned words contain bound values in unit.

Example
For an example, refer to IOcrPage.GetRecognizedCharacters.
Requirements

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

See Also

Reference

IOcrZoneCharacters Interface
IOcrZoneCharacters Members
Overload List
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

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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