I'm using the claraifai API I've retrieved the regions for the face to form the bounding box but actually drawing the box gives me seriously off values as seen in the image.
code:
return {
topRow: face.top_row * height,
leftCol: face.left_col * width,
bottomRow: (face.bottom_row * height) - (face.top_row * height),
rightCol: (face.right_col * width) - (face.left_col * width)
}