FaceCompressor.compressAi Method¶
Module: FaceCompressor
Definition¶
Detects the largest face in an image, aligns and crops it into a Bioseal portrait (256x192), and compresses it into a fixed-size 500-byte template using a Deep Learning encoder model.
Important
The input image must be in 24-bit BGR format. Loading a FaceDetector model and the FaceCompressionEncoder model is required to use this function.
Uint8List compressAi(Image image)
Parameters
image Imagein Source image containing a face to detect and compress.
Returns
Uint8ListBuffer that receives the 500-byte compressed face template.
Exceptions
An error has occurred during Face Library execution.