diff --git a/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/OverlayView.kt b/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/OverlayView.kt index 62dc1245..cb191fab 100644 --- a/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/OverlayView.kt +++ b/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/OverlayView.kt @@ -20,7 +20,6 @@ import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.util.AttributeSet -import android.util.Log import android.view.View import androidx.core.content.ContextCompat import com.google.mediapipe.tasks.vision.core.RunningMode @@ -72,14 +71,6 @@ class OverlayView(context: Context?, attrs: AttributeSet?) : results?.let { faceLandmarkerResult -> - if( faceLandmarkerResult.faceBlendshapes().isPresent) { - faceLandmarkerResult.faceBlendshapes().get().forEach { - it.forEach { - Log.e(TAG, it.displayName() + " " + it.score()) - } - } - } - for(landmark in faceLandmarkerResult.faceLandmarks()) { for(normalizedLandmark in landmark) { canvas.drawPoint(normalizedLandmark.x() * imageWidth * scaleFactor, normalizedLandmark.y() * imageHeight * scaleFactor, pointPaint) diff --git a/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/fragment/FaceBlendshapesResultAdapter.kt b/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/fragment/FaceBlendshapesResultAdapter.kt index ea7635aa..5a88711d 100644 --- a/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/fragment/FaceBlendshapesResultAdapter.kt +++ b/examples/face_landmarker/android/app/src/main/java/com/google/mediapipe/examples/facelandmarker/fragment/FaceBlendshapesResultAdapter.kt @@ -16,6 +16,7 @@ package com.google.mediapipe.examples.facelandmarker.fragment +import android.util.Log import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView @@ -40,11 +41,6 @@ class FaceBlendshapesResultAdapter : for (i in 0 until min) { categories[i] = sortedCategories[i] } - } else { - Log.v( - "FaceBlendshapesResultAdapter", - "FaceLandmarkerResult is null or faceBlendshapes has no value is present for this frame" - ) } }