Skip to content

Output Data

  • You can change the format of dates displayed in the results. The mask examples are "dd/mm/yyyy", "mm/dd/yyyy", "dd-mm-yyyy", "mm-dd-yyyy", "dd/mm/yy":
DocumentReader.Instance().ProcessParams().DateFormat = "dd-mm-yy";
RGLDocReader.Shared.ProcessParams.DateFormat = "dd-mm-yy";
  • Change the measure system:
DocumentReader.Instance().ProcessParams().MeasureSystem = (Java.Lang.Integer)RGLMeasureSystem.Metric;
RGLDocReader.Shared.ProcessParams.MeasureSystem = RGLMeasureSystem.Metric;
  • If a document contains Visual zone, you can set the list of field types to extract. In this case, other fields are skipped during the processing, i.e. document recognition becomes faster. If the fieldTypesFilter is empty, all fields are extracted:


This filter is not applicable to the MRZ.

DocumentReader.Instance().ProcessParams().FieldTypesFilter = new int[] { EVisualFieldType.FtDateOfExpiry };
 RGLDocReader.Shared.ProcessParams.FieldTypesFilter = new NSNumber[] { (int)RGLFieldType.Date_of_Expiry };
  • In case the required fields are not read, their values are returned as empty:
DocumentReader.Instance().ProcessParams().checkRequiredTextFields = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.CheckRequiredTextFields = true;
  • Set the parameter to send the original (uncropped) image to Core for processing:
DocumentReader.Instance().ProcessParams().ReturnUncroppedImage = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.ReturnUncroppedImage = true;
  • Build an integral image taking into account the quality of fixation of each of the individual images:
DocumentReader.Instance().ProcessParams().IntegralImage = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.IntegralImage = true;
  • Return an image with a cropped barcode:
DocumentReader.Instance().ProcessParams().ReturnCroppedBarcode = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.ReturnCroppedBarcode = true;
  • Specify the types of results to return:
DocumentReader.Instance().ProcessParams().ResultTypeOutput = new int[] { ERPRM_ResultType.RprmResultTypeMrzOcrExtended, ERPRM_ResultType.RprmResultTypeVisualOcrExtended };
RGLDocReader.Shared.ProcessParams.ResultTypeOutput = new NSNumber[] { (int)RGLResultType.MrzOCRExtended, (int)RGLResultType.VisualOCRExtended };
  • Return two aligned and straighten passport pages from an input image as if it was captured from the flatbed scanner:
DocumentReader.Instance().ProcessParams().GenerateDoublePageSpreadImage = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.GenerateDoublePageSpreadImage = true;
  • Set the maximum DPI for an output image (if set to zero, the image is not resized):
DocumentReader.Instance().ProcessParams().ImageDpiOutMax = (Java.Lang.Integer)300;
RGLDocReader.Shared.ProcessParams.ImageDpiOutMax = 300;
  • Do not crop graphic fields from a document image:
DocumentReader.Instance().ProcessParams().NoGraphics = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.NoGraphics = true;
  • Shift the date of expiry into the future or past for the specified number of months:
DocumentReader.Instance().ProcessParams().ShiftExpiryDate = (Java.Lang.Integer)1;
RGLDocReader.Shared.ProcessParams.ShiftExpiryDate = 1;
  • Get the OCR validity failed if there is a glare over the text field on the image:
DocumentReader.Instance().ProcessParams().UpdateOCRValidityByGlare = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.UpdateOCRValidityByGlare = true;
  • Specify the minimal age of the document holder (in years):
DocumentReader.Instance().ProcessParams().MinimalHolderAge = (Java.Lang.Integer)18;
RGLDocReader.Shared.ProcessParams.MinimalHolderAge = 18;
  • When set to true, the rawResults property of DocumentReaderResults will contain the encrypted containers of the scanning results that may be used for later reprocessing.
DocumentReader.Instance().ProcessParams().ShouldReturnPackageForReprocess = (Java.Lang.Boolean)true;
RGLDocReader.Shared.ProcessParams.ShouldReturnPackageForReprocess = true;

Next Steps