LEADTOOLS OCR (Leadtools.Forms.Ocr assembly)

GetWords(Int32,Int32,LogicalUnit) Method

Show in webframe







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.
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)

            
public List<OcrWord> getWords(int dpiX,
                                    int dpiY)
            
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

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-2014 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