From 1300aa0ec6e452545a4106102ffd900555221293 Mon Sep 17 00:00:00 2001 From: Paul Ruiz Date: Mon, 25 Mar 2024 10:42:15 -0600 Subject: [PATCH 1/2] Removing unnecessary logs --- .../mediapipe/examples/facelandmarker/OverlayView.kt | 9 --------- .../fragment/FaceBlendshapesResultAdapter.kt | 6 +----- 2 files changed, 1 insertion(+), 14 deletions(-) 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" - ) } } From 70ba5480deab779d9ccf1b7bf19c6b7c7e3a3d94 Mon Sep 17 00:00:00 2001 From: Paul Ruiz Date: Mon, 25 Mar 2024 10:43:04 -0600 Subject: [PATCH 2/2] Removing unnecessary logs --- .../facelandmarker/fragment/FaceBlendshapesResultAdapter.kt | 1 - 1 file changed, 1 deletion(-) 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 5a88711d..09fabd27 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,7 +16,6 @@ package com.google.mediapipe.examples.facelandmarker.fragment -import android.util.Log import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView