void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.ANN_MLP))
            {
                LogError("owner is not initialized. Add Action \"newANN_MLP\".");
                return;
            }
            OpenCVForUnity.MlModule.ANN_MLP wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ANN_MLP, OpenCVForUnity.MlModule.ANN_MLP>(owner);

            if (!(param1.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                LogError("param1 is not initialized. Add Action \"newDouble\".");
                return;
            }
            System.Double wrapped_param1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(param1);

            if (!(param2.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                LogError("param2 is not initialized. Add Action \"newDouble\".");
                return;
            }
            System.Double wrapped_param2 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(param2);

            wrapped_owner.setTrainMethod(method.Value, wrapped_param1, wrapped_param2);
        }
예제 #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.ANN_MLP))
            {
                LogError("owner is not initialized. Add Action \"newANN_MLP\".");
                return;
            }
            OpenCVForUnity.MlModule.ANN_MLP wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ANN_MLP, OpenCVForUnity.MlModule.ANN_MLP>(owner);

            wrapped_owner.setTrainMethod(method.Value);
        }