Skip to content

Commit

Permalink
draw each connections (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
sator-imaging authored Mar 25, 2024
1 parent 920f8c0 commit d863beb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ class OverlayView(context: Context?, attrs: AttributeSet?) :

HandLandmarker.HAND_CONNECTIONS.forEach {
canvas.drawLine(
handLandmarkerResult.landmarks().get(0).get(it!!.start())
landmark.get(it!!.start())
.x() * imageWidth * scaleFactor,
handLandmarkerResult.landmarks().get(0).get(it.start())
landmark.get(it.start())
.y() * imageHeight * scaleFactor,
handLandmarkerResult.landmarks().get(0).get(it.end())
landmark.get(it.end())
.x() * imageWidth * scaleFactor,
handLandmarkerResult.landmarks().get(0).get(it.end())
landmark.get(it.end())
.y() * imageHeight * scaleFactor,
linePaint
)
Expand Down

0 comments on commit d863beb

Please sign in to comment.