Пример #1
0
        public void CreateDetectFaceEngine()
        {
            object obj = this._obj;

            lock (obj)
            {
                if (this._faceEngne == IntPtr.Zero)
                {
                    if (IntPtr.Size == 4)
                    {
                        this._faceEngne = FaceCompareV4._CreateFaceEngne();
                    }
                    else
                    {
                        if (IntPtr.Size == 8)
                        {
                            this._faceEngne = FaceCompareV4._CreateFaceEngne(1);
                        }
                    }
                    Console.WriteLine(this._faceEngne);
                }
            }
        }
Пример #2
0
        public void CreateFaceEngne()
        {
            object obj = this._obj;

            lock (obj)
            {
                if (this._faceEngne == IntPtr.Zero)
                {
                    if (IntPtr.Size == 4)
                    {
                        this._faceEngne = FaceCompareV4._CreateFaceEngne();
                        Console.WriteLine("CreateFaceEngne 32-bit :" + this._faceEngne.ToString());
                    }
                    else
                    {
                        if (IntPtr.Size == 8)
                        {
                            this._faceEngne = FaceCompareV4._CreateFaceEngne(0);
                            Console.WriteLine("CreateFaceEngne 64-bit :" + this._faceEngne.ToString());
                        }
                    }
                }
            }
        }