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

Function draw

shared/test_util.ts:189–199  ·  view source on GitHub ↗
(
    keypoints: Keypoint[], ctx: CanvasRenderingContext2D,
    skeletonAdjacentPairs: number[][], color: string)

Source from the content-addressed store, hash-verified

187}
188
189function draw(
190 keypoints: Keypoint[], ctx: CanvasRenderingContext2D,
191 skeletonAdjacentPairs: number[][], color: string) {
192 ctx.fillStyle = color;
193 ctx.strokeStyle = color;
194
195 for (const keypoint of keypoints) {
196 drawKeypoint(keypoint, ctx);
197 }
198 drawSkeleton(keypoints, skeletonAdjacentPairs, ctx, color);
199}

Callers 1

loadVideoFunction · 0.85

Calls 2

drawKeypointFunction · 0.85
drawSkeletonFunction · 0.70

Tested by

no test coverage detected