Exemplo n.º 1
0
        //javadoc: MACE::load(filename)
        public static MACE load(string filename)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            MACE retVal = MACE.__fromPtr__(face_MACE_load_11(filename));

            return(retVal);
#else
            return(null);
#endif
        }
Exemplo n.º 2
0
        //javadoc: MACE::create()
        public static MACE create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            MACE retVal = MACE.__fromPtr__(face_MACE_create_11());

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

            wrapped_owner.salt(passphrase.Value);
        }
Exemplo n.º 4
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.MACE))
            {
                LogError("owner is not initialized. Add Action \"newMACE\".");
                return;
            }
            OpenCVForUnity.FaceModule.MACE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MACE, OpenCVForUnity.FaceModule.MACE>(owner);

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

            OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(images, wrapped_images);

            wrapped_owner.train(wrapped_images);

            OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_images, images);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.MACE))
            {
                LogError("owner is not initialized. Add Action \"newMACE\".");
                return;
            }
            OpenCVForUnity.FaceModule.MACE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MACE, OpenCVForUnity.FaceModule.MACE>(owner);

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

            storeResult.Value = wrapped_owner.same(wrapped_query);

            Fsm.Event(storeResult.Value ? trueEvent : falseEvent);
        }
Exemplo n.º 6
0
 public MACE(OpenCVForUnity.FaceModule.MACE nativeObj) : base(nativeObj)
 {
 }
Exemplo n.º 7
0
 /**
  * constructor
  *     param filename  build a new MACE instance from a pre-serialized FileStorage
  * return automatically generated
  */
 public static MACE load(string filename)
 {
     return(MACE.__fromPtr__(face_MACE_load_11(filename)));
 }
Exemplo n.º 8
0
 /**
  * constructor
  * return automatically generated
  */
 public static MACE create()
 {
     return(MACE.__fromPtr__(face_MACE_create_11()));
 }
Exemplo n.º 9
0
        //
        // C++: static Ptr_MACE cv::face::MACE::create(int IMGSIZE = 64)
        //

        /**
         * constructor
         *     param IMGSIZE  images will get resized to this (should be an even number)
         * return automatically generated
         */
        public static MACE create(int IMGSIZE)
        {
            return(MACE.__fromPtr__(face_MACE_create_10(IMGSIZE)));
        }