MCPcopy
hub / github.com/tensorflow/tfjs-models / drawKeypoint

Function drawKeypoint

shared/test_util.ts:162–168  ·  view source on GitHub ↗
(keypoint: Keypoint, ctx: CanvasRenderingContext2D)

Source from the content-addressed store, hash-verified

160}
161
162function drawKeypoint(keypoint: Keypoint, ctx: CanvasRenderingContext2D): void {
163 const circle = new Path2D();
164 circle.arc(
165 keypoint.x, keypoint.y, 4 /* radius */, 0 /* startAngle */, 2 * Math.PI);
166 ctx.fill(circle);
167 ctx.stroke(circle);
168}
169
170function drawSkeleton(
171 keypoints: Keypoint[], skeletonAdjacentPairs: number[][],

Callers 1

drawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected