Skip to content

Xamarin.iOS

Results

After scanning process is completed, RGLDocumentReaderResults instance will be received. Result contains different result types:

DocumentReaderResults
└── DocumentType
└── TextResult
└── GraphicResult
└── DocumentPosition
└── BarcodePosition
└── MrzPosition
└── ImageQualityGroup
└── OverallResult
└── AuthenticityResults
└── RfidSessionData
└── ChipPage
└── ResolutionType
└── BarcodeResult
└── ProcessingFinishedStatus
└── MorePagesAvailable
└── ElapsedTime
└── ElapsedTimeRFID
└── RawResult
  • DocumentType - document type result;
  • TextResult - text results;
  • GraphicResult - graphic results;
  • DocumentPosition - position of document blank result;
  • BarcodePosition - position of found Barcode result;
  • MrzPosition - position of the MRZ area;
  • ImageQualityGroup - image quality result;
  • OverallResult - it's a summary of all results, one of the RGLCheckResult enumeration values. If at least one result status was negative, overall result will be negative;
  • AuthenticityResults - authenticity results;
  • RfidSessionData - results of work with the SDK within the context of the current communication session with electronic document;
  • ChipPage indicates the presence and location of an RFID chip in a document. 0—no RFID chip; 1—the chip is located in the document data page; 2—the chip is located in the back page or inlay of the document. Requires Document Type recognition, otherwise 1 by default;
  • ResolutionType - it's an image resolution, one of the RGLResolutionType enumeration values;
  • BarcodeResult - barcode results;
  • ElapsedTime indicates how much time has been required for document processing, milliseconds;
  • ElapsedTimeRFID indicates how much time has been required for RFID chip processing, milliseconds;
  • RawResult - contains results in the initial view, i.e. the raw view.

Document Type Result

These parameters are presented in RGLDocumentReaderDocumentType class.

DocumentType
└── Name
└── DocumentID
└── ICAOCode
└── FDSID
└── DType
└── DFormat
└── DMRZ
└── DDescription
└── DYear
└── DCountryName
└── PageIndex
Parameter Description
Name Document type name
DocumentID Document type numeric code
ICAOCode Document issuing country ICAO Code
FDSID Array of IRS document identifiers
DType Document type, one of RGLDiDocType enumeration values
DFormat Document format, one of RGLDocFormat enumeration values
DMRZ Flag for MRZ presence on document
DDescription Document description text
DYear Document issue year
DCountryName Document issuing country name
PageIndex Indicates an index of the document page, whence the result is received

Text Result

These parameters are presented in RGLDocumentReaderTextResult class.

