Beispiel #1
0
        void DoProcess()
        {
            if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject))
            {
                //                LogError ("owner is not initialized. Add Action \"newClassName\".");
                return;
            }
            DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject wrapper = owner.Value as DlibFaceLandmarkDetectorPlayMakerActions.DisposableDlibObject;
            DlibFaceLandmarkDetector.DisposableDlibObject warapped = wrapper.wrappedObject as DlibFaceLandmarkDetector.DisposableDlibObject;

            warapped.Dispose();
            wrapper.wrappedObject = null;

            Object.Destroy(owner.Value);
            owner.Value = null;
        }
Beispiel #2
0
 public DisposableDlibObject(DlibFaceLandmarkDetector.DisposableDlibObject nativeObj)
     : base(nativeObj)
 {
 }