Package ai.tech5.sdk.abis.finger
Class T5FingerTemplateCreator
- java.lang.Object
-
- ai.tech5.sdk.abis.finger.T5FingerTemplateCreator
-
public class T5FingerTemplateCreator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description T5FingerTemplateCreator()
-
Method Summary
Modifier and Type Method Description void
cancel()
deletes object of T5FingerTemplateCreatorboolean
create()
creates object of T5FingerTemplateCreatorint
createTemplate(ai.tech5.sdk.abis.finger.ImageData image, byte[] fpTemplate, java.lang.Integer templateSize, byte[] skeleton, java.lang.Integer skeletonSize, java.lang.Byte quality, byte fpType, boolean doSegmentation)
The function builds template from image file Parameters:int
get_max_template_size(byte fpType)
get_max_template_sizejava.lang.String
getVersion()
The function returns version of Tech5_GalleryMatcher_ServerE Parameters:boolean
initLicense(java.lang.String licensePath)
The function sets license Parameters:
-
-
-
Method Detail
-
getVersion
public java.lang.String getVersion()
The function returns version of Tech5_GalleryMatcher_ServerE Parameters:- Returns:
- value of current version
-
create
public boolean create()
creates object of T5FingerTemplateCreator- Returns:
- true on success and false in case of error
-
cancel
public void cancel()
deletes object of T5FingerTemplateCreator
-
get_max_template_size
public int get_max_template_size(byte fpType)
get_max_template_size- Parameters:
fpType
- (input) - can be: 'F' - finger, 'L' - latent, 'P' - palm, 'S' - palm latent- Returns:
- Function returns maximum size of template that can be created by one of 'createTemplate' functions
-
initLicense
public boolean initLicense(java.lang.String licensePath)
The function sets license Parameters:- Parameters:
licensePath
- (input) - path to the license file- Returns:
- true if success and false otherwise
-
createTemplate
public int createTemplate(ai.tech5.sdk.abis.finger.ImageData image, byte[] fpTemplate, java.lang.Integer templateSize, byte[] skeleton, java.lang.Integer skeletonSize, java.lang.Byte quality, byte fpType, boolean doSegmentation)
The function builds template from image file Parameters:- Parameters:
image
- ( input) - image data @see ImageDatafpTemplate
- (output) - pointer to the buffer where fingerprint template will be copied. Memory for that buffer should be allocated in application based on maximum template size value, returned by "get_max__template_size" functiontemplateSize
- (output) - size of built templateskeleton
- ( input) - pointer to the buffer where skeleton will be copied. Memory for that buffer should be allocated in application (size of skeleton cannot be more than size of uncompressed image, i.e. width * height)skeletonSize
- (output) - size of skeleton dataquality
- (output) - quality of fingerprint imagefpType
- ( input) - can be: 'F' - finger, 'L' - latent, 'P' - palm, 'S' - palm latentdoSegmentation
- ( input) - if true, then before build template segmentation will be performed. It will decrease the time of image processing. NOTE: for criminal system and in any other cases, when you are going to show image with the feature, you should set this parameter to false. In other case template will not fit to the features because image will be cropped before build template and all features coordinates will not correspond to the coordinates on original image- Returns:
- SUCCESS if success and error code otherwise
-
-