Slide 24
Slide 24 text
val bounds = face.boundingBox
val rotY = face.headEulerAngleY // Head is rotated to the right rotY degrees
val rotZ = face.headEulerAngleZ // Head is tilted sideways rotZ degrees
// If landmark detection was enabled (mouth, ears, eyes, cheeks, and
// nose available):
val leftEar = face.getLandmark(FirebaseVisionFaceLandmark.LEFT_EAR)
if (leftEar != null) {
val leftEarPos = leftEar.position
}
Machine Learning on Mobile with MLKit - @ErikHellman, Øredev 2018