コード例 #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.TextDetectionModel_DB))
            {
                LogError("owner is not initialized. Add Action \"newTextDetectionModel_DB\".");
                return;
            }
            OpenCVForUnity.DnnModule.TextDetectionModel_DB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.TextDetectionModel_DB, OpenCVForUnity.DnnModule.TextDetectionModel_DB>(owner);

            storeResult.Value = (float)wrapped_owner.getUnclipRatio();
        }
コード例 #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.TextDetectionModel_DB))
            {
                LogError("owner is not initialized. Add Action \"newTextDetectionModel_DB\".");
                return;
            }
            OpenCVForUnity.DnnModule.TextDetectionModel_DB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.TextDetectionModel_DB, OpenCVForUnity.DnnModule.TextDetectionModel_DB>(owner);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.TextDetectionModel_DB))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.TextDetectionModel_DB();
            }
            ((OpenCVForUnityPlayMakerActions.TextDetectionModel_DB)storeResult.Value).wrappedObject = wrapped_owner.setPolygonThreshold(polygonThreshold.Value);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.TextDetectionModel_DB))
            {
                LogError("owner is not initialized. Add Action \"newTextDetectionModel_DB\".");
                return;
            }
            OpenCVForUnity.DnnModule.TextDetectionModel_DB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.TextDetectionModel_DB, OpenCVForUnity.DnnModule.TextDetectionModel_DB>(owner);

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

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.TextDetectionModel_DB))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.TextDetectionModel_DB();
            }
            ((OpenCVForUnityPlayMakerActions.TextDetectionModel_DB)storeResult.Value).wrappedObject = wrapped_owner.setUnclipRatio(wrapped_unclipRatio);
        }
 public TextDetectionModel_DB(OpenCVForUnity.DnnModule.TextDetectionModel_DB nativeObj) : base(nativeObj)
 {
 }