From 3d3a82763017e161751772d4327aa39e2245c4a5 Mon Sep 17 00:00:00 2001 From: 51hhh Date: Thu, 14 Aug 2025 14:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 姿态分类/poseClassifier.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/姿态分类/poseClassifier.js b/姿态分类/poseClassifier.js index 78b5fde..d536a77 100644 --- a/姿态分类/poseClassifier.js +++ b/姿态分类/poseClassifier.js @@ -229,8 +229,9 @@ function flattenPose(pose) { * 清理资源 */ function cleanup() { - if (detector) detector.dispose(); - if (classifier) classifier.clearAllClasses(); + // 还原所有状态 + if (detector) detector.dispose(); // 清理检测器 + if (classifier) classifier.clearAllClasses(); // 清理分类器 } // --- 导出公共接口 ---