Click or drag to resize

GlyphReaderLoader Class

This class is used to load all resources for the GlyphReader OCR Engine
Inheritance Hierarchy
SystemObject
  Atalasoft.OcrGlyphReaderLoader

Namespace:  Atalasoft.Ocr
Assembly:  Atalasoft.dotImage.Ocr (in Atalasoft.dotImage.Ocr.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class GlyphReaderLoader

The GlyphReaderLoader type exposes the following members.

Constructors
  NameDescription
Public methodGlyphReaderLoader
Initializes a new instance of the GlyphReaderDllLoader class and loads resources from default locations.
Public methodGlyphReaderLoader(String)
Initializes a new instance of the GlyphReaderDllLoader class and loads resources from a specified location.
Top
Properties
  NameDescription
Public propertyDllHandle
Gets the handle of the DLL from LoadLibrary().
Public propertyFailureMessage
The failure message when the resouces cannot be loaded.
Public propertyFullPath
Gets the full path of the resources.
Public propertyLoaded
Determines if the resources sucessfully loaded.
Public propertyLocation
Gets the folder location of the resources.
Public propertyPathsSearched
Gets collection of folders searched for the resources.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
This class should be constructed in a static constructor before the engine is used in any way.
Examples
 Public Sub Shared Form1
    Dim loader As GlyphReaderLoader = New GlyphReaderLoader()
    If Not loader.Loaded Then
        MessageBox.Show("Failed to load OCR Resources")
    End If
End Sub
 public static Form1()
{
    GlyphReaderLoader loader = new GlyphReaderLoader();
    if (!loader.Loaded)
    {
        MessageBox.Show("Failed to load OCR Resources");
    }
}
Examples
 Public Sub Shared Form1
    Dim loader As GlyphReaderLoader = New GlyphReaderLoader()
    If Not loader.Loaded Then
        MessageBox.Show("Failed to load OCR Resources")
    End If
End Sub
 public static Form1()
{
    GlyphReaderLoader loader = new GlyphReaderLoader();
    if (!loader.Loaded)
    {
        MessageBox.Show("Failed to load OCR Resources");
    }
}
See Also