function drawKeypoints(keypoints, minConfidence, ctx, keypointSize, fillColor, strokeColor, scale) {
    if (keypointSize === void 0) { keypointSize = KEYPOINT_SIZE; }
    if (fillColor === void 0) { fillColor = FILL_COLOR; }
    if (strokeColor === void 0) { strokeColor = STROKE_COLOR; }
    if (scale === void 0) { scale = 1; }
    for (var i = 0; i < keypoints.length; i++) {
        var keypoint = keypoints[i];
        if (keypoint.score < minConfidence) {
            continue;
        }
        var _a = keypoint.position, y = _a.y, x = _a.x;
        drawPoint(ctx, y * scale, x * scale, keypointSize, fillColor, strokeColor);
    }
}
/**
 * Draw pose keypoints onto a canvas
 */
Draw pose keypoints onto a canvas
Draw pose keypoints onto a canvas
function drawKeypoints(keypoints, minConfidence, ctx, keypointSize, fillColor, strokeColor, scale) {
    if (keypointSize === void 0) { keypointSize = KEYPOINT_SIZE; }
    if (fillColor === void 0) { fillColor = FILL_COLOR; }
    if (strokeColor === void 0) { strokeColor = STROKE_COLOR; }
    if (scale === void 0) { scale = 1; }
    for (var i = 0; i < keypoints.length; i++) {
        var keypoint = keypoints[i];
        if (keypoint.score < minConfidence) {
            continue;
        }
        var _a = keypoint.position, y = _a.y, x = _a.x;
        drawPoint(ctx, y * scale, x * scale, keypointSize, fillColor, strokeColor);
    }
}
function drawKeypoints ( keypoints , minConfidence , ctx , keypointSize , fillColor , strokeColor , scale ) { if ( keypointSize === void 0 ) { keypointSize = KEYPOINT_SIZE ; } if ( fillColor === void 0 ) { fillColor = FILL_COLOR ; } if ( strokeColor === void 0 ) { strokeColor = STROKE_COLOR ; } if ( scale === void 0 ) { scale = 1 ; } for ( var i = 0 ; i < keypoints . length ; i ++ ) { var keypoint = keypoints [ i ] ; if ( keypoint . score < minConfidence ) { continue ; } var _a = keypoint . position , y = _a . y , x = _a . x ; drawPoint ( ctx , y * scale , x * scale , keypointSize , fillColor , strokeColor ) ; } }
Draw pose keypoints onto a canvas
Draw pose keypoints onto a canvas