提交
This commit is contained in:
parent
6feb9b5d21
commit
3d3a827630
@ -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(); // 清理分类器
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- 导出公共接口 ---
|
// --- 导出公共接口 ---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user