コード例 #1
0
        public void processCard(int type, int region, byte[] frontImageData, byte[] backImageData, bool logtransaction)
        {
            instance.SetCloudUrl(connectURL);
            ProcessImageRequestOptions options = ProcessImageRequestOptions.Instance;

            options.AutoDetectState    = true;
            options.StateID            = -1;
            options.ReformatImage      = true;
            options.ReformatImageColor = 0;
            options.Dpi       = 150;
            options.CropImage = false;
            options.FaceDetec = true;
            options.SignDetec = true;
            //options.ImageSource = 101;
            options.LogTransaction = logtransaction;
            options.IRegion        = region;
            options.AcuantCardType = covertCardType(type);
            Bitmap frontBmp = null;
            Bitmap backBmp  = null;

            if (frontImageData != null)
            {
                frontBmp = BitmapFactory.DecodeByteArray(frontImageData, 0, frontImageData.Length);
            }
            if (backImageData != null)
            {
                backBmp = BitmapFactory.DecodeByteArray(backImageData, 0, backImageData.Length);
            }

            instance.CallProcessImageConnectServices(frontBmp, backBmp, null, mainActivity, options);
        }
コード例 #2
0
        public void processFacialMatch(byte[] selfieImage, byte[] faceImage, bool logTrans)
        {
            instance.SetCloudUrl(acufillURL);
            Bitmap selfieBmp = null;
            Bitmap faceBmp   = null;

            if (selfieImage != null)
            {
                selfieBmp = BitmapFactory.DecodeByteArray(selfieImage, 0, selfieImage.Length);
            }
            if (faceImage != null)
            {
                faceBmp = BitmapFactory.DecodeByteArray(faceImage, 0, faceImage.Length);
            }

            ProcessImageRequestOptions options = ProcessImageRequestOptions.Instance;

            options.AcuantCardType = 3;
            options.LogTransaction = logTrans;
            instance.CallProcessImageServices(selfieBmp, faceBmp, "", mainActivity, options);
        }