SecuGen.FDxSDKPro.jni
Class JSGFPLib

java.lang.Object
  extended by SecuGen.FDxSDKPro.jni.JSGFPLib

public class JSGFPLib
extends java.lang.Object

This class is the main entrypoint to the SecuGen device and algorithm functionality. When the JSGFPLib class is instantiated, it loads the JNISGFPLIB library which in turn calls the functions in the SecuGen SGFPLIB library. These libraries are required in the system path before the JSGFPLib class can be used.


Field Summary
 long jniLoadStatus
          SecuGen JNI library initialization status.
 
Constructor Summary
JSGFPLib()
          Creates a new instance of JSGFPLib.
 
Method Summary
 long Close()
          Close SecuGen native library.
 long CloseDevice()
           
 long Configure(long hwnd)
           
 long CreateTemplate(SGFingerInfo fpInfo, byte[] rawImage, byte[] minTemplate)
           
 long GetAnsiMatchingScore(byte[] ansiTemplate1, long sampleNum1, byte[] ansiTemplate2, long sampleNum2, int[] score)
           
 long GetDeviceInfo(SGDeviceInfoParam info)
           
 long GetImage(byte[] buffer)
           
 long GetImageEx(byte[] buffer, long timeout, long dispWnd, long quality)
           
 long GetImageQuality(long width, long height, byte[] imgBuf, int[] quality)
           
 long GetIsoMatchingScore(byte[] isoTemplate1, long sampleNum1, byte[] isoTemplate2, long sampleNum2, int[] score)
           
 long GetLastError()
           
 long GetMatchingScore(byte[] minTemplate1, byte[] minTemplate2, int[] score)
           
 long GetMaxTemplateSize(int[] size)
           
 long GetTemplateSize(byte[] buf, int[] size)
           
 long Init(long devName)
           
 long InitEx(long width, long height, long dpi)
           
 long MatchAnsiTemplate(byte[] ansiTemplate1, long sampleNum1, byte[] ansiTemplate2, long sampleNum2, long secuLevel, boolean[] matched)
           
 long MatchIsoTemplate(byte[] isoTemplate1, long sampleNum1, byte[] isoTemplate2, long sampleNum2, long secuLevel, boolean[] matched)
           
 long MatchTemplate(byte[] minTemplate1, byte[] minTemplate2, long secuLevel, boolean[] matched)
           
 long Open()
          Open SecuGen native library.
 long OpenDevice(long devId)
           
 long SetBrightness(long brightness)
           
 long SetLedOn(boolean on)
           
 long SetTemplateFormat(short format)
           
 java.lang.String toString()
          Returns JSGFPLib native library version string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jniLoadStatus

public long jniLoadStatus
SecuGen JNI library initialization status. This variable is populated when the JSGFPLib open() method is called. For any values other than SGFDxError.ERROR_NONE, the library is in an unstable state.
   Possible values:
   ♦ SGFDxErrorCode.ERROR_NONE
   ♦ SGFDxErrorCode.SGFDX_ERROR_JNI_DLLLOAD_FAILED

See Also:
JSGFPLib#open, SGFDxErrorCode
Constructor Detail

JSGFPLib

public JSGFPLib()
Creates a new instance of JSGFPLib. Also calls open() method to initialize the native library.

See Also:
JSGFPLib#open
Method Detail

Open

public long Open()
Open SecuGen native library. This method must be called before any of the other JSGFPLib methods can be called.


Close

public long Close()
Close SecuGen native library. This should be called before exiting an application or when the JSGFPLib object is about to be deleted.


toString

public java.lang.String toString()
Returns JSGFPLib native library version string.

Overrides:
toString in class java.lang.Object

GetLastError

public long GetLastError()

Init

public long Init(long devName)

InitEx

public long InitEx(long width,
                   long height,
                   long dpi)

SetTemplateFormat

public long SetTemplateFormat(short format)

OpenDevice

public long OpenDevice(long devId)

CloseDevice

public long CloseDevice()

GetDeviceInfo

public long GetDeviceInfo(SGDeviceInfoParam info)

Configure

public long Configure(long hwnd)

SetBrightness

public long SetBrightness(long brightness)

SetLedOn

public long SetLedOn(boolean on)

GetImage

public long GetImage(byte[] buffer)

GetImageEx

public long GetImageEx(byte[] buffer,
                       long timeout,
                       long dispWnd,
                       long quality)

GetImageQuality

public long GetImageQuality(long width,
                            long height,
                            byte[] imgBuf,
                            int[] quality)

GetMaxTemplateSize

public long GetMaxTemplateSize(int[] size)

CreateTemplate

public long CreateTemplate(SGFingerInfo fpInfo,
                           byte[] rawImage,
                           byte[] minTemplate)

GetTemplateSize

public long GetTemplateSize(byte[] buf,
                            int[] size)

MatchTemplate

public long MatchTemplate(byte[] minTemplate1,
                          byte[] minTemplate2,
                          long secuLevel,
                          boolean[] matched)

GetMatchingScore

public long GetMatchingScore(byte[] minTemplate1,
                             byte[] minTemplate2,
                             int[] score)

MatchAnsiTemplate

public long MatchAnsiTemplate(byte[] ansiTemplate1,
                              long sampleNum1,
                              byte[] ansiTemplate2,
                              long sampleNum2,
                              long secuLevel,
                              boolean[] matched)

GetAnsiMatchingScore

public long GetAnsiMatchingScore(byte[] ansiTemplate1,
                                 long sampleNum1,
                                 byte[] ansiTemplate2,
                                 long sampleNum2,
                                 int[] score)

MatchIsoTemplate

public long MatchIsoTemplate(byte[] isoTemplate1,
                             long sampleNum1,
                             byte[] isoTemplate2,
                             long sampleNum2,
                             long secuLevel,
                             boolean[] matched)

GetIsoMatchingScore

public long GetIsoMatchingScore(byte[] isoTemplate1,
                                long sampleNum1,
                                byte[] isoTemplate2,
                                long sampleNum2,
                                int[] score)