Skip to content

Limitations

Timeouts

Use the parameter to set the time limit (in seconds) for the document recognition, beyond which the recognition does not continue regardless of its result.

You can define the moment for the countdown to start.

  • Start the countdown from the moment the scenario starts:
DocumentReader.Instance().ProcessParams().Timeout = (Java.Lang.Double)20.0;
RGLDocReader.Shared.ProcessParams.Timeout = 20.0;
  • Start the countdown from the moment the document is detected:
DocumentReader.Instance().ProcessParams().TimeoutFromFirstDetect = (Java.Lang.Double)5.0;
RGLDocReader.Shared.ProcessParams.TimeoutFromFirstDetect = 5.0;
  • Start the countdown from the moment the document type is recognized:
DocumentReader.Instance().ProcessParams().TimeoutFromFirstDocType = (Java.Lang.Double)3.0;
RGLDocReader.Shared.ProcessParams.TimeoutFromFirstDocType = 3.0;

Barcode recognition

Set the types of barcodes to process:

DocumentReader.Instance().ProcessParams().DoBarcodes = new String[] { BarcodeType.ValueOf(BarcodeType.Pdf417), BarcodeType.ValueOf(BarcodeType.Qrcode) };
RGLDocReader.Shared.ProcessParams.BarcodeTypes = new NSNumber[] { (int)RGLBarcodeType.Pdf417, (int)RGLBarcodeType.Qrcode };

Document recognition

DocumentReader.Instance().ProcessParams().DocumentIDList = new int[] { -274257313, -2004898043 };
RGLDocReader.Shared.ProcessParams.DocumentIDList = new NSNumber[] { -274257313, -2004898043 };
  • Set the minimum acceptable DPI value:
DocumentReader.Instance().ProcessParams().MinDPI = (Java.Lang.Integer)100;
RGLDocReader.Shared.ProcessParams.MinDPI = 100;
  • Use a specific template ID and skip the document type identification step:
DocumentReader.Instance().ProcessParams().ForceDocID = (Java.Lang.Integer)123;
RGLDocReader.Shared.ProcessParams.ForceDocID = 123;
  • Ignore assumptions based on the field mask in the template:
DocumentReader.Instance().ProcessParams().MatchTextFieldMask = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.MatchTextFieldMask = true;
  • Guarantee that an output image contains the correct MRZ on it in the series process mode:
DocumentReader.Instance().ProcessParams().ForceReadMrzBeforeLocate = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.ForceReadMrzBeforeLocate = true;
  • Limit MRZ formats to be recognized by specifying them in array:
DocumentReader.Instance().ProcessParams().MrzFormatsFilter = new string[] { MRZFormat.Format2x44, MRZFormat.Format3x30 };
RGLDocReader.Shared.ProcessParams.MrzFormatsFilter = new NSNumber[] { (int)RGLMRZFormat.Id2, (int)RGLMRZFormat.Id1 };

Next Steps