Class FaceInfo

    • Constructor Detail

      • FaceInfo

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

        public FaceInfo​(StandardBiometricHeader sbh,
                        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​(InputStream inputStream)
                 throws IOException
        Constructs a face info from binary encoding.
        Parameters:
        inputStream - an input stream
        Throws:
        IOException - when decoding fails
    • Method Detail

      • readObject

        public void readObject​(InputStream inputStream)
                        throws 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:
        IOException - on error reading from the stream
      • writeObject

        public void writeObject​(OutputStream outputStream)
                         throws 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:
        IOException - on error writing to the stream
      • getFaceImageInfos

        public 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