Issues details
I tried the ML Kit Face detection sample app from here but was not able to receive landmark data for the ears while running the LiveDataPreviewActivity.
The call face.getLandmark always returns null for FirebaseVisionFaceLandmark.LEFT_EAR and FirebaseVisionFaceLandmark.RIGHT_EAR. All other landmarks are highlighted and retrieved just fine.
(Tested on Google Pixel and Samsung S6)
Anyone else encountered this issue? Is there some additional setup needed for detecting the ears? ... I also added a github issue to the repo, but I think the stackoverflow community is more active.
Relevant code
drawLandmarkPosition(canvas, face, FirebaseVisionFaceLandmark.LEFT_EAR)
drawLandmarkPosition(canvas, face, FirebaseVisionFaceLandmark.RIGHT_EAR)
...
private fun drawLandmarkPosition(canvas: Canvas, face: FirebaseVisionFace, landmarkID: Int) {
val landmark = face.getLandmark(landmarkID)
landmark?.let {
val point = landmark.position
canvas.drawCircle(
translateX(point.x),
translateY(point.y),
10f, idPaint)
}
}
... the landmark value is always null.