matchPortraits
Matches two portrait images and returns their cosine similarity.
Computes the biometric FaceEmbedding for each portrait and calculates their cosine similarity.
Return
cosine similarity value typically in range -1.0, 1.0.
Parameters
portraitA
first portrait image bytes.
portraitB
second portrait image bytes.
Throws
if no face is detected in either portrait.
if face matching is not supported on this platform.