|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.griaule.grFinger.GrFinger
public class GrFinger
This is the GrFinger Library Java main class. This class includes all GrFinger library features.
Field Summary | |
---|---|
static int |
GR_DEFAULT_DIM
The default dimension. |
static int |
GR_DEFAULT_RES
The default resolution. |
static int |
GR_DEFAULT_USED
The supplied value is invalid or out of range. |
static int |
GR_LOW_FAR
Threshold value that defines a low FAR of 1 in 10000. |
static int |
GR_LOW_FRR
Threshold value that defines a low FRR of 1 in 1000. |
static int |
GR_MAX_IMAGE_HEIGHT
Maximum image height. |
static int |
GR_MAX_IMAGE_WIDTH
Maximum image width |
static int |
GR_MAX_RESOLUTION
Maximum image resolution in DPI. |
static int |
GR_MAX_SIZE_TEMPLATE
Maximum template size. |
static int |
GR_MAX_THRESHOLD
Maximum threshold value. |
static int |
GR_MIN_IMAGE_HEIGHT
Minimum image height. |
static int |
GR_MIN_IMAGE_WIDTH
Minimum image width. |
static int |
GR_MIN_RESOLUTION
Minimum image resolution in DPI. |
static int |
GR_MIN_THRESHOLD
Minimum threshold value. |
static int |
GR_OK
No error. |
static int |
GR_ROT_MAX
Maximum rotation tolerance. |
static int |
GR_ROT_MIN
Minimum rotation tolerance. |
static int |
GR_VERYLOW_FAR
Threshold value that defines a very low FAR of 1 in 100000. |
static int |
GR_VERYLOW_FRR
Threshold value that defines a very low FRR of 1 in 100. |
Constructor Summary | |
---|---|
GrFinger()
Default GrFinger constructor. |
Method Summary | |
---|---|
FingerprintTemplate |
extract(FingerprintImage image,
Context context)
Extracts a template from the supplied fingerprint image. |
void |
finalize()
|
void |
finalizeCapture()
Finalizes the capture module and free associated resources. |
ImageProducer |
getBiometricDisplay(FingerprintTemplate template,
FingerprintImage img,
Context matchContext)
Returns an ImageProducer object to show a biometric image on screen. |
MatchParameters |
getIdentifyParameters(Context context)
Get the identification parameters for the given context. |
MatchParameters |
getVerifyParameters(Context context)
Get the verification parameters for the given context. |
Version |
getVersion()
Get the library version and the license type. |
MatchingResult |
identify(FingerprintTemplate templateReference,
Context context)
Identify the supplied reference template against a previously prepared query template. |
void |
identifyPrepare(FingerprintTemplate templateQuery,
Context context)
Prepare a query template to be identified against reference templates. |
void |
initializeCapture(StatusCallBack statusEventHandler)
Initializes the capture module. |
void |
loadImageFromFile(String fileName,
int resolution)
Load an image from a file. |
void |
setBiometricDisplayColors(Color minutiaeColor,
Color minutiaeMatchedColor,
Color segmentColor,
Color segmentMatchedColor,
Color directionColor,
Color directionMatchedColor)
Set the colors for a biometric data (minutiae, segments and minutiae direction). |
int |
setIdentifyParameters(MatchParameters matchParameters,
Context context)
Set the identification parameters in the given context. |
int |
setVerifyParameters(MatchParameters matchParameters,
Context context)
Set the verification parameters in the given context. |
void |
startCapture(String idSensor,
FingerCallBack fingerEventHandler,
ImageCallBack imageEventHandler)
Start capturing images from the sensor defined by "idSensor". |
void |
stopCapture(String idSensor)
Stop capturing images from the given sensor. |
MatchingResult |
verify(FingerprintTemplate queryTemplate,
FingerprintTemplate referenceTemplate,
Context context)
Performs verification confronting two given templates. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GR_OK
public static final int GR_DEFAULT_USED
public static final int GR_DEFAULT_RES
public static final int GR_DEFAULT_DIM
public static final int GR_MAX_SIZE_TEMPLATE
public static final int GR_MAX_IMAGE_WIDTH
public static final int GR_MAX_IMAGE_HEIGHT
public static final int GR_MAX_RESOLUTION
public static final int GR_MIN_IMAGE_WIDTH
public static final int GR_MIN_IMAGE_HEIGHT
public static final int GR_MIN_RESOLUTION
public static final int GR_MAX_THRESHOLD
public static final int GR_MIN_THRESHOLD
public static final int GR_VERYLOW_FRR
public static final int GR_LOW_FRR
public static final int GR_LOW_FAR
public static final int GR_VERYLOW_FAR
public static final int GR_ROT_MIN
public static final int GR_ROT_MAX
Constructor Detail |
---|
public GrFinger() throws GrErrorException
GrErrorException
Method Detail |
---|
public void finalize() throws Throwable
finalize
in class Object
Throwable
public void initializeCapture(StatusCallBack statusEventHandler) throws GrErrorException
statusEventHandler
- A class that implements the StatusCallBack interface.
GrErrorException
StatusCallBack
public void finalizeCapture() throws GrErrorException
GrErrorException
public void startCapture(String idSensor, FingerCallBack fingerEventHandler, ImageCallBack imageEventHandler) throws GrErrorException
idSensor
- The identification of the sensor that you want to capture
from. The sensor must be already connected.fingerEventHandler
- Implementation of FingerEventHandler that will handle the finger
events. This class will be called every time a finger is
placed or removed from the sensor.imageEventHandler
- Implementation of ImageEventHandler that will handle the image
events. This class will be called every time an image is
captured.
GrErrorException
public void stopCapture(String idSensor) throws GrErrorException
idSensor
- The identification of the sensor that you want to stop capturing
from.
GrErrorException
public void loadImageFromFile(String fileName, int resolution) throws GrErrorException
fileName
- The file name of the image to be loaded. This file must exist
and you must have read access to it.resolution
- The resolution in dpi of the supplied image.
GrErrorException
startCapture(String, FingerCallBack, ImageCallBack)
public FingerprintTemplate extract(FingerprintImage image, Context context) throws GrErrorException
image
- The image to be extracted.context
- Context where the extraction will be executed.
GrErrorException
public MatchingResult verify(FingerprintTemplate queryTemplate, FingerprintTemplate referenceTemplate, Context context) throws GrErrorException
queryTemplate
- Query template to be verified.referenceTemplate
- Reference template to be verified.context
- Context where the verification will be performed.
GrErrorException
public void identifyPrepare(FingerprintTemplate templateQuery, Context context) throws GrErrorException
templateQuery
- Query template to be identified.context
- Context where the identification will be performed.
GrErrorException
identify(FingerprintTemplate, Context)
public MatchingResult identify(FingerprintTemplate templateReference, Context context) throws GrErrorException
templateReference
- Reference template to be identified.context
- Context where the identification will be performed.
GrErrorException
identifyPrepare(FingerprintTemplate, Context)
public int setIdentifyParameters(MatchParameters matchParameters, Context context) throws GrErrorException
matchParameters
- The identification match parameters.context
- Context in which the parameters will be set.
GrErrorException
public int setVerifyParameters(MatchParameters matchParameters, Context context) throws GrErrorException
matchParameters
- The verification match parameters.context
- Context in which the parameters will be set.
GrErrorException
public MatchParameters getIdentifyParameters(Context context) throws GrErrorException
context
- Context where the parameter will be get from.
GrErrorException
public MatchParameters getVerifyParameters(Context context) throws GrErrorException
context
- Context where the parameter will be get from.
GrErrorException
public ImageProducer getBiometricDisplay(FingerprintTemplate template, FingerprintImage img, Context matchContext) throws GrErrorException
template
- template that must be displayed.img
- fingerprint image used to extract templatematchContext
- context in which the match (identification or verification) was made or Context.GR_NO_CONTEXT
if match information must not be displayed.
GrErrorException
Component.createImage(java.awt.image.ImageProducer)
,
setBiometricDisplayColors(Color, Color, Color, Color, Color, Color)
public void setBiometricDisplayColors(Color minutiaeColor, Color minutiaeMatchedColor, Color segmentColor, Color segmentMatchedColor, Color directionColor, Color directionMatchedColor) throws GrErrorException
minutiaeColor
- minutiae colorminutiaeMatchedColor
- matching minutiae colorsegmentColor
- segments colorsegmentMatchedColor
- matching segments colordirectionColor
- minutiae direction colordirectionMatchedColor
- matching minutiae direction color
GrErrorException
getBiometricDisplay(FingerprintTemplate, FingerprintImage, Context)
public Version getVersion() throws GrErrorException
GrErrorException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |