def denormalize_face_position(img, face_loc):
  """
  Parse face position into the proporsions of the given image.

  Args:
    img: Image.
    face_loc: Normalized location of the face on the given image.

  Returns:
    Face location in proporsions to the given image.
  """

  img_h, img_w, _ = img.shape

  return {
    'x': int(face_loc['x'] * img_w),
    'y': int(face_loc['y'] * img_h),
    'height': int(face_loc['height'] * img_h),
    'width': int(face_loc['width'] * img_w)
  }