Example #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.KeypointsModel))
            {
                LogError("owner is not initialized. Add Action \"newKeypointsModel\".");
                return;
            }
            OpenCVForUnity.DnnModule.KeypointsModel wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.KeypointsModel, OpenCVForUnity.DnnModule.KeypointsModel>(owner);

            if (!(frame.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("frame is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_frame = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(frame);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.MatOfPoint2f();
            }
            ((OpenCVForUnityPlayMakerActions.MatOfPoint2f)storeResult.Value).wrappedObject = wrapped_owner.estimate(wrapped_frame);
        }
Example #2
0
 public KeypointsModel(OpenCVForUnity.DnnModule.KeypointsModel nativeObj) : base(nativeObj)
 {
 }