Migration Guide: From 5.x To 6.x
From v6.8 To v6.9
RGLBaseConfighas been renamed toRGLBaseReaderConfig.RGLConfigandRGLBleConfignow inherit fromRGLBaseReaderConfig.-
Added several new configurations to configure scanning and recognition operations:
RGLBaseConfigRGLScannerConfigRecognizeConfig
-
Added new methods to
RGLDocReader:recognizeWithConfig:completion:recognizeImageFromPresenter:config:completion:recognizeVideoFrame:completion:showScannerFromPresenter:config:completion:
-
Deprecated the following recognize methods in
RGLDocReader:[recognizeImage:completion:][recognizeImages:completion:][recognizeImagesWithImageInputs:completion:][recognizeData:completion:][recognizeImageFromPresenter:image:completion:][recognizeImage:cameraMode:completion:]
Use the new recognizeWithConfig:completion: method instead. Use recognizeVideoFrame:completion: instead of [recognizeImage:cameraMode:completion:] with cameraMode:YES.
let config = DocReader.RecognizeConfig(image: yourImage)
config.scenario = RGL_SCENARIO_MRZ
DocReader.shared.recognize(config: config) { action, results, error in
// handle completion
}
- Deprecated
showScanner:completion:inRGLDocReader. UseshowScannerFromPresenter:config:completion:instead:
let config = DocReader.ScannerConfig()
config.scenario = RGL_SCENARIO_MRZ
DocReader.shared.showScanner(presenter: yourController, config: config) { action, results, error in
// handle completion
}
From v6.7 To v6.8
-
Changed the constant value for
RGLCheckDiagnoseMRZQualityWrongDPItoRGLCheckDiagnoseMRZQualityWrongSymbolPosition. Updated the string associated with it toRGLCheckDiagnoseMRZQualityWrongSymbolPosition. -
Added new constants to the
RGLCheckDiagnoseenumeration:
RGLCheckDiagnoseMRZQualityWrongSymbolPosition = 200
RGLCheckDiagnoseMRZQualityWrongMRZWidth = 202
RGLCheckDiagnoseMRZQualityWrongMRZHeight = 203
RGLCheckDiagnoseMRZQualityWrongLinePosition = 204
RGLCheckDiagnoseOCRQualityTextPosition = 220
RGLCheckDiagnoseOCRQualityInvalidFont = 221
RGLCheckDiagnoseOCRQualityInvalidBackground = 222
RGLCheckDiagnoseLasInkInvalidLinesFrequency = 230
- Changed the value for
RGLCheckDiagnoseLastDiagnoseValuefrom 210 to 250.
From v6.3 To v6.4
- Added new action to the
RGLDocReaderActionenum -RGLDocReaderActionProcessTimeout. It means that if the processing is completed by timeout, this action will be called instead ofRGLDocReaderActionComplete. - Value of
RGLDiDocTypeRegistrationCertificatecase inRGLDiDocTypeenum has been changed from 31 to 206.
From v6.2 To v6.3
For Swift
- Added
NS_SWIFT_NAMEforRGLImageQA. Now the Swift compiler will suggest to renameRGLImageQAtoImageQA. - Changed the prefix from
RGLEtoRGLforRGLImageQualityCheckTypecases. This change makes the usage of the enum values in Swift more natural. For example,RGLEImageQualityCheckTypeImageGlaresturns intoImageQualityCheckType.imageGlares.
For Objective-C
- Changed
RGLImageQualityCheckTypetoNS_TYPED_ENUMinstead ofNS_ENUM. If you compared two values ofRGLImageQualityCheckTypewith the==operator, please make sure to update your code to use the-[isEqualTo:]method instead. - Changed the prefix from
RGLEtoRGLfor theRGLImageQualityCheckTypecases. For example,RGLEImageQualityCheckTypeImageGlareshas becomeRGLImageQualityCheckTypeImageGlares. The same rule applies to all cases from theRGLImageQualityCheckTypeenum.
From v6.1 To v6.2
The enums RGLRFIDNotificationCodes, RGLRFIDDataFileType, RGLRFIDErrorCodes now use the NS_ENUM. This change makes the usage of the enum values in Swift more natural.
For example, RGLRFIDErrorCodesLayer6AppSelectionFailure turns into RFIDErrorCodes.layer6AppSelectionFailure.
In this specific case, we can see that the RGL prefix was dropped and the enum value was converted to the static member of enumeration that is accessible via the . notation.
Please update the usage of enum values for RGLRFIDNotificationCodes, RGLRFIDDataFileType, RGLRFIDErrorCodes in your project accordingly.
From v5.8 To v6.1
DocumentReaderResultshas deprecatedoverallResult: CheckResult. The status is available now with theDocumentReaderResults.status.overallStatusproperty.RFIDSessionDatahas deprecatedRGLRFIDSessionDataStatus. The status is available with theDocumentReaderResults.status.detailsRFIDproperty.- Changed the minimum supported iOS version to 11.