void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.LBPHFaceRecognizer)) { LogError("owner is not initialized. Add Action \"newLBPHFaceRecognizer\"."); return; } OpenCVForUnity.FaceModule.LBPHFaceRecognizer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.LBPHFaceRecognizer, OpenCVForUnity.FaceModule.LBPHFaceRecognizer>(owner); wrapped_owner.setThreshold((float)val.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.LBPHFaceRecognizer)) { LogError("owner is not initialized. Add Action \"newLBPHFaceRecognizer\"."); return; } OpenCVForUnity.FaceModule.LBPHFaceRecognizer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.LBPHFaceRecognizer, OpenCVForUnity.FaceModule.LBPHFaceRecognizer>(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); }