getFaceEmbedding
Computes the biometric FaceEmbedding for the detected face in portrait.
Detects the face via BlazeFace, extracts a landmark-aligned crop, and runs embedding inference using the configured FaceNet model.
Return
the computed FaceEmbedding.
Parameters
portrait
encoded image bytes (e.g. JPEG or PNG).
Throws
if no face is detected in portrait or image decoding fails.
if crop extraction or embedding computation fails.
if face matching is not supported on this platform.