diff --git a/examples/bodyPose-skeleton/index.html b/examples/bodyPose-skeletal-connections/index.html
similarity index 100%
rename from examples/bodyPose-skeleton/index.html
rename to examples/bodyPose-skeletal-connections/index.html
diff --git a/examples/bodyPose-skeleton/sketch.js b/examples/bodyPose-skeletal-connections/sketch.js
similarity index 95%
rename from examples/bodyPose-skeleton/sketch.js
rename to examples/bodyPose-skeletal-connections/sketch.js
index 18527d2d..0e657740 100644
--- a/examples/bodyPose-skeleton/sketch.js
+++ b/examples/bodyPose-skeletal-connections/sketch.js
@@ -26,8 +26,8 @@ function setup() {
// Start detecting poses in the webcam video
bodyPose.detectStart(video, gotPoses);
- // Get the skeleton connection information
- connections = bodyPose.getSkeleton();
+ // Get the skeletal connection information
+ connections = bodyPose.getConnections();
}
function draw() {
diff --git a/src/BodyPose/index.js b/src/BodyPose/index.js
index fb4fc438..e1efe833 100644
--- a/src/BodyPose/index.js
+++ b/src/BodyPose/index.js
@@ -513,11 +513,11 @@ class BodyPose {
}
/**
- * Returns the skeleton connections pairs for the model.
+ * Returns the skeletal connections pairs for the model.
* @returns {number[][]} an array of pairs of indices containing the connected keypoints.
* @public
*/
- getSkeleton() {
+ getConnections() {
if (this.modelName === "BlazePose") {
return poseDetection.util.getAdjacentPairs(
poseDetection.SupportedModels.BlazePose
@@ -528,6 +528,16 @@ class BodyPose {
);
}
}
+
+ /**
+ * Returns the skeletal connections pairs for the model.
+ * An alias for `getConnections`.
+ * @returns {number[][]} an array of pairs of indices containing the connected keypoints.
+ * @public
+ */
+ getSkeleton() {
+ return this.getConnections();
+ }
}
/**