calculateFaceLocation = (data) => {
var clarifaiFace = data.outputs[0].data.regions[0].region_info.bounding_box;
var image = document.getElementById('inputimage');
var width = Number(image.width);
var height = Number(image.height);
console.log(clarifaiFace);
return {
leftCol: clarifaiFace.left_col * width,
topRow: clarifaiFace.top_row * height,
rightCol: width - (clarifaiFace.right_col * width),
bottomRow: height - (clarifaiFace.bottom_row * height)
}
}