Looking to halt Posenet after completing app task
private sketch(p: any) {
p.setup = () => {
this.poseNet = ml5.poseNet(p.createCapture(p.VIDEO), {
outputStride: 8
});
this.poseNet.on('pose', (results) => {
//DO SOMETHING WITH results[0]
});
};
}
Tried setting different variables to null without success
StopKI() {
// Terminate PoseNet when done
this.p5 = null;
this.poseNet = null;
console.log('KI stopped');
}