void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BasicFaceRecognizer)) { LogError("owner is not initialized. Add Action \"newBasicFaceRecognizer\"."); return; } OpenCVForUnity.FaceModule.BasicFaceRecognizer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BasicFaceRecognizer, OpenCVForUnity.FaceModule.BasicFaceRecognizer>(owner); storeResult.Value = (float)wrapped_owner.getThreshold(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BasicFaceRecognizer)) { LogError("owner is not initialized. Add Action \"newBasicFaceRecognizer\"."); return; } OpenCVForUnity.FaceModule.BasicFaceRecognizer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BasicFaceRecognizer, OpenCVForUnity.FaceModule.BasicFaceRecognizer>(owner); wrapped_owner.setNumComponents(val.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BasicFaceRecognizer)) { LogError("owner is not initialized. Add Action \"newBasicFaceRecognizer\"."); return; } OpenCVForUnity.FaceModule.BasicFaceRecognizer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BasicFaceRecognizer, OpenCVForUnity.FaceModule.BasicFaceRecognizer>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = wrapped_owner.getEigenVectors(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BasicFaceRecognizer)) { LogError("owner is not initialized. Add Action \"newBasicFaceRecognizer\"."); return; } OpenCVForUnity.FaceModule.BasicFaceRecognizer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BasicFaceRecognizer, OpenCVForUnity.FaceModule.BasicFaceRecognizer>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_storeResult = wrapped_owner.getProjections(); if (!storeResult.IsNone) { OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_storeResult, storeResult); } }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BasicFaceRecognizer)) { LogError("owner is not initialized. Add Action \"newBasicFaceRecognizer\"."); return; } OpenCVForUnity.FaceModule.BasicFaceRecognizer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BasicFaceRecognizer, OpenCVForUnity.FaceModule.BasicFaceRecognizer>(owner); if (!(val.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("val is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_val = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(val); wrapped_owner.setThreshold(wrapped_val); }
public BasicFaceRecognizer(OpenCVForUnity.FaceModule.BasicFaceRecognizer nativeObj) : base(nativeObj) { }