Skip to content



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 = 20.0;
DocumentReader.Instance().processParams().timeout = 20.0
  • Start the countdown from the moment the document is detected:
DocumentReader.Instance().processParams().timeoutFromFirstDetect = 5.0;
DocumentReader.Instance().processParams().timeoutFromFirstDetect = 5.0
  • Start the countdown from the moment the document type is recognized:
DocumentReader.Instance().processParams().timeoutFromFirstDocType = 3.0;
DocumentReader.Instance().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)};
DocumentReader.Instance().processParams().doBarcodes = arrayOf(BarcodeType.valueOf(BarcodeType.PDF417), BarcodeType.valueOf(BarcodeType.QRCODE))

Document recognition

DocumentReader.Instance().processParams().documentIDList = new int[]{-274257313, -2004898043};
DocumentReader.Instance().processParams().documentIDList = intArrayOf(-274257313, -2004898043)
  • Set the minimum acceptable DPI value:
DocumentReader.Instance().processParams().minDPI = 100;
DocumentReader.Instance().processParams().minDPI = 100
  • Use a specific template ID and skip the document type identification step:
DocumentReader.Instance().processParams().forceDocID = 123;
  • Ignore assumptions based on the field mask in the template:
DocumentReader.Instance().processParams().matchTextFieldMask = true;
  • Guarantee that an output image contains the correct MRZ on it in the series process mode:
DocumentReader.Instance().processParams().forceReadMrzBeforeLocate = true;
  • Limit MRZ formats to be recognized by specifying them in array:
DocumentReader.Instance().processParams().mrzFormatsFilter = new String[]{MRZFormat.FORMAT_2X44, MRZFormat.FORMAT_3X30};

Next Steps