Пример #1
0
        void DoProcess()
        {
            if (!(owner.Value is DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector))
            {
                LogError("owner is not initialized. Add Action \"newFaceLandmarkDetector\".");
                return;
            }
            DlibFaceLandmarkDetector.FaceLandmarkDetector wrapped_owner = DlibFaceLandmarkDetectorPlayMakerActionsUtils.GetWrappedObject <DlibFaceLandmarkDetectorPlayMakerActions.FaceLandmarkDetector, DlibFaceLandmarkDetector.FaceLandmarkDetector> (owner);


            List <DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection> wrapped_storeResult = wrapped_owner.DetectRectDetection();

            if (!storeResult.IsNone)
            {
                DlibFaceLandmarkDetectorPlayMakerActionsUtils.ConvertListToFsmArray <DlibFaceLandmarkDetector.FaceLandmarkDetector.RectDetection, DlibFaceLandmarkDetectorPlayMakerActions.RectDetection> (wrapped_storeResult, storeResult);
            }
        }