Class FaceInfo

    • Constructor Detail

      • FaceInfo

        public FaceInfo​(java.util.List<FaceImageInfo> faceImageInfos)
        Constructs a face info from a list of face image infos.
        Parameters:
        faceImageInfos - face image infos
      • FaceInfo

        public FaceInfo​(StandardBiometricHeader sbh,
                        java.util.List<FaceImageInfo> faceImageInfos)
        Constructs a face info from a list of face image infos.
        Parameters:
        sbh - the standard biometric header to use
        faceImageInfos - face image infos
      • FaceInfo

        public FaceInfo​(java.io.InputStream inputStream)
                 throws java.io.IOException
        Constructs a face info from binary encoding.
        Parameters:
        inputStream - an input stream
        Throws:
        java.io.IOException - when decoding fails
      • FaceInfo

        public FaceInfo​(StandardBiometricHeader sbh,
                        java.io.InputStream inputStream)
                 throws java.io.IOException
        Constructs a face info from binary encoding.
        Parameters:
        sbh - the standard biometric header to use
        inputStream - an input stream
        Throws:
        java.io.IOException - when decoding fails
    • Method Detail

      • readObject

        public void readObject​(java.io.InputStream inputStream)
                        throws java.io.IOException
        Reads the facial record from an input stream. Note that the standard biometric header has already been read.
        Specified by:
        readObject in class AbstractListInfo<FaceImageInfo>
        Parameters:
        inputStream - the input stream
        Throws:
        java.io.IOException - on error reading from the stream
      • writeObject

        public void writeObject​(java.io.OutputStream outputStream)
                         throws java.io.IOException
        Writes the facial record to an output stream. Note that the standard biometric header (part of CBEFF structure) is not written here.
        Specified by:
        writeObject in class AbstractListInfo<FaceImageInfo>
        Parameters:
        outputStream - an output stream
        Throws:
        java.io.IOException - on error writing to the stream
      • getFaceImageInfos

        public java.util.List<FaceImageInfo> getFaceImageInfos()
        Returns the face image infos embedded in this face info.
        Returns:
        the embedded face image infos
      • addFaceImageInfo

        public void addFaceImageInfo​(FaceImageInfo faceImageInfo)
        Adds a face image info to this face info.
        Parameters:
        faceImageInfo - the face image info to add
      • removeFaceImageInfo

        public void removeFaceImageInfo​(int index)
        Removes a face image info from this face info.
        Parameters:
        index - the index of the face image info to remove
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object