- 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) | |
---|---|
Overridable Function GetWords( _ ByVal dpiX As Integer, _ ByVal dpiY As Integer, _ ByVal unit As LogicalUnit _ ) As ICollection(Of OcrWord) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
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