void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); wrapped_owner.setInputSize(new OpenCVForUnity.CoreModule.Size((double)input_size_width.Value, (double)input_size_height.Value)); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.FaceDetectorYN)) { LogError("owner is not initialized. Add Action \"newFaceDetectorYN\"."); return; } OpenCVForUnity.ObjdetectModule.FaceDetectorYN wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.FaceDetectorYN, OpenCVForUnity.ObjdetectModule.FaceDetectorYN>(owner); if (!(input_size.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("input_size is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_input_size = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(input_size); wrapped_owner.setInputSize(wrapped_input_size); }