private void ProcessCard() { UserDialogs.Instance.ShowLoading("Sending Request..."); // Obtain the default AcuantCardProcessRequestOptions object for the type of // card you want to process (Driver’s License card for this example) var options = AcuantCardProcessRequestOptions.DefaultRequestOptionsForCardType(cardType.Value); //Optionally, configure the options to the desired value if (cardType.Value == AcuantCardType.DriversLicenseCard) { options.AutoDetectState = true; options.StateID = -1; options.ReformatImage = true; options.ReformatImageColor = 0; options.DPI = 150; options.CropImage = false; options.FaceDetection = true; options.SignatureDetection = true; options.Region = cardRegion; options.ImageSource = 101; } else if (cardType.Value == AcuantCardType.MedicalInsuranceCard) { options.ReformatImage = true; options.ReformatImageColor = 0; options.DPI = 150; options.CropImage = false; } else if (cardType.Value == AcuantCardType.PassportCard) { options.ReformatImage = true; options.ReformatImageColor = 0; options.DPI = 150; options.CropImage = true; options.FaceDetection = true; options.SignatureDetection = true; options.ImageSource = 101; } // perform the request instance.ProcessCardImages( frontImage: _frontOfCardImage, backImage: _backOfCardImage, stringData: null, @delegate: this, options: options); }
public override void ProcessCard() { UserDialogs.Instance.ShowLoading("Sending Request..."); // Obtain the default AcuantCardProcessRequestOptions object for the type of // card you want to process (Driver’s License card for this example) var options = AcuantCardProcessRequestOptions.DefaultRequestOptionsForCardType(cardType.Value); options.ReformatImage = true; options.ReformatImageColor = 0; options.DPI = 150; options.CropImage = false; // perform the request instance.ProcessCardImages( frontImage: _frontOfCardImage, backImage: _backOfCardImage, stringData: null, @delegate: this, options: options); }