Question 155:
You provisioned the Face service in Azure. While you analyzed the results of a set of face data, you observed inefficiencies in analysis where the face was angled. In your coding you plan to use the necessary attribute to rotate the face for better analysis. Review the code snippet below and complete it by selecting the attribute to rotate the face rectangle. (select one answer choice)
<pre class="brush:java;">if (face.FaceAttributes?................................ != null)
{
faceAngle = face.FaceAttributes.?.................................Roll;
var angleToPi = Math.Abs((faceAngle / 180) * Math.PI);
var newLeft = face.FaceRectangle.Left +
face.FaceRectangle.Width / 2 -
(face.FaceRectangle.Width * Math.Sin(angleToPi) + face.FaceRectangle.Height * Math.Cos(angleToPi)) / 2;
var newTop = face.FaceRectangle.Top +
face.FaceRectangle.Height / 2 -
(face.FaceRectangle.Height * Math.Sin(angleToPi) + face.FaceRectangle.Width * Math.Cos(angleToPi)) / 2;
left = (int)(newLeft * scale + uiXOffset);
top = (int)(newTop * scale + uiYOffset);
}
</pre>
Answer options:
A.FaceRectangle B.Occlusion C.Exposure D.HeadPose