Skip to content

Commit

Permalink
Removing unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulTR committed Mar 25, 2024
1 parent 1922205 commit 1300aa0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
)
}
}

Expand Down

0 comments on commit 1300aa0

Please sign in to comment.