This commit is contained in:
51hhh 2025-08-14 14:58:14 +08:00
parent 6feb9b5d21
commit 3d3a827630

View File

@ -229,8 +229,9 @@ function flattenPose(pose) {
* 清理资源 * 清理资源
*/ */
function cleanup() { function cleanup() {
if (detector) detector.dispose(); // 还原所有状态
if (classifier) classifier.clearAllClasses(); if (detector) detector.dispose(); // 清理检测器
if (classifier) classifier.clearAllClasses(); // 清理分类器
} }
// --- 导出公共接口 --- // --- 导出公共接口 ---