Class T5FingerTemplateCreator


  • public class T5FingerTemplateCreator
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      void cancel()
      deletes object of T5FingerTemplateCreator
      boolean create()
      creates object of T5FingerTemplateCreator
      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:
      int get_max_template_size​(byte fpType)
      get_max_template_size
      java.lang.String getVersion()
      The function returns version of Tech5_GalleryMatcher_ServerE Parameters:
      boolean initLicense​(java.lang.String licensePath)
      The function sets license Parameters:
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • T5FingerTemplateCreator

        public T5FingerTemplateCreator()
    • 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 ImageData
        fpTemplate - (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" function
        templateSize - (output) - size of built template
        skeleton - ( 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 data
        quality - (output) - quality of fingerprint image
        fpType - ( input) - can be: 'F' - finger, 'L' - latent, 'P' - palm, 'S' - palm latent
        doSegmentation - ( 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