Skip to content

Commit

Permalink
💄: add colors back to poses
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamer92000 committed May 17, 2023
1 parent 678c4dd commit 603c361
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/train/components/videoElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,11 @@ const VideoElement: React.FC<Props> = ({
drawingUtils.drawLandmarks(landmarks, {
radius: (data) =>
DrawingUtils.lerp(data.from?.z ?? 0, -0.15, 0.1, 5, 1),
color: isExpected ? "#0000" : "#FF0000",
});
drawingUtils.drawConnectors(landmarks, PoseLandmarker.POSE_CONNECTIONS, {
color: isExpected ? "#ff9900" : "#00FF00",
});
drawingUtils.drawConnectors(landmarks, PoseLandmarker.POSE_CONNECTIONS);

if (!isExpected) {
currentPose.current = landmarks;
Expand Down

0 comments on commit 603c361

Please sign in to comment.