void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Net)) { LogError("owner is not initialized. Add Action \"newNet\"."); return; } OpenCVForUnity.DnnModule.Net wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Net, OpenCVForUnity.DnnModule.Net>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_calibData = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(calibData, wrapped_calibData); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Net)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Net(); } ((OpenCVForUnityPlayMakerActions.Net)storeResult.Value).wrappedObject = wrapped_owner.quantize(wrapped_calibData, inputsDtype.Value, outputsDtype.Value); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_calibData, calibData); }