FaceCompressor.compressAiFromCroppedPortrait Method¶
Module: FaceCompressor
Definition¶
Compresses a pre-aligned 4:3 Bioseal portrait image (256x192) into a fixed-size 500-byte compressed template using a Deep Learning encoder model.
Important
The input image must be in 24-bit BGR format with size 192x256 (width 192, height 256). Loading the FaceCompressionEncoder model is required to use this function.
Uint8List compressAiFromCroppedPortrait(Image image)
Parameters
image Imagein Source 4:3 portrait image to compress. Must be 192x256 BGR 24-bit.
Returns
Uint8ListBuffer that receives the 500-byte compressed face template.
Exceptions
An error has occurred during Face Library execution.