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

            storeResult.Value = wrapped_owner.get_preferableTarget();
        }
Пример #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Layer))
            {
                LogError("owner is not initialized. Add Action \"newLayer\".");
                return;
            }
            OpenCVForUnity.DnnModule.Layer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Layer, OpenCVForUnity.DnnModule.Layer>(owner);

            List <OpenCVForUnity.CoreModule.Mat> wrapped_storeResult = wrapped_owner.get_blobs();

            if (!storeResult.IsNone)
            {
                OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_storeResult, storeResult);
            }
        }
Пример #3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Layer))
            {
                LogError("owner is not initialized. Add Action \"newLayer\".");
                return;
            }
            OpenCVForUnity.DnnModule.Layer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Layer, OpenCVForUnity.DnnModule.Layer>(owner);

            List <OpenCVForUnity.CoreModule.Mat> wrapped_blobs = new List <OpenCVForUnity.CoreModule.Mat>();

            OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(blobs, wrapped_blobs);

            wrapped_owner.set_blobs(wrapped_blobs);

            OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_blobs, blobs);
        }
 public Layer(OpenCVForUnity.DnnModule.Layer nativeObj) : base(nativeObj)
 {
 }