TextResult
└── Fields
|   └── FieldType
|   └── FieldName
|   └── Lcid
|   └── values
|   |   └── SourceType
|   |   └── Value
|   |   └── OriginalValue
|   |   └── BoundRect
|   |   └── Validity
|   |   └── Comparison
|   |   └── PageIndex
|   |   └── Probability
|   └── Status
|   └── Value
|   └── LcidName
└── Status
Parameter Description
FieldType Field logical type, one of RGLFieldType values. Enumeration contains identifiers determining the logical type of the text data obtained while reading MRZ, document filling fields and barcodes
FieldName Title of the FieldType
Lcid ID of language-culture to differentiate one field of the same type from another. Rgllcid enumeration contains available enumeration values
SourceType Identifies zone whence data was extracted. RGLResultType enumeration contains enumeration values
Value Value which was obtained
OriginalValue Checks whether a value has been modified or not and returns the original value
BoundRect Field rectangular area coordinates on the image (for document filling fields reading results VisualOCRExtended (RGLResultType enumeration)
Validity Identifies verification result. RGLFieldVerificationResult enumeration contains possible conditions
Comparison Contains a comparison result of the field value, which is received from several zones, where the key is one of the RGLResultType enumeration values and the value is one of the RGLFieldVerificationResult enumeration values
PageIndex Indicates an index of the document page, whence the result is received
Status Stores one of RGLCheckResult enumeration which contains identifiers determining the result of a single document security check
LcidName Title of the Lcid

Graphic Result

These parameters are presented in RGLDocumentReaderGraphicResult class.

GraphicResult
└── Fields
|   └── SourceType
|   └── FieldType
|   └── FieldName
|   └── BoundRect
|   └── Value
|   └── LightType
|   └── LightName
|   └── PageIndex
Parameter Description
SourceType Identifies zone whence data was extracted. RGLResultType class contains enumeration values
FieldType Field logical type, one of RGLGraphicFieldType values. Enumeration contains identifiers determining the logical type of the graphic data obtained while reading document filling fields or barcodes
FieldName Title of the FieldType
BoundRect Field rectangular area coordinates on the image (for document filling fields reading results VisualOCRExtended (RGLResultType enumeration))
Value Value which was obtained
LightType Light type, one of RGLGraphicFieldLight values. Enumeration contains a set of identifiers used for identifying document reader possibilities, specifying lighting schemes for scanning etc.
LightName Title of the LightType
PageIndex Indicates an index of the document page, whence the result is received

Image Quality Group

These parameters are presented in RGLImageQualityGroup class.

ImageQuality
└── Count
└── Result
└── ImageQualityList
|   └── Type
|   └── Result
|   └── FeatureType
|   └── BoundRects
Parameter Description
Count Number of results in the list
Result Overall check result, one of RGLResultType enumeration values
ImageQualityList

Array of single check result pointers, which contains:

  • Type - check result type, one of RGLImageQualityCheckType values
  • Result - check result, one of RGLCheckResult values
  • FeatureType - one of RGLSecurityFeatureType values indicating the area examined
  • BoundRects - coordinates of glares

Barcode Result

These parameters are presented in RGLDocumentReaderBarcodeResult class.

BarcodeResult
└── Fields
|   └── BarcodeType
|   └── Status
|   └── Pdf417Info
|   |   └── ErrorLevel
|   |   └── Columns
|   |   └── Rows
|   └── Data
|   └── PageIndex
Parameter Description
BarcodeType Decoded barcode type, one of RGLBarcodeType enumeration values
Status Indicates barcode reading result, one of RGLBarcodeResult enumeration values or another value, which is SDK internal error code
Pdf417Info

Contains the information about the PDF417 barcode, which includes the following parameters:

  • ErrorLevel - barcode error correction level
  • Columns - number of columns in a barcode
  • Rows - number of rows in a barcode
Data Results of reading data from barcode modules
PageIndex Indicates an index of the document page, whence the result is received

Document, MRZ, Barcode position

These parameters are presented in RGLPosition class.

DocumentPosition / MrzPosition / BarcodePosition
└── Size
|   └── Width
|   └── Height
└── Center
|   └── X
|   └── Y
└── LeftTop
|   └── X
|   └── Y
└── LeftBottom
|   └── X
|   └── Y
└── RightTop
|   └── X
|   └── Y
└── RightBottom
|   └── X
|   └── Y
└── Angle
└── PerspectiveTr
└── ObjArea
└── ObjIntAngleDev
└── ResultStatus
└── DocFormat
└── PageIndex
└── Dpi
└── Inverse
Parameter Description
Size Document width and height
Center Document center coordinates
LeftTop Document left top corner coordinates
LeftBottom Document left bottom corner coordinates
RightTop Document right top corner coordinates
RightBottom Document right bottom corner coordinates
Angle Document rotation angle
PerspectiveTr Internal use parameter
ObjArea Internal use parameter
ObjIntAngleDev Internal use parameter
ResultStatus Internal use parameter, one of RGLCheckResult enumeration values
DocFormat Document format, one of RGLDocFormat enumeration values
PageIndex Index of the document page, whence the result is received
Dpi Resolution in dots per inch
Inverse Internal use parameter

Authenticity Result

These parameters are presented in RGLDocumentReaderAuthenticityResult class.

AuthenticityResults
└── Status
└── Checks
|   └── Type
|   └── TypeName
|   └── Status
|   └── Elements
|   |   └── Status
|   |   └── ElementType
|   |   └── ElementTypeName
|   |   └── ElementDiagnose
|   |   └── ElementDiagnoseName
|   └── PageIndex
Parameter Description
Status Overall check result, one of RGLCheckResult enumeration values
Checks Stores the result of document authenticity check using the images for different lighting schemes
Type Type of the performed check, one of RGLAuthenticity enumeration values
TypeName Title of the Type
ElementType Element type, one of RGLSecurityFeatureType enumeration values
ElementTypeName Title of the ElementType
ElementDiagnose Element diagnose, one of RGLCheckDiagnose enumeration values
ElementDiagnoseName Title of the ElementDiagnose
PageIndex Index of the document page, whence the result is received

RFID Result

These parameters are presented in RGLRFIDSessionData class.

RfidSessionData
└── AccessControls
|   └── ActiveOptionIdx
|   └── Notifications
|   └── Status
|   └── Type
└── Applications
|   └── ApplicationID
|   └── DataHashAlgorithm
|   └── Files
|   |   └── FileData
|   |   |   └── Data
|   |   |   └── Length
|   |   |   └── Status
|   |   |   └── Type
|   |   └── FileID
|   |   └── Notifications
|   |   └── PAStatus
|   |   └── ReadingStatus
|   |   └── ReadingTime
|   |   └── Type
|   |   └── TypeName
|   |   └── DocFieldsText
|   |   └── DocFieldsGraphics
|   |   └── DocFieldsOriginals
|   |   └── Certificates
|   |   |   └── SecurityObject
|   |   |   |   └── Data
|   |   |   |   └── Length
|   └── Type
|   └── Status
|   └── UnicodeVersion
|   └── Version
└── SecurityObjects
|   └── FileReference
|   └── ObjectType
|   └── Version
|   └── SignerInfos
|   |   └── DataToHash
|   |   └── DigestAlgorithm
|   |   └── PaStatus
|   |   └── SignatureAlgorithm
|   |   └── Version
|   |   └── Issuer
|   |   |   └── Attributes
|   |   |   |   └── Type
|   |   |   |   └── Value
|   |   |   |   |   └── Data
|   |   |   |   |   └── Length
|   |   |   |   |   └── Status
|   |   |   |   |   └── Type
|   |   |   |   |   └── Format
|   |   |   └── Data
|   |   |   └── FriendlyName
|   |   |   |   └── Data
|   |   |   |   └── Length
|   |   |   |   └── Status
|   |   |   |   └── Type
|   |   |   |   └── Format
|   |   └── SerialNumber
|   |   |   └── Data
|   |   |   └── Length
|   |   |   └── Status
|   |   |   └── Type
|   |   |   └── Format
|   |   └── Signature
|   |   |   └── Data
|   |   |   └── Length
|   |   |   └── Status
|   |   |   └── Type
|   |   |   └── Format
|   |   └── SignedAttributes
|   |   |   └── Data
|   |   |   └── Type
|   |   └── SubjectKeyIdentifier
|   |   |   └── Data
|   |   |   └── Length
|   |   |   └── Status
|   |   |   └── Type
|   |   |   └── Format
|   |   └── CertificateChain
|   |   |   └── Extensions
|   |   |   |   └── Data
|   |   |   |   └── Type
|   |   |   └── FileName
|   |   |   |   └── Data
|   |   |   |   └── Length
|   |   |   |   └── Status
|   |   |   |   └── Type
|   |   |   |   └── Format
|   |   |   └── Issuer
|   |   |   |   └── Attributes
|   |   |   |   |   └── Type
|   |   |   |   |   └── Value
|   |   |   |   |   |   └── Data
|   |   |   |   |   |   └── Length
|   |   |   |   |   |   └── Status
|   |   |   |   |   |   └── Type
|   |   |   |   |   |   └── Format
|   |   |   |   └── Data
|   |   |   |   └── FriendlyName
|   |   |   |   |   └── Data
|   |   |   |   |   └── Length
|   |   |   |   |   └── Status
|   |   |   |   |   └── Type
|   |   |   |   |   └── Format
|   |   |   └── Notifications
|   |   |   └── Origin
|   |   |   └── PaStatus
|   |   |   └── SerialNumber
|   |   |   └── SignatureAlgorithm
|   |   |   └── Subject
|   |   |   |   └── Attributes
|   |   |   |   |   └── Type
|   |   |   |   |   └── Value
|   |   |   |   |   |   └── Data
|   |   |   |   |   |   └── Length
|   |   |   |   |   |   └── Status
|   |   |   |   |   |   └── Type
|   |   |   |   |   |   └── Format
|   |   |   |   └── Data
|   |   |   |   └── FriendlyName
|   |   |   |   |   └── Data
|   |   |   |   |   └── Length
|   |   |   |   |   └── Status
|   |   |   |   |   └── Type
|   |   |   |   |   └── Format
|   |   |   └── SubjectPKAlgorithm
|   |   |   └── Type
|   |   |   └── Validity
|   |   |   |   └── NotAfter
|   |   |   |   |   └── Data
|   |   |   |   |   └── Length
|   |   |   |   |   └── Status
|   |   |   |   |   └── Type
|   |   |   |   |   └── Format
|   |   |   |   └── NotBefore
|   |   |   |   |   └── Data
|   |   |   |   |   └── Length
|   |   |   |   |   └── Status
|   |   |   |   |   └── Type
|   |   |   |   |   └── Format
|   |   |   └── Version
|   |   └── Notifications
|   └── Notifications
└── CardProperties
|   └── ATQA
|   └── ATQB
|   └── ATR
|   └── Baudrate1
|   └── Baudrate2
|   └── BitRateR
|   └── BitRateS
|   └── ChipTypeA
|   └── MifareMemory
|   └── RfidType
|   └── SAK
|   └── Support4
|   └── SupportMifare
|   └── UID
└── TotalBytesReceived
└── TotalBytesSent
└── Status
└── ExtLeSupport
└── ProcessTime
└── SessionDataStatus
|   └── AA
|   └── BAC
|   └── CA
|   └── PA
|   └── PACE
|   └── TA
|   └── OverallStatus
Parameter Description
AccessControls list of containers to store information about the supported procedures of authentication and secure data access within the context of the session
ActiveOptionIdx index of the active variant of the procedure
Notifications list of remarks arisen during the procedure
Status procedure status (NotPerformed, NotAvailable, NoError or the error code from RGLRFIDErrorCodes enumeration
Type procedure type (one of RGLRFIDAccessControlProcedureType enumeration values)
Applications list of containers to store information about the involved applications of electronic document
ApplicationID application identifier
DataHashAlgorithm algorithm for calculating hash values for files for the procedure of PA
Files list of containers to store information about the read files of the application
UnicodeVersion Unicode version for application
SecurityObjects list of containers to store information about the detected document security objects
FileReference reference to the source file of the security object data
ObjectType security object identifier
SignerInfos list of containers to store information about digital signature objects contained in the SO
DigestAlgorithm digital signature hash-function algorithm identifier
PaStatus result of the digital signature verification (NotPerformed, NoError or Failed);
SignatureAlgorithm digital signature algorithm identifier
Issuer identifier of the necessary certificate issuer
SerialNumber serial number of the necessary certificate
Signature binary data of the verified digital signature
SignedAttributes list of the signed attributes
SubjectKeyIdentifier signature object identifier of the necessary certificate
CertificateChain certificate chain, used for the digital signature verification
CardProperties set of electronic document chip characteristics
ATQA numeric ATQ_A value in hexadecimal format (e.g. "0x0000")
ATQB ATQ_B contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. "50 F9 4F 41 60 00 00 00 00 77 81 81")
ATR pAtr contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. "3B 88 81 11 FC 00 00 00 00 77 81 81 00 93")
Baudrate1 numeric Baudrate1 value in hexadecimal format (e.g. "0x0000000F")
Baudrate2 numeric Baudrate2 value in hexadecimal format
BitRateR numeric BitRateR value in hexadecimal format (e.g. "0x04")
BitRateS numeric BitRateS value in hexadecimal format (e.g. "0x04")
ChipTypeA text abbreviation of ChipType_A value
MifareMemory numeric MifareMemory value
RfidType text abbreviation of RFID_Type value
SAK numeric SAK value in hexadecimal format (e.g. "0x00")
Support4 boolean Support_4 value
SupportMifare boolean Support_Mifare value
UID UID contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. "F9 4F 41 60")
TotalBytesReceived total number of bytes received from the RFID-chip during the whole session
TotalBytesSent total number of bytes transmitted to the RFID-chip during the whole session
ExtLeSupport sign of support of RFID-chip for extended length commands of reading (NotPerformed, NotAvailable or NoError)
ProcessTime total time of all operations performed during the session, ms
AA AA status, one of RGLCheckResult values
BAC BAC status, one of RGLCheckResult values
CA CA status, one of RGLCheckResult values
PA PA status, one of RGLCheckResult values
PACE PACE status, one of RGLCheckResult values
TA TA status, one of RGLCheckResult values
OverallStatus overall status, one of RGLCheckResult values