Type that describes the face Amazon Rekognition chose to compare with the faces in the target. This contains a bounding box for the selected face and confidence level that the bounding box contains a face. Note that Amazon Rekognition selects the largest face in the source image for this comparison.
Example #1
0
        // Função sobrecarga que recebe o parâmetro da CompareFaces
        public string Drawing(MemoryStream imageSource, aws.ComparedSourceImageFace faceMatch)
        {
            // Cria uma lista de quadrados que será desenhada na imagem
            var squares = new List <aws.BoundingBox>();

            // Adiciona as posições dos quadrados que serão desenhados
            squares.Add(
                new aws.BoundingBox {
                Left   = faceMatch.BoundingBox.Left,
                Top    = faceMatch.BoundingBox.Top,
                Width  = faceMatch.BoundingBox.Width,
                Height = faceMatch.BoundingBox.Height
            }
                );

            return(Drawing(imageSource, squares));
        }