(image, faces, output_filename)
Draws a polygon around the faces, then saves to output_filename.

    Args:
      image: a file containing the image with the faces.
      faces: a list of faces found in the file. This should be in the format
          returned by the Vision API.
      output_filename: the name of the image file to be created, where the
          faces have polygons drawn around them.
Draws a polygon around the faces, then saves to output_filename.
Draws a polygon around the faces then saves to output_filename .
def highlight_faces(image, faces, output_filename):
    """Draws a polygon around the faces, then saves to output_filename.

    Args:
      image: a file containing the image with the faces.
      faces: a list of faces found in the file. This should be in the format
          returned by the Vision API.
      output_filename: the name of the image file to be created, where the
          faces have polygons drawn around them.
    """
    im = Image.open(image)
    draw = ImageDraw.Draw(im)  # noqa

    for face in faces:
        box = [(v.get('x', 0.0), v.get('y', 0.0))  # noqa
               for v in face['fdBoundingPoly']['vertices']]
def highlight_faces ( image , faces , output_filename ) : im = Image . open ( image ) draw = ImageDraw . Draw ( im ) # noqa for face in faces : box = [ ( v . get ( 'x' , 0.0 ) , v . get ( 'y' , 0.0 ) ) # noqa for v in face [ 'fdBoundingPoly' ] [ 'vertices' ] ]