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

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

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

            wrapped_owner.compute(wrapped_image, wrapped_features);
        }
示例#2
0
        //javadoc: BIF::create()
        public static BIF create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            BIF retVal = BIF.__fromPtr__(face_BIF_create_12());

            return(retVal);
#else
            return(null);
#endif
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.BIF))
            {
                LogError("owner is not initialized. Add Action \"newBIF\".");
                return;
            }
            OpenCVForUnity.FaceModule.BIF wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BIF, OpenCVForUnity.FaceModule.BIF>(owner);

            storeResult.Value = wrapped_owner.getNumRotations();
        }
 public BIF(OpenCVForUnity.FaceModule.BIF nativeObj) : base(nativeObj)
 {
 }
示例#5
0
 /**
  * return Object for computing BIF.
  */
 public static BIF create()
 {
     return(BIF.__fromPtr__(face_BIF_create_12()));
 }
示例#6
0
 /**
  * param num_bands The number of filter bands (&lt;=8) used for computing BIF.
  * return Object for computing BIF.
  */
 public static BIF create(int num_bands)
 {
     return(BIF.__fromPtr__(face_BIF_create_11(num_bands)));
 }
示例#7
0
        //
        // C++: static Ptr_BIF cv::face::BIF::create(int num_bands = 8, int num_rotations = 12)
        //

        /**
         * param num_bands The number of filter bands (&lt;=8) used for computing BIF.
         * param num_rotations The number of image rotations for computing BIF.
         * return Object for computing BIF.
         */
        public static BIF create(int num_bands, int num_rotations)
        {
            return(BIF.__fromPtr__(face_BIF_create_10(num_bands, num_rotations)));
        }