void OnDestroy() { _isDone = true; _imageGrabber.Join(); _capDev.Destroy(); _image.Destroy(); _faceImage.Destroy(); _faceDetector.Destroy(); }
public override void Destroy() { Stop(); _img.Destory(); if (_inited) { _detector.Destroy(); _recognizer.Destroy(); } }