diff --git a/BlinkID/blinkid-react-native.podspec b/BlinkID/blinkid-react-native.podspec index bd60aa6..ed47ec8 100644 --- a/BlinkID/blinkid-react-native.podspec +++ b/BlinkID/blinkid-react-native.podspec @@ -14,9 +14,10 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/BlinkID/blinkid-react-native.git", :tag => "v#{s.version}" } s.source_files = "src/ios", "src/ios/**/*.{h,m}" + s.header_dir = "blinkid-react-native" s.dependency 'React' - s.dependency 'PPBlinkID', '~> 4.11.0' + s.dependency 'PPBlinkID', '~> 5.0.0' s.frameworks = 'UIKit' end diff --git a/BlinkID/index.js b/BlinkID/index.js index 6d46b99..c83f43a 100644 --- a/BlinkID/index.js +++ b/BlinkID/index.js @@ -111,108 +111,16 @@ export { RecognizerResultState } from './recognizer' export * from './types' // export overlays that can be used -export * from './overlays/barcodeOverlays' export * from './overlays/blinkidOverlays' // export recognizers that can be used and their results export * from './recognizers/successFrameGrabberRecognizer' -export * from './recognizers/australiaDlBackRecognizer' -export * from './recognizers/australiaDlFrontRecognizer' -export * from './recognizers/austriaCombinedRecognizer' -export * from './recognizers/austriaDlFrontRecognizer' -export * from './recognizers/austriaIdBackRecognizer' -export * from './recognizers/austriaIdFrontRecognizer' -export * from './recognizers/austriaPassportRecognizer' -export * from './recognizers/barcodeRecognizer' -export * from './recognizers/belgiumCombinedRecognizer' -export * from './recognizers/belgiumIdBackRecognizer' -export * from './recognizers/belgiumIdFrontRecognizer' -export * from './recognizers/blinkCardEliteRecognizer' -export * from './recognizers/blinkCardRecognizer' export * from './recognizers/blinkIdCombinedRecognizer' export * from './recognizers/blinkIdRecognizer' -export * from './recognizers/bruneiIdBackRecognizer' -export * from './recognizers/bruneiIdFrontRecognizer' -export * from './recognizers/bruneiMilitaryIdBackRecognizer' -export * from './recognizers/bruneiMilitaryIdFrontRecognizer' -export * from './recognizers/bruneiResidencePermitBackRecognizer' -export * from './recognizers/bruneiResidencePermitFrontRecognizer' -export * from './recognizers/bruneiTemporaryResidencePermitBackRecognizer' -export * from './recognizers/bruneiTemporaryResidencePermitFrontRecognizer' -export * from './recognizers/colombiaDlFrontRecognizer' -export * from './recognizers/colombiaIdBackRecognizer' -export * from './recognizers/colombiaIdFrontRecognizer' -export * from './recognizers/croatiaCombinedRecognizer' -export * from './recognizers/croatiaIdBackRecognizer' -export * from './recognizers/croatiaIdFrontRecognizer' -export * from './recognizers/cyprusIdBackRecognizer' -export * from './recognizers/cyprusIdFrontRecognizer' -export * from './recognizers/cyprusOldIdBackRecognizer' -export * from './recognizers/cyprusOldIdFrontRecognizer' -export * from './recognizers/czechiaCombinedRecognizer' -export * from './recognizers/czechiaIdBackRecognizer' -export * from './recognizers/czechiaIdFrontRecognizer' export * from './recognizers/documentFaceRecognizer' -export * from './recognizers/egyptIdFrontRecognizer' -export * from './recognizers/eudlRecognizer' -export * from './recognizers/germanyCombinedRecognizer' -export * from './recognizers/germanyDlBackRecognizer' -export * from './recognizers/germanyDlFrontRecognizer' -export * from './recognizers/germanyIdBackRecognizer' -export * from './recognizers/germanyIdFrontRecognizer' -export * from './recognizers/germanyIdOldRecognizer' -export * from './recognizers/germanyPassportRecognizer' -export * from './recognizers/hongKongIdFrontRecognizer' -export * from './recognizers/indonesiaIdFrontRecognizer' -export * from './recognizers/irelandDlFrontRecognizer' -export * from './recognizers/italyDlFrontRecognizer' -export * from './recognizers/jordanCombinedRecognizer' -export * from './recognizers/jordanIdBackRecognizer' -export * from './recognizers/jordanIdFrontRecognizer' -export * from './recognizers/kuwaitIdBackRecognizer' -export * from './recognizers/kuwaitIdFrontRecognizer' -export * from './recognizers/malaysiaDlFrontRecognizer' -export * from './recognizers/malaysiaIkadFrontRecognizer' -export * from './recognizers/malaysiaMyKadBackRecognizer' -export * from './recognizers/malaysiaMyKadFrontRecognizer' -export * from './recognizers/malaysiaMyKasFrontRecognizer' -export * from './recognizers/malaysiaMyPrFrontRecognizer' -export * from './recognizers/malaysiaMyTenteraFrontRecognizer' -export * from './recognizers/mexicoVoterIdFrontRecognizer' -export * from './recognizers/moroccoIdBackRecognizer' -export * from './recognizers/moroccoIdFrontRecognizer' export * from './recognizers/mrtdCombinedRecognizer' export * from './recognizers/mrtdRecognizer' -export * from './recognizers/newZealandDlFrontRecognizer' -export * from './recognizers/nigeriaVoterIdBackRecognizer' export * from './recognizers/passportRecognizer' -export * from './recognizers/pdf417Recognizer' -export * from './recognizers/polandCombinedRecognizer' -export * from './recognizers/polandIdBackRecognizer' -export * from './recognizers/polandIdFrontRecognizer' -export * from './recognizers/romaniaIdFrontRecognizer' -export * from './recognizers/simNumberRecognizer' -export * from './recognizers/singaporeChangiEmployeeIdRecognizer' -export * from './recognizers/singaporeCombinedRecognizer' -export * from './recognizers/singaporeDlFrontRecognizer' -export * from './recognizers/singaporeIdBackRecognizer' -export * from './recognizers/singaporeIdFrontRecognizer' -export * from './recognizers/slovakiaCombinedRecognizer' -export * from './recognizers/slovakiaIdBackRecognizer' -export * from './recognizers/slovakiaIdFrontRecognizer' -export * from './recognizers/sloveniaCombinedRecognizer' -export * from './recognizers/sloveniaIdBackRecognizer' -export * from './recognizers/sloveniaIdFrontRecognizer' -export * from './recognizers/spainDlFrontRecognizer' -export * from './recognizers/swedenDlFrontRecognizer' -export * from './recognizers/switzerlandDlFrontRecognizer' -export * from './recognizers/switzerlandIdBackRecognizer' -export * from './recognizers/switzerlandIdFrontRecognizer' -export * from './recognizers/switzerlandPassportRecognizer' -export * from './recognizers/unitedArabEmiratesDlFrontRecognizer' -export * from './recognizers/unitedArabEmiratesIdBackRecognizer' -export * from './recognizers/unitedArabEmiratesIdFrontRecognizer' -export * from './recognizers/vinRecognizer' export * from './recognizers/visaRecognizer' export * from './recognizers/usdlRecognizer' export * from './recognizers/usdlCombinedRecognizer' diff --git a/BlinkID/overlays/barcodeOverlays.js b/BlinkID/overlays/barcodeOverlays.js deleted file mode 100644 index d9864e3..0000000 --- a/BlinkID/overlays/barcodeOverlays.js +++ /dev/null @@ -1,11 +0,0 @@ -import { OverlaySettings } from '../overlaySettings' - -/** - * Class for setting up barcode overlay. - * Barcode overlay is best suited for recognizers that perform barcode scanning. - */ -export class BarcodeOverlaySettings extends OverlaySettings { - constructor() { - super('BarcodeOverlaySettings'); - } -} \ No newline at end of file diff --git a/BlinkID/overlays/blinkidOverlays.js b/BlinkID/overlays/blinkidOverlays.js index b11e9ae..af9c542 100644 --- a/BlinkID/overlays/blinkidOverlays.js +++ b/BlinkID/overlays/blinkidOverlays.js @@ -60,26 +60,4 @@ export class DocumentVerificationOverlaySettings extends OverlaySettings { */ this.glareMessage = null; } -} - -/** - * Class for setting up BlinkCard overlay. - * BlinkCard overlay is best suited for scanning payment cards. - */ -export class BlinkCardOverlaySettings extends OverlaySettings { - constructor() { - super('BlinkCardOverlaySettings'); - /** - * String: user instructions that are shown above camera preview while the first side of the - * document is being scanned. - * If null, default value will be used. - */ - this.firstSideInstructions = null; - /** - * String: user instructions that are shown above camera preview while the second side of the - * document is being scanned. - * If null, default value will be used. - */ - this.secondSideInstructions = null; - } } \ No newline at end of file diff --git a/BlinkID/package.json b/BlinkID/package.json index cf53f25..8cd18b0 100644 --- a/BlinkID/package.json +++ b/BlinkID/package.json @@ -1,6 +1,6 @@ { "name": "blinkid-react-native", - "version": "4.11.2", + "version": "5.0.0", "description": "A small and powerful ID card scanning library. Powered by Microblink (www.microblink.com).", "main": "index.js", "repository": { diff --git a/BlinkID/react-native.config.js b/BlinkID/react-native.config.js index 2797b19..0547f45 100644 --- a/BlinkID/react-native.config.js +++ b/BlinkID/react-native.config.js @@ -3,9 +3,6 @@ module.exports = { platforms: { android: { sourceDir: './src/android' - }, - ios: { - podspecPath: './blinkid-react-native.podspec' } } } diff --git a/BlinkID/recognizers/australiaDlBackRecognizer.js b/BlinkID/recognizers/australiaDlBackRecognizer.js deleted file mode 100644 index ffa4cc0..0000000 --- a/BlinkID/recognizers/australiaDlBackRecognizer.js +++ /dev/null @@ -1,115 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for AustraliaDlBackRecognizer. - */ -export class AustraliaDlBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the Australia DL owner - */ - this.address = nativeResult.address; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The last name of the Australia DL owner - */ - this.lastName = nativeResult.lastName; - - /** - * The date of expiry of the Australia DL - */ - this.licenceExpiry = nativeResult.licenceExpiry != null ? new Date(nativeResult.licenceExpiry) : null; - - /** - * The licence number of the Australia DL - */ - this.licenceNumber = nativeResult.licenceNumber; - - } -} - -/** - * Recognizer which can scan the back side of Australian driver's licences - */ -export class AustraliaDlBackRecognizer extends Recognizer { - constructor() { - super('AustraliaDlBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of the Australia DL owner should be extracted - * - * - */ - this.extractAddress = true; - - /** - * Defines if last name of the Australia DL owner should be extracted - * - * - */ - this.extractLastName = true; - - /** - * Defines if the licence number of the Australia DL should be extracted - * - * - */ - this.extractLicenceNumber = true; - - /** - * Defines if date of expiry of the Australia DL should be extracted - * - * - */ - this.extractLicenseExpiry = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new AustraliaDlBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/australiaDlFrontRecognizer.js b/BlinkID/recognizers/australiaDlFrontRecognizer.js deleted file mode 100644 index c044775..0000000 --- a/BlinkID/recognizers/australiaDlFrontRecognizer.js +++ /dev/null @@ -1,165 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for AustraliaDlFrontRecognizer. - */ -export class AustraliaDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the Australian DL owner - */ - this.address = nativeResult.address; - - /** - * The date of birth of the Australian DL owner - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of the Australian DL owner - */ - this.fullName = nativeResult.fullName; - - /** - * The date of expiry of the Australian DL - */ - this.licenceExpiry = nativeResult.licenceExpiry != null ? new Date(nativeResult.licenceExpiry) : null; - - /** - * The licence number of the Australian DL - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The licence type of the Australian DL - */ - this.licenceType = nativeResult.licenceType; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan the front side of Australian driver's licences. - */ -export class AustraliaDlFrontRecognizer extends Recognizer { - constructor() { - super('AustraliaDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Australian DL owner should be extracted - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of birth of Australian DL owner should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if full name of Australian DL owner should be extracted - * - * - */ - this.extractFullName = true; - - /** - * Defines if date of expiry of Australian DL should be extracted - * - * - */ - this.extractLicenseExpiry = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new AustraliaDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/austriaCombinedRecognizer.js b/BlinkID/recognizers/austriaCombinedRecognizer.js deleted file mode 100644 index c573d28..0000000 --- a/BlinkID/recognizers/austriaCombinedRecognizer.js +++ /dev/null @@ -1,306 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for AustriaCombinedRecognizer. - */ -export class AustriaCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Austrian ID owner - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of Austrian ID - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issuance of the Austrian ID - */ - this.dateOfIssuance = nativeResult.dateOfIssuance != null ? new Date(nativeResult.dateOfIssuance) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The document number of the Austrian ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * The eye eyeColour of Austrian ID owner. - */ - this.eyeColour = nativeResult.eyeColour; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The gien name of the Austrian ID owner. - */ - this.givenName = nativeResult.givenName; - - /** - * The height of Austrian ID owner. - */ - this.height = nativeResult.height; - - /** - * The issuing authority of Austrian ID. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * Whether check digits in machine readable zone of the Austrian ID are OK. - */ - this.mrtdVerified = nativeResult.mrtdVerified; - - /** - * The nationaliy of the Austrian ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The place of birth of the Austrian ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The principal residence of the Austrian ID owner. - */ - this.principalResidence = nativeResult.principalResidence; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Austrian ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the Austrian ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Austrian ID Combined Recognizer. - * - * Austrian ID Combined recognizer is used for scanning both front and back side of Austrian ID. - */ -export class AustriaCombinedRecognizer extends Recognizer { - constructor() { - super('AustriaCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if ownder's date of birth should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry should be extracted from Austrian Passport - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issuance should be extracted from back side of Austrian ID - * - * - */ - this.extractDateOfIssuance = true; - - /** - * Defines if date of issue should be extracted from Austrian Passport - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if owner's given name should be extracted - * - * - */ - this.extractGivenName = true; - - /** - * Defines if owner's height should be extracted - * - * - */ - this.extractHeight = true; - - /** - * Defines if issuing authority should be extracted - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if owner's nationality should be extracted from Austrian Passport - * - * - */ - this.extractNationality = false; - - /** - * Defines if passport number should be extracted from Austrian Passport - * - * - */ - this.extractPassportNumber = true; - - /** - * Defines if owner's place of birth should be extracted - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if owner's principal residence should be extracted from back side of Austrian ID - * - * - */ - this.extractPrincipalResidence = true; - - /** - * Defines if owner's sex should be extracted - * - * - */ - this.extractSex = true; - - /** - * Defines if owner's surname should be extracted - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new AustriaCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/austriaDlFrontRecognizer.js b/BlinkID/recognizers/austriaDlFrontRecognizer.js deleted file mode 100644 index a7468a8..0000000 --- a/BlinkID/recognizers/austriaDlFrontRecognizer.js +++ /dev/null @@ -1,208 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for AustriaDlFrontRecognizer. - */ -export class AustriaDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date Of Birth of the front side of the Austria Dl owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Expiry of the front side of the Austria Dl owner. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date Of Issue of the front side of the Austria Dl owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first Name of the front side of the Austria Dl owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing Authority of the front side of the Austria Dl owner. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The licence Number of the front side of the Austria Dl owner. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The name of the front side of the Austria Dl owner. - */ - this.name = nativeResult.name; - - /** - * The place Of Birth of the front side of the Austria Dl owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The vehicle Categories of the front side of the Austria Dl owner. - */ - this.vehicleCategories = nativeResult.vehicleCategories; - - } -} - -/** - * Recognizer which can scan front side of Austrian national DL cards. - */ -export class AustriaDlFrontRecognizer extends Recognizer { - constructor() { - super('AustriaDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Austrian DL owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Austrian DL should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Austrian DL should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if first name of Austrian DL owner should be extracted. - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority of Austrian DL should be extracted. - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if name of Austrian DL owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if place of birth of Austrian DL owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if vehicle categories of Austrian DL should be extracted. - * - * - */ - this.extractVehicleCategories = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new AustriaDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/austriaIdBackRecognizer.js b/BlinkID/recognizers/austriaIdBackRecognizer.js deleted file mode 100644 index acd707d..0000000 --- a/BlinkID/recognizers/austriaIdBackRecognizer.js +++ /dev/null @@ -1,144 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for AustriaIdBackRecognizer. - */ -export class AustriaIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The Date Of Issuance of Austrian ID. - */ - this.dateOfIssuance = nativeResult.dateOfIssuance != null ? new Date(nativeResult.dateOfIssuance) : null; - - /** - * The Document Number of Austrian ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * The Eye Colour of Austrian ID owner. - */ - this.eyeColour = nativeResult.eyeColour; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The Height of Austrian ID owner. - */ - this.height = nativeResult.height; - - /** - * The Issuing Authority of Austrian ID. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The mrz on the back side of Austrian ID. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The Place Of Birth of Austrian ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The Principal Residence of Austrian ID owner. - */ - this.principalResidence = nativeResult.principalResidence; - - } -} - -/** - * Class for configuring Austrian ID Back Recognizer. - * - * Austrian ID Back recognizer is used for scanning back side of Austrian ID. - */ -export class AustriaIdBackRecognizer extends Recognizer { - constructor() { - super('AustriaIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of issuance should be extracted from back side of Austrian ID - * - * - */ - this.extractDateOfIssuance = true; - - /** - * Defines if owner's height should be extracted from back side of Austrian ID - * - * - */ - this.extractHeight = true; - - /** - * Defines if issuing authority should be extracted from back side of Austrian ID - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if owner's place of birth should be extracted from back side of Austrian ID - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if owner's principal residence should be extracted from back side of Austrian ID - * - * - */ - this.extractPrincipalResidence = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new AustriaIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/austriaIdFrontRecognizer.js b/BlinkID/recognizers/austriaIdFrontRecognizer.js deleted file mode 100644 index ba4077c..0000000 --- a/BlinkID/recognizers/austriaIdFrontRecognizer.js +++ /dev/null @@ -1,162 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for AustriaIdFrontRecognizer. - */ -export class AustriaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Austrian Id owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The document number of the Austrian Id. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The first name of the Austrian Id owner. - */ - this.givenName = nativeResult.givenName; - - /** - * The sex of the Austrian Id owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The last name of the Austrian Id owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Class for configuring Austrian ID Front Recognizer. - * - * Aus ID Front recognizer is used for scanning front side of Austrian Id. - */ -export class AustriaIdFrontRecognizer extends Recognizer { - constructor() { - super('AustriaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth should be extracted from Austrian ID - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if given name of Austrian Id owner should be extracted - * - * - */ - this.extractGivenName = true; - - /** - * Defines if sex of Austrian Id owner should be extracted - * - * - */ - this.extractSex = true; - - /** - * Defines if surname of Austrian Id owner should be extracted - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new AustriaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/austriaPassportRecognizer.js b/BlinkID/recognizers/austriaPassportRecognizer.js deleted file mode 100644 index 1afa198..0000000 --- a/BlinkID/recognizers/austriaPassportRecognizer.js +++ /dev/null @@ -1,246 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for AustriaPassportRecognizer. - */ -export class AustriaPassportRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date Of Birth of the Austrian Passport owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Expiry of the Austrian Passport. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date Of Issue of the Austrian Passport. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given Name of the Austrian Passport owner. - */ - this.givenName = nativeResult.givenName; - - /** - * The height of the Austrian Passport owner. - */ - this.height = nativeResult.height; - - /** - * The issuing Authority of the Austrian Passport. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The mrz of the back side of Austria Passport. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The nationality of the Austrian Passport owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The passport Number of the Austrian Passport. - */ - this.passportNumber = nativeResult.passportNumber; - - /** - * The place Of Birth of the Austrian Passport owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The sex of the Austrian Passport owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the Austrian Passport owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Class for configuring Austrian Passport Recognizer. - * - * Austrian Passport recognizer is used for scanning Austrian Passport. - */ -export class AustriaPassportRecognizer extends Recognizer { - constructor() { - super('AustriaPassportRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's date of birth should be extracted from Austrian Passport - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry should be extracted from Austrian Passport - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue should be extracted from Austrian Passport - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if owner's given name should be extracted from Austrian Passport - * - * - */ - this.extractGivenName = true; - - /** - * Defines if owner's height should be extracted from Austrian Passport - * - * - */ - this.extractHeight = true; - - /** - * Defines if issuing authority should be extracted from Austrian Passport - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if owner's nationality should be extracted from Austrian Passport - * - * - */ - this.extractNationality = false; - - /** - * Defines if passport number should be extracted from Austrian Passport - * - * - */ - this.extractPassportNumber = true; - - /** - * Defines if owner's place of birth should be extracted from Austrian Passport - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if owner's sex should be extracted from Austrian Passport - * - * - */ - this.extractSex = true; - - /** - * Defines if owner's surname should be extracted from Austrian Passport - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new AustriaPassportRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/barcodeRecognizer.js b/BlinkID/recognizers/barcodeRecognizer.js deleted file mode 100644 index 8b3a593..0000000 --- a/BlinkID/recognizers/barcodeRecognizer.js +++ /dev/null @@ -1,189 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BarcodeRecognizer. - */ -export class BarcodeRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * Type of the barcode scanned - * - * @return Type of the barcode - */ - this.barcodeType = nativeResult.barcodeType; - - /** - * Byte array with result of the scan - */ - this.rawData = nativeResult.rawData; - - /** - * Retrieves string content of scanned data - */ - this.stringData = nativeResult.stringData; - - /** - * Flag indicating uncertain scanning data - * E.g obtained from damaged barcode. - */ - this.uncertain = nativeResult.uncertain; - - } -} - -/** - * BarcodeRecognizer is used for scanning most of 1D barcode formats, and 2D format - * such as Aztec, DataMatrix and QR code - */ -export class BarcodeRecognizer extends Recognizer { - constructor() { - super('BarcodeRecognizer'); - - /** - * Allow enabling the autodetection of image scale when scanning barcodes. - * If set to true, prior reading barcode, image scale will be - * corrected. This enabled correct reading of barcodes on high - * resolution images but slows down the recognition process. - * - * falseTE: This setting is applied only for Code39 and Code128 barcode scanning. - * - * - */ - this.autoScaleDetection = true; - - /** - * Set this to true to scan barcodes which don't have quiet zone (white area) around it - * - * Use only if necessary because it slows down the recognition process - * - * - */ - this.nullQuietZoneAllowed = false; - - /** - * Enable reading code39 barcode contents as extended data. For more information about code39 - * extended data (a.k.a. full ASCII mode), see https://en.wikipedia.org/wiki/Code_39#Full_ASCII_Code_39 - * - * - */ - this.readCode39AsExtendedData = false; - - /** - * Set this to true to scan Aztec 2D barcodes - * - * - */ - this.scanAztecCode = false; - - /** - * Set this to true to scan Code 128 1D barcodes - * - * - */ - this.scanCode128 = false; - - /** - * Set this to true to scan Code 39 1D barcodes - * - * - */ - this.scanCode39 = false; - - /** - * Set this to true to scan DataMatrix 2D barcodes - * - * - */ - this.scanDataMatrix = false; - - /** - * Set this to true to scan EAN 13 barcodes - * - * - */ - this.scanEan13 = false; - - /** - * Set this to true to scan EAN8 barcodes - * - * - */ - this.scanEan8 = false; - - /** - * Set this to true to allow scanning barcodes with inverted intensities - * (i.e. white barcodes on black background) - * - * falseTE: this options doubles the frame processing time - * - * - */ - this.scanInverse = false; - - /** - * Set this to true to scan ITF barcodes - * - * - */ - this.scanItf = false; - - /** - * Set this to true to scan Pdf417 barcodes - * - * - */ - this.scanPdf417 = false; - - /** - * Set this to true to scan QR barcodes - * - * - */ - this.scanQrCode = false; - - /** - * Set this to true to scan even barcode not compliant with standards - * For example, malformed PDF417 barcodes which were incorrectly encoded - * - * Use only if necessary because it slows down the recognition process - * - * - */ - this.scanUncertain = true; - - /** - * Set this to true to scan UPCA barcodes - * - * - */ - this.scanUpca = false; - - /** - * Set this to true to scan UPCE barcodes - * - * - */ - this.scanUpce = false; - - /** - * Set this to true to allow slower, but better image processing. - * - * - */ - this.slowerThoroughScan = true; - - this.createResultFromNative = function (nativeResult) { return new BarcodeRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/belgiumCombinedRecognizer.js b/BlinkID/recognizers/belgiumCombinedRecognizer.js deleted file mode 100644 index b194bcc..0000000 --- a/BlinkID/recognizers/belgiumCombinedRecognizer.js +++ /dev/null @@ -1,168 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BelgiumCombinedRecognizer. - */ -export class BelgiumCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The card number of the Belgium ID card. - */ - this.cardNumber = nativeResult.cardNumber; - - /** - * The date of birth of the Belgium ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Belgium ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Belgium ID owner. - */ - this.firstName = nativeResult.firstName; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The issuing authority of the Belgium ID card. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * The last name of the Belgium ID owner. - */ - this.lastName = nativeResult.lastName; - - /** - * Determines if all check digits inside MRZ are correct. - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The nationality of the Belgium ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Belgium ID owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan front and back side of Belgium national ID cards. - */ -export class BelgiumCombinedRecognizer extends Recognizer { - constructor() { - super('BelgiumCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new BelgiumCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/belgiumIdBackRecognizer.js b/BlinkID/recognizers/belgiumIdBackRecognizer.js deleted file mode 100644 index d4b43ae..0000000 --- a/BlinkID/recognizers/belgiumIdBackRecognizer.js +++ /dev/null @@ -1,72 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BelgiumIdBackRecognizer. - */ -export class BelgiumIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - } -} - -/** - * Recognizer which can scan back side of Belgium ID cards. - */ -export class BelgiumIdBackRecognizer extends Recognizer { - constructor() { - super('BelgiumIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BelgiumIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/belgiumIdFrontRecognizer.js b/BlinkID/recognizers/belgiumIdFrontRecognizer.js deleted file mode 100644 index 336d031..0000000 --- a/BlinkID/recognizers/belgiumIdFrontRecognizer.js +++ /dev/null @@ -1,92 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BelgiumIdFrontRecognizer. - */ -export class BelgiumIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The card number of the Belgium ID card. - */ - this.cardNumber = nativeResult.cardNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - } -} - -/** - * Recognizer which can scan front side of Belgium national ID card. - */ -export class BelgiumIdFrontRecognizer extends Recognizer { - constructor() { - super('BelgiumIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BelgiumIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/blinkCardEliteRecognizer.js b/BlinkID/recognizers/blinkCardEliteRecognizer.js deleted file mode 100644 index e7b3907..0000000 --- a/BlinkID/recognizers/blinkCardEliteRecognizer.js +++ /dev/null @@ -1,170 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BlinkCardEliteRecognizer. - */ -export class BlinkCardEliteRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The payment card number. - */ - this.cardNumber = nativeResult.cardNumber; - - /** - * Payment card's security code/value - */ - this.cvv = nativeResult.cvv; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * Payment card's inventory number. - */ - this.inventoryNumber = nativeResult.inventoryNumber; - - /** - * Information about the payment card owner (name, company, etc.). - */ - this.owner = nativeResult.owner; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The payment card's last month of validity. - */ - this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; - - } -} - -/** - * Recognizer used for scanning the front side of elite credit/debit cards. - */ -export class BlinkCardEliteRecognizer extends Recognizer { - constructor() { - super('BlinkCardEliteRecognizer'); - - /** - * Should anonymize the card number area (redact image pixels) on the document image result - * - * - */ - this.anonymizeCardNumber = false; - - /** - * Should anonymize the CVV on the document image result - * - * - */ - this.anonymizeCvv = false; - - /** - * Should anonymize the owner area (redact image pixels) on the document image result - * - * - */ - this.anonymizeOwner = false; - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Should extract the card's inventory number - * - * - */ - this.extractInventoryNumber = true; - - /** - * Should extract the card owner information - * - * - */ - this.extractOwner = true; - - /** - * Should extract the payment card's month of expiry - * - * - */ - this.extractValidThru = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new BlinkCardEliteRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/blinkCardRecognizer.js b/BlinkID/recognizers/blinkCardRecognizer.js deleted file mode 100644 index 72c1a0d..0000000 --- a/BlinkID/recognizers/blinkCardRecognizer.js +++ /dev/null @@ -1,182 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BlinkCardRecognizer. - */ -export class BlinkCardRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The payment card number. - */ - this.cardNumber = nativeResult.cardNumber; - - /** - * Payment card's security code/value - */ - this.cvv = nativeResult.cvv; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * Payment card's inventory number. - */ - this.inventoryNumber = nativeResult.inventoryNumber; - - /** - * Payment card's issuing networ - */ - this.issuer = nativeResult.issuer; - - /** - * Information about the payment card owner (name, company, etc.). - */ - this.owner = nativeResult.owner; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The payment card's last month of validity. - */ - this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null; - - } -} - -/** - * Recognizer used for scanning the front side of credit/debit cards. - */ -export class BlinkCardRecognizer extends Recognizer { - constructor() { - super('BlinkCardRecognizer'); - - /** - * Should anonymize the card number area (redact image pixels) on the document image result - * - * - */ - this.anonymizeCardNumber = false; - - /** - * Should anonymize the CVV on the document image result - * - * - */ - this.anonymizeCvv = false; - - /** - * Should anonymize the owner area (redact image pixels) on the document image result - * - * - */ - this.anonymizeOwner = false; - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Should extract CVV - * - * - */ - this.extractCvv = true; - - /** - * Should extract the card's inventory number - * - * - */ - this.extractInventoryNumber = true; - - /** - * Should extract the card owner information - * - * - */ - this.extractOwner = false; - - /** - * Should extract the payment card's month of expiry - * - * - */ - this.extractValidThru = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new BlinkCardRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/blinkIdCombinedRecognizer.js b/BlinkID/recognizers/blinkIdCombinedRecognizer.js index e57b156..5dfa39b 100644 --- a/BlinkID/recognizers/blinkIdCombinedRecognizer.js +++ b/BlinkID/recognizers/blinkIdCombinedRecognizer.js @@ -4,10 +4,11 @@ import { Point, Quadrilateral, MrtdDocumentType, - MrzResult, - EudlCountry, + MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, + DataMatchResult, + } from '../types' /** @@ -17,11 +18,26 @@ export class BlinkIdCombinedRecognizerResult extends RecognizerResult { constructor(nativeResult) { super(nativeResult.resultState); + /** + * The additional name information of the document owner. + */ + this.additionalAddressInformation = nativeResult.additionalAddressInformation; + + /** + * The additional name information of the document owner. + */ + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The address of the document owner. */ this.address = nativeResult.address; + /** + * The driver license conditions. + */ + this.conditions = nativeResult.conditions; + /** * The date of birth of the document owner. */ @@ -38,20 +54,12 @@ export class BlinkIdCombinedRecognizerResult extends RecognizerResult { this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. + * The additional number of the document. */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines result of the data matching algorithm for scanned parts/sides of the document. */ this.documentDataMatch = nativeResult.documentDataMatch; @@ -66,7 +74,12 @@ export class BlinkIdCombinedRecognizerResult extends RecognizerResult { this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; /** - * face image from the document if enabled with returnFaceImage property. + * The employer of the document owner. + */ + this.employer = nativeResult.employer; + + /** + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -76,23 +89,77 @@ export class BlinkIdCombinedRecognizerResult extends RecognizerResult { this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Back side image of the document */ - this.fullDocumentImage = nativeResult.fullDocumentImage; + this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; + + /** + * Front side image of the document + */ + this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; /** * The full name of the document owner. */ this.fullName = nativeResult.fullName; + /** + * The issuing authority of the document. + */ + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The last name of the document owner. */ this.lastName = nativeResult.lastName; /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. + * The marital status of the document owner. + */ + this.maritalStatus = nativeResult.maritalStatus; + + /** + * The data extracted from the machine readable zone. + */ + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + + /** + * The nationality of the documet owner. + */ + this.nationality = nativeResult.nationality; + + /** + * The personal identification number. + */ + this.personalIdNumber = nativeResult.personalIdNumber; + + /** + * The place of birth of the document owner. + */ + this.placeOfBirth = nativeResult.placeOfBirth; + + /** + * The profession of the document owner. + */ + this.profession = nativeResult.profession; + + /** + * The race of the document owner. + */ + this.race = nativeResult.race; + + /** + * The religion of the document owner. + */ + this.religion = nativeResult.religion; + + /** + * The residential stauts of the document owner. + */ + this.residentialStatus = nativeResult.residentialStatus; + + /** + * {true} if recognizer has finished scanning first side and is now scanning back side, */ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; @@ -105,57 +172,37 @@ export class BlinkIdCombinedRecognizerResult extends RecognizerResult { } /** - * Recognizer which can scan front and back side of the United States driver license. + * A generic recognizer which can scan front and back side of the document. */ export class BlinkIdCombinedRecognizer extends Recognizer { constructor() { super('BlinkIdCombinedRecognizer'); /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - this.createResultFromNative = function (nativeResult) { return new BlinkIdCombinedRecognizerResult(nativeResult); } } } \ No newline at end of file diff --git a/BlinkID/recognizers/blinkIdRecognizer.js b/BlinkID/recognizers/blinkIdRecognizer.js index 415526c..47ed559 100644 --- a/BlinkID/recognizers/blinkIdRecognizer.js +++ b/BlinkID/recognizers/blinkIdRecognizer.js @@ -4,10 +4,11 @@ import { Point, Quadrilateral, MrtdDocumentType, - MrzResult, - EudlCountry, + MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, + DataMatchResult, + } from '../types' /** @@ -17,11 +18,26 @@ export class BlinkIdRecognizerResult extends RecognizerResult { constructor(nativeResult) { super(nativeResult.resultState); + /** + * The additional name information of the document owner. + */ + this.additionalAddressInformation = nativeResult.additionalAddressInformation; + + /** + * The additional name information of the document owner. + */ + this.additionalNameInformation = nativeResult.additionalNameInformation; + /** * The address of the document owner. */ this.address = nativeResult.address; + /** + * The driver license conditions. + */ + this.conditions = nativeResult.conditions; + /** * The date of birth of the document owner. */ @@ -37,6 +53,11 @@ export class BlinkIdRecognizerResult extends RecognizerResult { */ this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; + /** + * The additional number of the document. + */ + this.documentAdditionalNumber = nativeResult.documentAdditionalNumber; + /** * The document number. */ @@ -48,7 +69,12 @@ export class BlinkIdRecognizerResult extends RecognizerResult { this.driverLicenseDetailedInfo = nativeResult.driverLicenseDetailedInfo; /** - * face image from the document if enabled with returnFaceImage property. + * The employer of the document owner. + */ + this.employer = nativeResult.employer; + + /** + * Face image from the document */ this.faceImage = nativeResult.faceImage; @@ -58,7 +84,7 @@ export class BlinkIdRecognizerResult extends RecognizerResult { this.firstName = nativeResult.firstName; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -67,11 +93,61 @@ export class BlinkIdRecognizerResult extends RecognizerResult { */ this.fullName = nativeResult.fullName; + /** + * The issuing authority of the document. + */ + this.issuingAuthority = nativeResult.issuingAuthority; + /** * The last name of the document owner. */ this.lastName = nativeResult.lastName; + /** + * The marital status of the document owner. + */ + this.maritalStatus = nativeResult.maritalStatus; + + /** + * The data extracted from the machine readable zone. + */ + this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; + + /** + * The nationality of the documet owner. + */ + this.nationality = nativeResult.nationality; + + /** + * The personal identification number. + */ + this.personalIdNumber = nativeResult.personalIdNumber; + + /** + * The place of birth of the document owner. + */ + this.placeOfBirth = nativeResult.placeOfBirth; + + /** + * The profession of the document owner. + */ + this.profession = nativeResult.profession; + + /** + * The race of the document owner. + */ + this.race = nativeResult.race; + + /** + * The religion of the document owner. + */ + this.religion = nativeResult.religion; + + /** + * The residential stauts of the document owner. + */ + this.residentialStatus = nativeResult.residentialStatus; + /** * The sex of the document owner. */ @@ -81,47 +157,34 @@ export class BlinkIdRecognizerResult extends RecognizerResult { } /** - * The Blink ID Recognizer is used for scanning Blink ID. + * Generic BlinkID recognizer. */ export class BlinkIdRecognizer extends Recognizer { constructor() { super('BlinkIdRecognizer'); /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; diff --git a/BlinkID/recognizers/bruneiIdBackRecognizer.js b/BlinkID/recognizers/bruneiIdBackRecognizer.js deleted file mode 100644 index 52118a7..0000000 --- a/BlinkID/recognizers/bruneiIdBackRecognizer.js +++ /dev/null @@ -1,108 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiIdBackRecognizer. - */ -export class BruneiIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Brunei ID owner. - */ - this.address = nativeResult.address; - - /** - * The date of issue of Brunei ID. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The race of Brunei ID owner. - */ - this.race = nativeResult.race; - - } -} - -/** - * Recognizer which can scan back side of Brunei national ID cards. - */ -export class BruneiIdBackRecognizer extends Recognizer { - constructor() { - super('BruneiIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Brunei ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of issue of Brunei ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if the race of Brunei ID owner should be extracted. - * - * - */ - this.extractRace = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BruneiIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/bruneiIdFrontRecognizer.js b/BlinkID/recognizers/bruneiIdFrontRecognizer.js deleted file mode 100644 index 59ee3bc..0000000 --- a/BlinkID/recognizers/bruneiIdFrontRecognizer.js +++ /dev/null @@ -1,140 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiIdFrontRecognizer. - */ -export class BruneiIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Brunei ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The document number of Brunei ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Brunei ID owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The place of birth of Brunei ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The sex of Brunei ID owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan front side of yellow version of Brunei ID. - */ -export class BruneiIdFrontRecognizer extends Recognizer { - constructor() { - super('BruneiIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Brunei ID owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if full name of Brunei ID owner should be extracted. - * - * - */ - this.extractFullName = true; - - /** - * Defines if place of birth of Brunei ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if sex of Brunei ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BruneiIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/bruneiMilitaryIdBackRecognizer.js b/BlinkID/recognizers/bruneiMilitaryIdBackRecognizer.js deleted file mode 100644 index fcf7f3c..0000000 --- a/BlinkID/recognizers/bruneiMilitaryIdBackRecognizer.js +++ /dev/null @@ -1,116 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiMilitaryIdBackRecognizer. - */ -export class BruneiMilitaryIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The army number of Brunei Military ID owner. - */ - this.armyNumber = nativeResult.armyNumber; - - /** - * The date of expiry of Brunei Military ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of Brunei Military ID card. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan back side of Brunei Military ID card. - */ -export class BruneiMilitaryIdBackRecognizer extends Recognizer { - constructor() { - super('BruneiMilitaryIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of expiry of Brunei Military ID card should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Brunei Military ID card should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new BruneiMilitaryIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/bruneiMilitaryIdFrontRecognizer.js b/BlinkID/recognizers/bruneiMilitaryIdFrontRecognizer.js deleted file mode 100644 index 5325a78..0000000 --- a/BlinkID/recognizers/bruneiMilitaryIdFrontRecognizer.js +++ /dev/null @@ -1,116 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiMilitaryIdFrontRecognizer. - */ -export class BruneiMilitaryIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Brunei Military ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Brunei Military ID owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The military rank of Brunei Military ID owner. - */ - this.rank = nativeResult.rank; - - } -} - -/** - * Recognizer which can scan front side of Brunei Military ID card. - */ -export class BruneiMilitaryIdFrontRecognizer extends Recognizer { - constructor() { - super('BruneiMilitaryIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if full name of Brunei Military ID owner should be extracted. - * - * - */ - this.extractFullName = true; - - /** - * Defines if military rank of Brunei Military ID owner should be extracted. - * - * - */ - this.extractRank = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BruneiMilitaryIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/bruneiResidencePermitBackRecognizer.js b/BlinkID/recognizers/bruneiResidencePermitBackRecognizer.js deleted file mode 100644 index b481f4d..0000000 --- a/BlinkID/recognizers/bruneiResidencePermitBackRecognizer.js +++ /dev/null @@ -1,108 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiResidencePermitBackRecognizer. - */ -export class BruneiResidencePermitBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Brunei Residence Permit card owner. - */ - this.address = nativeResult.address; - - /** - * The date of issue of Brunei Residence Permit card. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The race of Brunei Residence Permit card owner. - */ - this.race = nativeResult.race; - - } -} - -/** - * Recognizer which can scan back side of Brunei national Residence Permit cards. - */ -export class BruneiResidencePermitBackRecognizer extends Recognizer { - constructor() { - super('BruneiResidencePermitBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Brunei Residence Permit card owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of issue of Brunei Residence Permit card should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if the race of Brunei Residence Permit card owner should be extracted. - * - * - */ - this.extractRace = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BruneiResidencePermitBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/bruneiResidencePermitFrontRecognizer.js b/BlinkID/recognizers/bruneiResidencePermitFrontRecognizer.js deleted file mode 100644 index 627b2a4..0000000 --- a/BlinkID/recognizers/bruneiResidencePermitFrontRecognizer.js +++ /dev/null @@ -1,140 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiResidencePermitFrontRecognizer. - */ -export class BruneiResidencePermitFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Brunei residence permit owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The document number of Brunei residence permit. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Brunei residence permit owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The place of birth of Brunei residence permit owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The sex of Brunei residence permit owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan front side of Brunei residence permits. - */ -export class BruneiResidencePermitFrontRecognizer extends Recognizer { - constructor() { - super('BruneiResidencePermitFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Brunei residence permit owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if full name of Brunei residence permit owner should be extracted. - * - * - */ - this.extractFullName = true; - - /** - * Defines if place of birth of Brunei residence permit owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if sex of Brunei residence permit owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BruneiResidencePermitFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/bruneiTemporaryResidencePermitBackRecognizer.js b/BlinkID/recognizers/bruneiTemporaryResidencePermitBackRecognizer.js deleted file mode 100644 index bb2acbb..0000000 --- a/BlinkID/recognizers/bruneiTemporaryResidencePermitBackRecognizer.js +++ /dev/null @@ -1,108 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiTemporaryResidencePermitBackRecognizer. - */ -export class BruneiTemporaryResidencePermitBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Brunei temporary residence permit owner's employer. - */ - this.address = nativeResult.address; - - /** - * The date of issue of Brunei temporary residence permit. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The passport number of Brunei temporary residence permit owner. - */ - this.passportNumber = nativeResult.passportNumber; - - } -} - -/** - * Recognizer which can scan back side of Brunei temporary residence permit cards. - */ -export class BruneiTemporaryResidencePermitBackRecognizer extends Recognizer { - constructor() { - super('BruneiTemporaryResidencePermitBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Brunei temporary residence permit owner's employer should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of issue of Brunei temporary residence permit should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if the passport number of Brunei temporary residence permit owner should be extracted. - * - * - */ - this.extractPassportNumber = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BruneiTemporaryResidencePermitBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/bruneiTemporaryResidencePermitFrontRecognizer.js b/BlinkID/recognizers/bruneiTemporaryResidencePermitFrontRecognizer.js deleted file mode 100644 index b008c8c..0000000 --- a/BlinkID/recognizers/bruneiTemporaryResidencePermitFrontRecognizer.js +++ /dev/null @@ -1,152 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for BruneiTemporaryResidencePermitFrontRecognizer. - */ -export class BruneiTemporaryResidencePermitFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Brunei Temporary Residence Permit owner. - */ - this.address = nativeResult.address; - - /** - * The date of birth of Brunei Temporary Residence Permit owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The document number of Brunei Temporary Residence Permit. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Brunei Temporary Residence Permit owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The place of birth of Brunei Temporary Residence Permit owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The sex of Brunei Temporary Residence Permit owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan front side of Brunei Temporary Residence Permit. - */ -export class BruneiTemporaryResidencePermitFrontRecognizer extends Recognizer { - constructor() { - super('BruneiTemporaryResidencePermitFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Brunei Temporary Residence Permit owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of birth of Brunei Temporary Residence Permit owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if full name of Brunei Temporary Residence Permit owner should be extracted. - * - * - */ - this.extractFullName = true; - - /** - * Defines if place of birth of Brunei Temporary Residence Permit owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if sex of Brunei Temporary Residence Permit owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new BruneiTemporaryResidencePermitFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/colombiaDlFrontRecognizer.js b/BlinkID/recognizers/colombiaDlFrontRecognizer.js deleted file mode 100644 index b30d1b4..0000000 --- a/BlinkID/recognizers/colombiaDlFrontRecognizer.js +++ /dev/null @@ -1,145 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for ColombiaDlFrontRecognizer. - */ -export class ColombiaDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date Of Birth of the front side of the Colombia Dl owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Issue of the front side of the Colombia Dl owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * The driver Restrictions of the front side of the Colombia Dl owner. - */ - this.driverRestrictions = nativeResult.driverRestrictions; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing Agency of the front side of the Colombia Dl owner. - */ - this.issuingAgency = nativeResult.issuingAgency; - - /** - * The licence Number of the front side of the Colombia Dl owner. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The name of the front side of the Colombia Dl owner. - */ - this.name = nativeResult.name; - - } -} - -/** - * Recognizer which can scan front side of Colombia drivers licence. - */ -export class ColombiaDlFrontRecognizer extends Recognizer { - constructor() { - super('ColombiaDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if the date of birth of the Colombia Dl owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if the driver restrictions of the Colombia Dl owner should be extracted. - * - * - */ - this.extractDriverRestrictions = true; - - /** - * Defines if the issuing agency of the Colombia Dl card should be extracted. - * - * - */ - this.extractIssuingAgency = true; - - /** - * Defines if the name of the Colombia Dl owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new ColombiaDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/colombiaIdBackRecognizer.js b/BlinkID/recognizers/colombiaIdBackRecognizer.js deleted file mode 100644 index e7289b1..0000000 --- a/BlinkID/recognizers/colombiaIdBackRecognizer.js +++ /dev/null @@ -1,123 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for ColombiaIdBackRecognizer. - */ -export class ColombiaIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The birth Date of the Colombia Id owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The blood Group of the Colombia Id owner. - */ - this.bloodGroup = nativeResult.bloodGroup; - - /** - * The document Number Colombia Id owner. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * The fingerprint of the Colombian ID owner. - */ - this.fingerprint = nativeResult.fingerprint; - - /** - * The first Name of the Colombia Id owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The last Name of the Colombia Id owner. - */ - this.lastName = nativeResult.lastName; - - /** - * The sex of the Colombia Id owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Class for configuring Colombia Id Back Recognizer. - * - * Colombia Id Back recognizer is used for scanning back side of the Colombia Id. - */ -export class ColombiaIdBackRecognizer extends Recognizer { - constructor() { - super('ColombiaIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Set this to true to scan barcodes which don't have quiet zone (white area) around it - * - * Use only if necessary because it slows down the recognition process - * - * - */ - this.nullQuietZoneAllowed = true; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Set this to true to scan even barcode not compliant with standards - * For example, malformed PDF417 barcodes which were incorrectly encoded - * - * Use only if necessary because it slows down the recognition process - * - * - */ - this.scanUncertain = true; - - this.createResultFromNative = function (nativeResult) { return new ColombiaIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/colombiaIdFrontRecognizer.js b/BlinkID/recognizers/colombiaIdFrontRecognizer.js deleted file mode 100644 index 8cf85db..0000000 --- a/BlinkID/recognizers/colombiaIdFrontRecognizer.js +++ /dev/null @@ -1,138 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for ColombiaIdFrontRecognizer. - */ -export class ColombiaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The document Number of the Colombia Id. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first Name of the Colombia Id owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The last Name of the Colombia Id owner. - */ - this.lastName = nativeResult.lastName; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Class for configuring Colombia Id Front Recognizer. - * - * Colombia Id Front recognizer is used for scanning front side of the Colombia Id. - */ -export class ColombiaIdFrontRecognizer extends Recognizer { - constructor() { - super('ColombiaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's first name should be extracted from front side of the Colombia Id - * - * - */ - this.extractFirstName = true; - - /** - * Defines if owner's last name should be extracted from front side of the Colombia Id - * - * - */ - this.extractLastName = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new ColombiaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/croatiaCombinedRecognizer.js b/BlinkID/recognizers/croatiaCombinedRecognizer.js deleted file mode 100644 index d1cdd48..0000000 --- a/BlinkID/recognizers/croatiaCombinedRecognizer.js +++ /dev/null @@ -1,281 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CroatiaCombinedRecognizer. - */ -export class CroatiaCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The citizenship of the Croatian ID owner. - */ - this.citizenship = nativeResult.citizenship; - - /** - * The date of birth of the Croatian ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Croatian ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Determines if date of expiry of the Croatian ID is permanent. - */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - - /** - * The date of issue of Croatian ID. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Determines if Croatian ID is bilingual. - */ - this.documentBilingual = nativeResult.documentBilingual; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * Determines if Croatian ID is issued for non resident. - */ - this.documentForNonResident = nativeResult.documentForNonResident; - - /** - * The document number of the Croatian ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Croatian ID owner. - */ - this.firstName = nativeResult.firstName; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The issuer of Croatian ID. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * The last name of the Croatian ID owner. - */ - this.lastName = nativeResult.lastName; - - /** - * Determines if all check digits inside MRZ are correct. - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The OIB of Croatian ID owner. - */ - this.oib = nativeResult.oib; - - /** - * The residence of Croatian ID owner. - */ - this.residence = nativeResult.residence; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Croatian ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can front and back side of Croatian national ID cards. - */ -export class CroatiaCombinedRecognizer extends Recognizer { - constructor() { - super('CroatiaCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if citizenship of Croatian ID owner should be extracted - * - * - */ - this.extractCitizenship = true; - - /** - * Defines if date of birth of Croatian ID owner should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Croatian ID document should be extracted - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Croatian ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if first name of Croatian ID owner should be extracted - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuer of Croatian ID should be extracted. - * - * - */ - this.extractIssuedBy = true; - - /** - * Defines if last name of Croatian ID owner should be extracted - * - * - */ - this.extractLastName = true; - - /** - * Defines if residence of Croatian ID owner should be extracted. - * - * - */ - this.extractResidence = true; - - /** - * Defines if sex of Croatian ID owner should be extracted - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new CroatiaCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/croatiaIdBackRecognizer.js b/BlinkID/recognizers/croatiaIdBackRecognizer.js deleted file mode 100644 index 864a7f4..0000000 --- a/BlinkID/recognizers/croatiaIdBackRecognizer.js +++ /dev/null @@ -1,121 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CroatiaIdBackRecognizer. - */ -export class CroatiaIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * Determines if date of expiry of Croatian ID is permanent - */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - - /** - * The date of issue of Croatian ID - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * Determines if Croatian ID is issued for non resident - */ - this.documentForNonResident = nativeResult.documentForNonResident; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuer of Croatian ID - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * The data extracted from the machine readable zone - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The residence of Croatian ID owner - */ - this.residence = nativeResult.residence; - - } -} - -/** - * Croatian ID Back Recognizer. - * - * Croatian ID Back recognizer is used for scanning back side of Croatian ID. It always extracts - * MRZ zone and address of ID holder while extracting other elements is optional. - */ -export class CroatiaIdBackRecognizer extends Recognizer { - constructor() { - super('CroatiaIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of issue of Croatian ID should be extracted - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if issuer of Croatian ID should be extracted - * - * - */ - this.extractIssuedBy = true; - - /** - * Defines if residence of Croatian ID owner should be extracted - * - * - */ - this.extractResidence = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new CroatiaIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/croatiaIdFrontRecognizer.js b/BlinkID/recognizers/croatiaIdFrontRecognizer.js deleted file mode 100644 index 14e9a5d..0000000 --- a/BlinkID/recognizers/croatiaIdFrontRecognizer.js +++ /dev/null @@ -1,197 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CroatiaIdFrontRecognizer. - */ -export class CroatiaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The citizenship of the Croatian ID owner. - */ - this.citizenship = nativeResult.citizenship; - - /** - * The date of birth of Croatian ID owner - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The document date of expiry of the Croatian ID - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Check if date of expiry is permanent on the Croatian ID. - */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - - /** - * true if the document is bilingual - */ - this.documentBilingual = nativeResult.documentBilingual; - - /** - * The document number of the Croatian ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Croatian ID owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The last name of the Croatian ID owner. - */ - this.lastName = nativeResult.lastName; - - /** - * The sex of the Croatian ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Croatian ID Front Recognizer. - * - * Croatian ID Front recognizer is used for scanning front side of Croatian ID. It always extracts - * identity card number, first and last name of ID holder while extracting other elements is optional. - */ -export class CroatiaIdFrontRecognizer extends Recognizer { - constructor() { - super('CroatiaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if citizenship of Croatian ID owner should be extracted - * - * - */ - this.extractCitizenship = true; - - /** - * Defines if date of birth of Croatian ID owner should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry should be extracted from Croatian ID - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if first name of Croatian ID owner should be extracted - * - * - */ - this.extractFirstName = true; - - /** - * Defines if last name of Croatian ID owner should be extracted - * - * - */ - this.extractLastName = true; - - /** - * Defines if sex of Croatian ID owner should be extracted - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new CroatiaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/cyprusIdBackRecognizer.js b/BlinkID/recognizers/cyprusIdBackRecognizer.js deleted file mode 100644 index daf1e28..0000000 --- a/BlinkID/recognizers/cyprusIdBackRecognizer.js +++ /dev/null @@ -1,72 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CyprusIdBackRecognizer. - */ -export class CyprusIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - } -} - -/** - * Recognizer which can scan back side of Cyprus ID cards. - */ -export class CyprusIdBackRecognizer extends Recognizer { - constructor() { - super('CyprusIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new CyprusIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/cyprusIdFrontRecognizer.js b/BlinkID/recognizers/cyprusIdFrontRecognizer.js deleted file mode 100644 index 033bd33..0000000 --- a/BlinkID/recognizers/cyprusIdFrontRecognizer.js +++ /dev/null @@ -1,112 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CyprusIdFrontRecognizer. - */ -export class CyprusIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The ID number of Cyprus ID card. - */ - this.idNumber = nativeResult.idNumber; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan front side of Cyprus national ID cards. - */ -export class CyprusIdFrontRecognizer extends Recognizer { - constructor() { - super('CyprusIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new CyprusIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/cyprusOldIdBackRecognizer.js b/BlinkID/recognizers/cyprusOldIdBackRecognizer.js deleted file mode 100644 index 874f0e1..0000000 --- a/BlinkID/recognizers/cyprusOldIdBackRecognizer.js +++ /dev/null @@ -1,96 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CyprusOldIdBackRecognizer. - */ -export class CyprusOldIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the old Cyprus ID card owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The expiry date of old Cyprus ID card. - */ - this.expiresOn = nativeResult.expiresOn != null ? new Date(nativeResult.expiresOn) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The sex of the old Cyprus ID card owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan back side of old Cyprus national ID cards. - */ -export class CyprusOldIdBackRecognizer extends Recognizer { - constructor() { - super('CyprusOldIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if the expiry date of old Cryprus ID card should be extracted. - * - * - */ - this.extractExpiresOn = true; - - /** - * Defines if the sex of old Cyprus ID card owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new CyprusOldIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/cyprusOldIdFrontRecognizer.js b/BlinkID/recognizers/cyprusOldIdFrontRecognizer.js deleted file mode 100644 index e583b50..0000000 --- a/BlinkID/recognizers/cyprusOldIdFrontRecognizer.js +++ /dev/null @@ -1,128 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CyprusOldIdFrontRecognizer. - */ -export class CyprusOldIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The document number of old Cyprus ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The ID number of the old Cyprus ID card. - */ - this.idNumber = nativeResult.idNumber; - - /** - * The name of old Cyprus ID card owner. - */ - this.name = nativeResult.name; - - /** - * The surname of old Cyprus ID card owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of old Cyprus national ID cards. - */ -export class CyprusOldIdFrontRecognizer extends Recognizer { - constructor() { - super('CyprusOldIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if document number of old Cyprus ID card should be extracted. - * - * - */ - this.extractDocumentNumber = true; - - /** - * Defines if name of old Cyprus ID card owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if surname of old Cyprus ID card owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new CyprusOldIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/czechiaCombinedRecognizer.js b/BlinkID/recognizers/czechiaCombinedRecognizer.js deleted file mode 100644 index 48ac6fe..0000000 --- a/BlinkID/recognizers/czechiaCombinedRecognizer.js +++ /dev/null @@ -1,278 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CzechiaCombinedRecognizer. - */ -export class CzechiaCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The issuing authority of the Czechia ID card. - */ - this.authority = nativeResult.authority; - - /** - * The date of birth of the Czechia ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Czechia ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of the Czechia ID card. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The document number of the Czechia ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The given names of the Czechia ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * Determines if all check digits inside MRZ are correct - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The nationality of the Czechia ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The permanent stay address of the Czechia ID owner. - */ - this.permanentStay = nativeResult.permanentStay; - - /** - * The personal number of the Czechia ID owner. - */ - this.personalNumber = nativeResult.personalNumber; - - /** - * The place of birth of the Czechia ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Czechia ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the Czechia ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front and back side of Czechia national ID cards. - */ -export class CzechiaCombinedRecognizer extends Recognizer { - constructor() { - super('CzechiaCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if Czech ID's issuing authority should be extracted. - * - * - */ - this.extractAuthority = true; - - /** - * Defines if Czech ID owner's date of birth should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if Czech ID's date of expiry should be extracted - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if Czech ID's date of issue should be extracted - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if Czech ID owner's given names should be extracted - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if Czech ID owner's permanent address should be extracted. - * - * - */ - this.extractPermanentStay = true; - - /** - * Defines if Czech ID owner's personal number should be extracted. - * - * - */ - this.extractPersonalNumber = true; - - /** - * Defines if Czech ID owner's place of birth should be extracted - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if Czech ID owner's sex should be extracted - * - * - */ - this.extractSex = true; - - /** - * Defines if Czech ID owner's surname should be extracted - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new CzechiaCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/czechiaIdBackRecognizer.js b/BlinkID/recognizers/czechiaIdBackRecognizer.js deleted file mode 100644 index c648bdd..0000000 --- a/BlinkID/recognizers/czechiaIdBackRecognizer.js +++ /dev/null @@ -1,108 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CzechiaIdBackRecognizer. - */ -export class CzechiaIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The Czech ID's issuing authority. - */ - this.authority = nativeResult.authority; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from Czech ID's machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The Czech ID owner's permanent address. - */ - this.permanentStay = nativeResult.permanentStay; - - /** - * The Czech ID owner's personal number. - */ - this.personalNumber = nativeResult.personalNumber; - - } -} - -/** - * Recognizer which can scan the back side of Czech IDs. - */ -export class CzechiaIdBackRecognizer extends Recognizer { - constructor() { - super('CzechiaIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if Czech ID's issuing authority should be extracted. - * - * - */ - this.extractAuthority = true; - - /** - * Defines if Czech ID owner's permanent address should be extracted. - * - * - */ - this.extractPermanentStay = true; - - /** - * Defines if Czech ID owner's personal number should be extracted. - * - * - */ - this.extractPersonalNumber = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new CzechiaIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/czechiaIdFrontRecognizer.js b/BlinkID/recognizers/czechiaIdFrontRecognizer.js deleted file mode 100644 index 96ec9c8..0000000 --- a/BlinkID/recognizers/czechiaIdFrontRecognizer.js +++ /dev/null @@ -1,196 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for CzechiaIdFrontRecognizer. - */ -export class CzechiaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Czech ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of Czech ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of Czech ID. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * The document number of Czech ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given names of Czech ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * The place of birth of Czech ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The sex of Czech ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of Czech ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan the front side of Czech IDs. - */ -export class CzechiaIdFrontRecognizer extends Recognizer { - constructor() { - super('CzechiaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if Czech ID owner's date of birth should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if Czech ID's date of expiry should be extracted - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if Czech ID's date of issue should be extracted - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if Czech ID owner's given names should be extracted - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if Czech ID owner's place of birth should be extracted - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if Czech ID owner's sex should be extracted - * - * - */ - this.extractSex = true; - - /** - * Defines if Czech ID owner's surname should be extracted - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new CzechiaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/documentFaceRecognizer.js b/BlinkID/recognizers/documentFaceRecognizer.js index 5a229f4..6e753ff 100644 --- a/BlinkID/recognizers/documentFaceRecognizer.js +++ b/BlinkID/recognizers/documentFaceRecognizer.js @@ -4,10 +4,11 @@ import { Point, Quadrilateral, MrtdDocumentType, - MrzResult, - EudlCountry, + MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, + DataMatchResult, + } from '../types' /** @@ -18,22 +19,22 @@ export class DocumentFaceRecognizerResult extends RecognizerResult { super(nativeResult.resultState); /** - * Quadrangle represeting corner points of the document within the input image. + * The location of document detection in coordinate system of full input frame. */ this.documentLocation = nativeResult.documentLocation != null ? new Quadrilateral(nativeResult.documentLocation) : null; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * Quadrangle represeting corner points of the face image within the input image. + * The location of face detection in coordinate system of cropped full document image. */ this.faceLocation = nativeResult.faceLocation != null ? new Quadrilateral(nativeResult.faceLocation) : null; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -41,66 +42,44 @@ export class DocumentFaceRecognizerResult extends RecognizerResult { } /** - * Class for configuring Document Face Recognizer Recognizer. - * - * Document Face Recognizer recognizer is used for scanning documents containing face images. + * Recognizer for detecting holder's photo on documents containing image. */ export class DocumentFaceRecognizer extends Recognizer { constructor() { super('DocumentFaceRecognizer'); /** - * Type of docment this recognizer will scan. - * - * + * Currently used detector type. */ this.detectorType = DocumentFaceDetectorType.TD1; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines how many times the same document should be detected before the detector - * returns this document as a result of the deteciton - * - * Higher number means more reliable detection, but slower processing - * - * + * Minimum number of stable detections required for detection to be successful. */ this.numStableDetectionsThreshold = 6; /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; diff --git a/BlinkID/recognizers/egyptIdFrontRecognizer.js b/BlinkID/recognizers/egyptIdFrontRecognizer.js deleted file mode 100644 index 25d1a28..0000000 --- a/BlinkID/recognizers/egyptIdFrontRecognizer.js +++ /dev/null @@ -1,104 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for EgyptIdFrontRecognizer. - */ -export class EgyptIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The document number of Egypt ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The national number of Egypt ID. - */ - this.nationalNumber = nativeResult.nationalNumber; - - } -} - -/** - * Recognizer which can scan front side of Egypt ID. - */ -export class EgyptIdFrontRecognizer extends Recognizer { - constructor() { - super('EgyptIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if national number of Egypt ID should be extracted. - * - * - */ - this.extractNationalNumber = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new EgyptIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/eudlRecognizer.js b/BlinkID/recognizers/eudlRecognizer.js deleted file mode 100644 index ebcd062..0000000 --- a/BlinkID/recognizers/eudlRecognizer.js +++ /dev/null @@ -1,174 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for EudlRecognizer. - */ -export class EudlRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the EU Driver License owner. - */ - this.address = nativeResult.address; - - /** - * The birth Data of the EU Driver License owner. - */ - this.birthData = nativeResult.birthData; - - /** - * The country of the EU Driver License owner. - */ - this.country = nativeResult.country; - - /** - * The driver Number of the EU Driver License owner. - */ - this.driverNumber = nativeResult.driverNumber; - - /** - * The expiry Date of the EU Driver License owner. - */ - this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first Name of the EU Driver License owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issue Date of the EU Driver License owner. - */ - this.issueDate = nativeResult.issueDate != null ? new Date(nativeResult.issueDate) : null; - - /** - * The issuing Authority of the EU Driver License owner. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The last Name of the EU Driver License owner. - */ - this.lastName = nativeResult.lastName; - - /** - * The personal Number of the EU Driver License owner. - */ - this.personalNumber = nativeResult.personalNumber; - - } -} - -/** - * Class for configuring EU Driver License Recognizer. - * - * EU Driver License recognizer is used for scanning EU Driver License. - */ -export class EudlRecognizer extends Recognizer { - constructor() { - super('EudlRecognizer'); - - /** - * Country of scanning Eudl. The default value of EudlCountryAny will scan all supported driver's licenses. - * - * - */ - this.country = EudlCountry.Automatic; - - /** - * Defines if owner's address should be extracted from EU Driver License - * - * - */ - this.extractAddress = true; - - /** - * Defines if owner's date of expiry should be extracted from EU Driver License - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if owner's date of issue should be extracted from EU Driver License - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if owner's issuing authority should be extracted from EU Driver License - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if owner's personal number should be extracted from EU Driver License - * - * - */ - this.extractPersonalNumber = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new EudlRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/germanyCombinedRecognizer.js b/BlinkID/recognizers/germanyCombinedRecognizer.js deleted file mode 100644 index 652faa3..0000000 --- a/BlinkID/recognizers/germanyCombinedRecognizer.js +++ /dev/null @@ -1,315 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for GermanyCombinedRecognizer. - */ -export class GermanyCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the Germany ID owner. - */ - this.address = nativeResult.address; - - /** - * The issuing authority of the Germany ID card. - */ - this.authority = nativeResult.authority; - - /** - * The CAN number of the Germany ID card. - */ - this.canNumber = nativeResult.canNumber; - - /** - * The colour of eyes of the Germany ID owner. - */ - this.colourOfEyes = nativeResult.colourOfEyes; - - /** - * The date of birth of the Germany ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Germany ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of the Germany ID card. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The document number of the Germany ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The given names of the Germany ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * The height of the Germany ID owner. - */ - this.height = nativeResult.height; - - /** - * Determines if all check digits inside MRZ are correct - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The nationality of the Germany ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The place of birth of the Germany ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The full mrz string result. - */ - this.rawMrzString = nativeResult.rawMrzString; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Germany ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the Germany ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front and back side of German national ID cards, - * front side of German old ID card and front side of German Passport. - */ -export class GermanyCombinedRecognizer extends Recognizer { - constructor() { - super('GermanyCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of German ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if issuing authority of German ID should be extracted. - * - * - */ - this.extractAuthority = true; - - /** - * Defines if CAN number of Germany ID should be extracted. - * - * - */ - this.extractCanNumber = true; - - /** - * Defines if colour of eyes of German ID owner should be extracted. - * - * - */ - this.extractColourOfEyes = true; - - /** - * Defines if date of expiry of Germany ID should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of German ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if document number of Germany ID should be extracted. - * - * - */ - this.extractDocumentNumber = true; - - /** - * Defines if given name of German passport owner should be extracted. - * - * - */ - this.extractGivenName = true; - - /** - * Defines if given names of Germany ID owner should be extracted. - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if height of German ID owner should be extracted. - * - * - */ - this.extractHeight = true; - - /** - * Defines if nationality of Germany ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if place of birth of Germany ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of Germany ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new GermanyCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/germanyDlBackRecognizer.js b/BlinkID/recognizers/germanyDlBackRecognizer.js deleted file mode 100644 index aa6247b..0000000 --- a/BlinkID/recognizers/germanyDlBackRecognizer.js +++ /dev/null @@ -1,77 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for GermanyDlBackRecognizer. - */ -export class GermanyDlBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of issue for B category of German DL card. - */ - this.dateOfIssueB10 = nativeResult.dateOfIssueB10 != null ? new Date(nativeResult.dateOfIssueB10) : null; - - /** - * The date of issue for B category of German DL card is not specified. - */ - this.dateOfIssueB10NotSpecified = nativeResult.dateOfIssueB10NotSpecified; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - } -} - -/** - * Recognizer which can scan back side of German DL cards. - */ -export class GermanyDlBackRecognizer extends Recognizer { - constructor() { - super('GermanyDlBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new GermanyDlBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/germanyDlFrontRecognizer.js b/BlinkID/recognizers/germanyDlFrontRecognizer.js deleted file mode 100644 index 6002821..0000000 --- a/BlinkID/recognizers/germanyDlFrontRecognizer.js +++ /dev/null @@ -1,208 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for GermanyDlFrontRecognizer. - */ -export class GermanyDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Germany DL owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of Germany DL. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of Germany DL. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Germany DL owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing authority of the Germany DL. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The last name of the Germany DL owner. - */ - this.lastName = nativeResult.lastName; - - /** - * The licence categories of the Germany DL. - */ - this.licenceCategories = nativeResult.licenceCategories; - - /** - * The licence number of the Germany DL. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The place of birth of Germany DL owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan front side of Germany national DL cards - */ -export class GermanyDlFrontRecognizer extends Recognizer { - constructor() { - super('GermanyDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Germany DL owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Germany DL should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Germany DL should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if first name of Germany DL owner should be extracted. - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority of Germany DL should be extracted. - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if last name of Germany DL owner should be extracted. - * - * - */ - this.extractLastName = true; - - /** - * Defines if licence categories of Germany DL should be extracted. - * - * - */ - this.extractLicenceCategories = true; - - /** - * Defines if place of birth of Germany DL owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new GermanyDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/germanyIdBackRecognizer.js b/BlinkID/recognizers/germanyIdBackRecognizer.js deleted file mode 100644 index b073967..0000000 --- a/BlinkID/recognizers/germanyIdBackRecognizer.js +++ /dev/null @@ -1,152 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for GermanyIdBackRecognizer. - */ -export class GermanyIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The city of German ID owner. - */ - this.addressCity = nativeResult.addressCity; - - /** - * The house number of German ID owner. - */ - this.addressHouseNumber = nativeResult.addressHouseNumber; - - /** - * The street of German ID owner. - */ - this.addressStreet = nativeResult.addressStreet; - - /** - * The zip code of German ID owner. - */ - this.addressZipCode = nativeResult.addressZipCode; - - /** - * The issuing authority of German ID. - */ - this.authority = nativeResult.authority; - - /** - * The colour of eyes of German ID owner. - */ - this.colourOfEyes = nativeResult.colourOfEyes; - - /** - * The date of issue of German ID. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * The full address of German ID owner. - */ - this.fullAddress = nativeResult.fullAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The height of German ID owner. - */ - this.height = nativeResult.height; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - } -} - -/** - * Recognizer which can scan back side of German ID. - */ -export class GermanyIdBackRecognizer extends Recognizer { - constructor() { - super('GermanyIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of German ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if issuing authority of German ID should be extracted. - * - * - */ - this.extractAuthority = true; - - /** - * Defines if colour of eyes of German ID owner should be extracted. - * - * - */ - this.extractColourOfEyes = true; - - /** - * Defines if date of issue of German ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if height of German ID owner should be extracted. - * - * - */ - this.extractHeight = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new GermanyIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/germanyIdFrontRecognizer.js b/BlinkID/recognizers/germanyIdFrontRecognizer.js deleted file mode 100644 index 313281a..0000000 --- a/BlinkID/recognizers/germanyIdFrontRecognizer.js +++ /dev/null @@ -1,196 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for GermanyIdFrontRecognizer. - */ -export class GermanyIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The CAN number of Germany ID. - */ - this.canNumber = nativeResult.canNumber; - - /** - * The date of birth of Germany ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of Germany ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The document number of Germany ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given names of Germany ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * The nationality of Germany ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The place of birth of Germany ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of Germany ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Germany national ID cards. - */ -export class GermanyIdFrontRecognizer extends Recognizer { - constructor() { - super('GermanyIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if CAN number of Germany ID should be extracted. - * - * - */ - this.extractCanNumber = true; - - /** - * Defines if date of expiry of Germany ID should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if document number of Germany ID should be extracted. - * - * - */ - this.extractDocumentNumber = true; - - /** - * Defines if given names of Germany ID owner should be extracted. - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if nationality of Germany ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if place of birth of Germany ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of Germany ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new GermanyIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/germanyIdOldRecognizer.js b/BlinkID/recognizers/germanyIdOldRecognizer.js deleted file mode 100644 index 6965b79..0000000 --- a/BlinkID/recognizers/germanyIdOldRecognizer.js +++ /dev/null @@ -1,124 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for GermanyIdOldRecognizer. - */ -export class GermanyIdOldRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The place of birth of old German ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan old German ID. - */ -export class GermanyIdOldRecognizer extends Recognizer { - constructor() { - super('GermanyIdOldRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if place of birth of old German ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new GermanyIdOldRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/germanyPassportRecognizer.js b/BlinkID/recognizers/germanyPassportRecognizer.js deleted file mode 100644 index a768cb9..0000000 --- a/BlinkID/recognizers/germanyPassportRecognizer.js +++ /dev/null @@ -1,184 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for GermanyPassportRecognizer. - */ -export class GermanyPassportRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The issuing authority of German passport. - */ - this.authority = nativeResult.authority; - - /** - * The date of issue of German passport. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given name of German passport owner. - */ - this.givenName = nativeResult.givenName; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The nationality of German passport owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The place of birth of German passport owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of German passport owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan German passport. - */ -export class GermanyPassportRecognizer extends Recognizer { - constructor() { - super('GermanyPassportRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if issuing authority of German passport should be extracted. - * - * - */ - this.extractAuthority = true; - - /** - * Defines if date of issue of German passport should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if given name of German passport owner should be extracted. - * - * - */ - this.extractGivenName = true; - - /** - * Defines if nationality of German passport owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if place of birth of German passport owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of German passport owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new GermanyPassportRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/hongKongIdFrontRecognizer.js b/BlinkID/recognizers/hongKongIdFrontRecognizer.js deleted file mode 100644 index 335e1f9..0000000 --- a/BlinkID/recognizers/hongKongIdFrontRecognizer.js +++ /dev/null @@ -1,166 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for HongKongIdFrontRecognizer. - */ -export class HongKongIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The commerical Code of the Hong Kong ID. - */ - this.commercialCode = nativeResult.commercialCode; - - /** - * The date of birth of the Hong Kong ID ownder. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The issue date of the Hong Kong ID owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * The document number of the Hong Kong card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of the Hong Kong ID owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The residential status of the Hong Kong ID. - */ - this.residentialStatus = nativeResult.residentialStatus; - - /** - * The sex of the Hong Kong ID owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Class for configuring Hong Kong ID Front Recognizer. - * - * Hong Kong ID Front recognizer is used for scanning front side of Hong Kong ID. - */ -export class HongKongIdFrontRecognizer extends Recognizer { - constructor() { - super('HongKongIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if commercial code should be extracted from Hong Kong ID - * - * - */ - this.extractCommercialCode = true; - - /** - * Defines if owner's date of birth should be extracted from Hong Kong ID - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if card's date of issue should be extracted from Hong Kong ID - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if owner's full name should be extracted from Hong Kong ID - * - * - */ - this.extractFullName = true; - - /** - * Defines if card's residential status should be extracted from Hong Kong ID - * - * - */ - this.extractResidentialStatus = true; - - /** - * Defines if owner's sex should be extracted from Hong Kong ID - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new HongKongIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/indonesiaIdFrontRecognizer.js b/BlinkID/recognizers/indonesiaIdFrontRecognizer.js deleted file mode 100644 index 1a12f97..0000000 --- a/BlinkID/recognizers/indonesiaIdFrontRecognizer.js +++ /dev/null @@ -1,300 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for IndonesiaIdFrontRecognizer. - */ -export class IndonesiaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the front side of the Indonesia Id owner. - */ - this.address = nativeResult.address; - - /** - * The blood Type of the front side of the Indonesia Id owner. - */ - this.bloodType = nativeResult.bloodType; - - /** - * The citizenship of the front side of the Indonesia Id owner. - */ - this.citizenship = nativeResult.citizenship; - - /** - * The city of the front side of the Indonesia Id owner. - */ - this.city = nativeResult.city; - - /** - * The date Of Birth of the front side of the Indonesia Id owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Expiry of the front side of the Indonesia Id owner. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date Of Expiry Permanent of the front side of the Indonesia Id owner. - */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - - /** - * The district of the front side of the Indonesia Id owner. - */ - this.district = nativeResult.district; - - /** - * The document Number of the front side of the Indonesia Id owner. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The kel Desa of the front side of the Indonesia Id owner. - */ - this.kelDesa = nativeResult.kelDesa; - - /** - * The marital Status of the front side of the Indonesia Id owner. - */ - this.maritalStatus = nativeResult.maritalStatus; - - /** - * The name of the front side of the Indonesia Id owner. - */ - this.name = nativeResult.name; - - /** - * The occupation of the front side of the Indonesia Id owner. - */ - this.occupation = nativeResult.occupation; - - /** - * The place Of Birth of the front side of the Indonesia Id owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The province of the front side of the Indonesia Id owner. - */ - this.province = nativeResult.province; - - /** - * The religion of the front side of the Indonesia Id owner. - */ - this.religion = nativeResult.religion; - - /** - * The rt of the front side of the Indonesia Id owner. - */ - this.rt = nativeResult.rt; - - /** - * The rw of the front side of the Indonesia Id owner. - */ - this.rw = nativeResult.rw; - - /** - * The sex of the front side of the Indonesia Id owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan front side of Indonesian national ID cards. - */ -export class IndonesiaIdFrontRecognizer extends Recognizer { - constructor() { - super('IndonesiaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Indonesian ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if blood type of Indonesian ID owner should be extracted. - * - * - */ - this.extractBloodType = true; - - /** - * Defines if citizenship of Indonesian ID owner should be extracted. - * - * - */ - this.extractCitizenship = true; - - /** - * Defines if city of Indonesian ID owner should be extracted. - * - * - */ - this.extractCity = true; - - /** - * Defines if date of expiry of Indonesian ID card should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if district of Indonesian ID owner should be extracted. - * - * - */ - this.extractDistrict = true; - - /** - * Defines if Kel/Desa of Indonesian ID owner should be extracted. - * - * - */ - this.extractKelDesa = true; - - /** - * Defines if marital status of Indonesian ID owner should be extracted. - * - * - */ - this.extractMaritalStatus = true; - - /** - * Defines if name of Indonesian ID owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if occupation of Indonesian ID owner should be extracted. - * - * - */ - this.extractOccupation = true; - - /** - * Defines if place of birth of Indonesian ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if religion of Indonesian ID owner should be extracted. - * - * - */ - this.extractReligion = true; - - /** - * Defines if RT number of Indonesian ID owner should be extracted. - * - * - */ - this.extractRt = true; - - /** - * Defines if RW number of Indonesian ID owner should be extracted. - * - * - */ - this.extractRw = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new IndonesiaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/irelandDlFrontRecognizer.js b/BlinkID/recognizers/irelandDlFrontRecognizer.js deleted file mode 100644 index b5509a9..0000000 --- a/BlinkID/recognizers/irelandDlFrontRecognizer.js +++ /dev/null @@ -1,232 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for IrelandDlFrontRecognizer. - */ -export class IrelandDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the front side of the Ireland Dl owner. - */ - this.address = nativeResult.address; - - /** - * The date Of Birth of the front side of the Ireland Dl owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Expiry of the front side of the Ireland Dl owner. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date Of Issue of the front side of the Ireland Dl owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * The driver Number of the front side of the Ireland Dl owner. - */ - this.driverNumber = nativeResult.driverNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first Name of the front side of the Ireland Dl owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issued By of the front side of the Ireland Dl owner. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * The licence Categories of the front side of the Ireland Dl owner. - */ - this.licenceCategories = nativeResult.licenceCategories; - - /** - * The licence Number of the front side of the Ireland Dl owner. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The place Of Birth of the front side of the Ireland Dl owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the front side of the Ireland Dl owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Ireland drivers license. - */ -export class IrelandDlFrontRecognizer extends Recognizer { - constructor() { - super('IrelandDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Ireland DL owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of birth of Ireland DL owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Ireland DL should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Ireland DL should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if first name of Ireland DL owner should be extracted. - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority of Ireland DL should be extracted. - * - * - */ - this.extractIssuedBy = true; - - /** - * Defines if licence categories of Ireland DL should be extracted. - * - * - */ - this.extractLicenceCategories = true; - - /** - * Defines if licence number of Ireland DL should be extracted. - * - * - */ - this.extractLicenceNumber = true; - - /** - * Defines if place of birth of Ireland DL owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of Ireland DL owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new IrelandDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/italyDlFrontRecognizer.js b/BlinkID/recognizers/italyDlFrontRecognizer.js deleted file mode 100644 index ad136ef..0000000 --- a/BlinkID/recognizers/italyDlFrontRecognizer.js +++ /dev/null @@ -1,220 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for ItalyDlFrontRecognizer. - */ -export class ItalyDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the front side of the Italy Dl owner. - */ - this.address = nativeResult.address; - - /** - * The date Of Birth of the front side of the Italy Dl owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Expiry of the front side of the Italy Dl owner. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date Of Issue of the front side of the Italy Dl owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given Name of the front side of the Italy Dl owner. - */ - this.givenName = nativeResult.givenName; - - /** - * The issuing Authority of the front side of the Italy Dl owner. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The licence Categories of the front side of the Italy Dl owner. - */ - this.licenceCategories = nativeResult.licenceCategories; - - /** - * The licence Number of the front side of the Italy Dl owner. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The place Of Birth of the front side of the Italy Dl owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the front side of the Italy Dl owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Italian driver licence. - */ -export class ItalyDlFrontRecognizer extends Recognizer { - constructor() { - super('ItalyDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Italian DL owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of birth of Italian DL owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Italian DL card should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Italian DL card should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if given name of Italian DL owner should be extracted. - * - * - */ - this.extractGivenName = true; - - /** - * Defines if issuing authority of Italian DL card should be extracted. - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if licence categories of Italian DL owner should be extracted. - * - * - */ - this.extractLicenceCategories = true; - - /** - * Defines if place of birth of Italian DL owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of Italian DL owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new ItalyDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/jordanCombinedRecognizer.js b/BlinkID/recognizers/jordanCombinedRecognizer.js deleted file mode 100644 index 78f3a1c..0000000 --- a/BlinkID/recognizers/jordanCombinedRecognizer.js +++ /dev/null @@ -1,196 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for JordanCombinedRecognizer. - */ -export class JordanCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Jordan ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Jordan ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The document number of the Jordan ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The issuing authority of the Jordan ID card. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * Determines if all check digits inside MRZ are correct - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The name of the Jordan ID owner. - */ - this.name = nativeResult.name; - - /** - * The national number of the Jordan ID card. - */ - this.nationalNumber = nativeResult.nationalNumber; - - /** - * The nationality of the Jordan ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Jordan ID owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan front and back side of Jordan national ID cards. - */ -export class JordanCombinedRecognizer extends Recognizer { - constructor() { - super('JordanCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Jordan ID owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if full name of the Jordan ID owner should be extracted. - * - * - */ - this.extractFullName = true; - - /** - * Defines if name of Jordan ID owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if sex of Jordan ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new JordanCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/jordanIdBackRecognizer.js b/BlinkID/recognizers/jordanIdBackRecognizer.js deleted file mode 100644 index b410498..0000000 --- a/BlinkID/recognizers/jordanIdBackRecognizer.js +++ /dev/null @@ -1,84 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for JordanIdBackRecognizer. - */ -export class JordanIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of the Jordan ID owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - } -} - -/** - * Recognizer which can scan back side of Jordan ID cards. - */ -export class JordanIdBackRecognizer extends Recognizer { - constructor() { - super('JordanIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if full name of the Jordan ID owner should be extracted. - * - * - */ - this.extractFullName = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new JordanIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/jordanIdFrontRecognizer.js b/BlinkID/recognizers/jordanIdFrontRecognizer.js deleted file mode 100644 index 8aae05e..0000000 --- a/BlinkID/recognizers/jordanIdFrontRecognizer.js +++ /dev/null @@ -1,128 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for JordanIdFrontRecognizer. - */ -export class JordanIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Jordan ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The name of the Jordan ID owner. - */ - this.name = nativeResult.name; - - /** - * The national number of the Jordan ID. - */ - this.nationalNumber = nativeResult.nationalNumber; - - /** - * The sex of the Jordan ID owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan front side of Jordan national ID cards. - */ -export class JordanIdFrontRecognizer extends Recognizer { - constructor() { - super('JordanIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Jordan ID owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if name of Jordan ID owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if sex of Jordan ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new JordanIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/kuwaitIdBackRecognizer.js b/BlinkID/recognizers/kuwaitIdBackRecognizer.js deleted file mode 100644 index 14bb2e7..0000000 --- a/BlinkID/recognizers/kuwaitIdBackRecognizer.js +++ /dev/null @@ -1,84 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for KuwaitIdBackRecognizer. - */ -export class KuwaitIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The serial number of Kuwait ID - */ - this.serialNo = nativeResult.serialNo; - - } -} - -/** - * Recognizer which can scan back side of Kuwait national ID cards. - */ -export class KuwaitIdBackRecognizer extends Recognizer { - constructor() { - super('KuwaitIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if serial number of Kuwait ID should be extracted - * - * - */ - this.extractSerialNo = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new KuwaitIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/kuwaitIdFrontRecognizer.js b/BlinkID/recognizers/kuwaitIdFrontRecognizer.js deleted file mode 100644 index 2969747..0000000 --- a/BlinkID/recognizers/kuwaitIdFrontRecognizer.js +++ /dev/null @@ -1,145 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for KuwaitIdFrontRecognizer. - */ -export class KuwaitIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The birth Date of the front side of the Kuroom wait Id owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The civil Id Number of the front side of the Kuwait Id owner. - */ - this.civilIdNumber = nativeResult.civilIdNumber; - - /** - * The expiry Date of the front side of the Kuwait Id owner. - */ - this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The name of the front side of the Kuwait Id owner. - */ - this.name = nativeResult.name; - - /** - * The nationality of the front side of the Kuwait Id owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The sex of the front side of the Kuwait Id owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan front side of Kuwait national ID cards. - */ -export class KuwaitIdFrontRecognizer extends Recognizer { - constructor() { - super('KuwaitIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Kuwait ID owner should be extracted. - * - * - */ - this.extractBirthDate = true; - - /** - * Defines if name of Kuwait ID owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if nationality of Kuwait ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if sex of Kuwait ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new KuwaitIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/malaysiaDlFrontRecognizer.js b/BlinkID/recognizers/malaysiaDlFrontRecognizer.js deleted file mode 100644 index 791344e..0000000 --- a/BlinkID/recognizers/malaysiaDlFrontRecognizer.js +++ /dev/null @@ -1,184 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MalaysiaDlFrontRecognizer. - */ -export class MalaysiaDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The city of the front side of the Malaysia Dl owner. - */ - this.city = nativeResult.city; - - /** - * The dl Class of the front side of the Malaysia Dl owner. - */ - this.dlClass = nativeResult.dlClass; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The full Address of the front side of the Malaysia Dl owner. - */ - this.fullAddress = nativeResult.fullAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The identity Number of the front side of the Malaysia Dl owner. - */ - this.identityNumber = nativeResult.identityNumber; - - /** - * The name of the front side of the Malaysia Dl owner. - */ - this.name = nativeResult.name; - - /** - * The nationality of the front side of the Malaysia Dl owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The owner State of the front side of the Malaysia Dl owner. - */ - this.ownerState = nativeResult.ownerState; - - /** - * The street of the front side of the Malaysia Dl owner. - */ - this.street = nativeResult.street; - - /** - * The valid From of the front side of the Malaysia Dl owner. - */ - this.validFrom = nativeResult.validFrom != null ? new Date(nativeResult.validFrom) : null; - - /** - * The valid Until of the front side of the Malaysia Dl owner. - */ - this.validUntil = nativeResult.validUntil != null ? new Date(nativeResult.validUntil) : null; - - /** - * The zipcode of the front side of the Malaysia Dl owner. - */ - this.zipcode = nativeResult.zipcode; - - } -} - -/** - * Recognizer which can scan front side of Malaysian DL cards. - */ -export class MalaysiaDlFrontRecognizer extends Recognizer { - constructor() { - super('MalaysiaDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Malaysian DL owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if vehicle classes of Malaysian DL should be extracted. - * - * - */ - this.extractClass = true; - - /** - * Defines if name of Malaysian DL owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if nationality of Malaysian DL owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if date of issue of Malaysian DL should be extracted. - * - * - */ - this.extractValidFrom = true; - - /** - * Defines if date of expiry of Malaysian DL should be extracted. - * - * - */ - this.extractValidUntil = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/malaysiaIkadFrontRecognizer.js b/BlinkID/recognizers/malaysiaIkadFrontRecognizer.js deleted file mode 100644 index 88d1b6c..0000000 --- a/BlinkID/recognizers/malaysiaIkadFrontRecognizer.js +++ /dev/null @@ -1,200 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MalaysiaIkadFrontRecognizer. - */ -export class MalaysiaIkadFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * Address of Malaysian iKad owner. - */ - this.address = nativeResult.address; - - /** - * The date of birth of Malaysian iKad owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * Date of expiry of Malaysian iKad card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Employer of Malaysian iKad owner. - */ - this.employer = nativeResult.employer; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * Faculty address in which Malaysian iKad owner currently studies. - */ - this.facultyAddress = nativeResult.facultyAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * Gender of Malaysian iKad owner. - */ - this.gender = nativeResult.gender; - - /** - * The name of Malaysian iKad owner. - */ - this.name = nativeResult.name; - - /** - * Nationality of Malaysian iKad owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The passport number of Malaysian iKad owners passport. - */ - this.passportNumber = nativeResult.passportNumber; - - /** - * Sector in which Malaysian iKad owner works. - */ - this.sector = nativeResult.sector; - - } -} - -/** - * Recognizer which can scan front side of Malaysia iKad card. - */ -export class MalaysiaIkadFrontRecognizer extends Recognizer { - constructor() { - super('MalaysiaIkadFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Malaysian iKad owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of expiry of Malaysian iKad card should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if employer of Malaysian iKad owner should be extracted. - * - * - */ - this.extractEmployer = true; - - /** - * Defines if address of faculty, in which Malaysian iKad owner currently studies, should be extracted. - * - * - */ - this.extractFacultyAddress = true; - - /** - * Defines if gender of Malaysian iKad owner should be extracted. - * - * - */ - this.extractGender = true; - - /** - * Defines if (full) name of Malaysian iKad owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if nationality of Malaysian iKad owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if passport number of Malaysian iKad owners passport should be extracted. - * - * - */ - this.extractPassportNumber = true; - - /** - * Defines if sector in which Malaysian iKad owner works should be extracted. - * - * - */ - this.extractSector = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaIkadFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/malaysiaMyKadBackRecognizer.js b/BlinkID/recognizers/malaysiaMyKadBackRecognizer.js deleted file mode 100644 index 6aa1222..0000000 --- a/BlinkID/recognizers/malaysiaMyKadBackRecognizer.js +++ /dev/null @@ -1,96 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MalaysiaMyKadBackRecognizer. - */ -export class MalaysiaMyKadBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The Date Of Birth of the MyKad owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The Extended NRIC of the MyKad owner. - */ - this.extendedNric = nativeResult.extendedNric; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The NRIC of the MyKad owner. - */ - this.nric = nativeResult.nric; - - /** - * The old NRIC of the MyKad owner. - */ - this.oldNric = nativeResult.oldNric; - - } -} - -/** - * Class for configuring Kad Back Recognizer. - * - * MyKadBack recognizer is used for scanning back side of MyKad. - */ -export class MalaysiaMyKadBackRecognizer extends Recognizer { - constructor() { - super('MalaysiaMyKadBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if old NRIC should be extracted from back side of the MyKad - * - * - */ - this.extractOldNric = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKadBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/malaysiaMyKadFrontRecognizer.js b/BlinkID/recognizers/malaysiaMyKadFrontRecognizer.js deleted file mode 100644 index 99380f6..0000000 --- a/BlinkID/recognizers/malaysiaMyKadFrontRecognizer.js +++ /dev/null @@ -1,158 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MalaysiaMyKadFrontRecognizer. - */ -export class MalaysiaMyKadFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The birth date of Malaysian MyKad owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The city of Malaysian MyKad owner. - */ - this.city = nativeResult.city; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The address of Malaysian MyKad owner. - */ - this.fullAddress = nativeResult.fullAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Malaysian MyKad owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The nric of Malaysian IDMyKad - */ - this.nric = nativeResult.nric; - - /** - * The state of Malaysian MyKad owner. - */ - this.ownerState = nativeResult.ownerState; - - /** - * The religion of Malaysian MyKad owner. - */ - this.religion = nativeResult.religion; - - /** - * The sex of Malaysian MyKad owner. - */ - this.sex = nativeResult.sex; - - /** - * The street of Malaysian MyKad owner. - */ - this.street = nativeResult.street; - - /** - * The zipcode of Malaysian MyKad owner. - */ - this.zipcode = nativeResult.zipcode; - - } -} - -/** - * Recognizer which can scan front side of Malaysian MyKad cards. - */ -export class MalaysiaMyKadFrontRecognizer extends Recognizer { - constructor() { - super('MalaysiaMyKadFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if full name and address of Malaysian MyKad owner should be extracted. - * - * - */ - this.extractFullNameAndAddress = true; - - /** - * Defines if religion of Malaysian MyKad owner should be extracted. - * - * - */ - this.extractReligion = true; - - /** - * Defines if sex of Malaysian MyKad owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKadFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/malaysiaMyKasFrontRecognizer.js b/BlinkID/recognizers/malaysiaMyKasFrontRecognizer.js deleted file mode 100644 index 08c711c..0000000 --- a/BlinkID/recognizers/malaysiaMyKasFrontRecognizer.js +++ /dev/null @@ -1,163 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MalaysiaMyKasFrontRecognizer. - */ -export class MalaysiaMyKasFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The birth date of Malaysian MyKAS owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The city of Malaysian MyKAS owner. - */ - this.city = nativeResult.city; - - /** - * The date of expiry of Malaysian MyKAS. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The address of Malaysian MyKAS owner. - */ - this.fullAddress = nativeResult.fullAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Malaysian MyKAS owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The nric of Malaysian MyKAS. - */ - this.nric = nativeResult.nric; - - /** - * The state of Malaysian MyKAS owner. - */ - this.ownerState = nativeResult.ownerState; - - /** - * The religion of Malaysian MyKAS owner. - */ - this.religion = nativeResult.religion; - - /** - * The sex of Malaysian MyKAS owner. - */ - this.sex = nativeResult.sex; - - /** - * The street of Malaysian MyKAS owner. - */ - this.street = nativeResult.street; - - /** - * The zipcode of Malaysian MyKAS owner. - */ - this.zipcode = nativeResult.zipcode; - - } -} - -/** - * Recognizer which can scan front side of Malaysian MyKAS cards. - */ -export class MalaysiaMyKasFrontRecognizer extends Recognizer { - constructor() { - super('MalaysiaMyKasFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if full name and address of Malaysian MyKAS owner should be extracted. - * - * - */ - this.extractFullNameAndAddress = true; - - /** - * Defines if religion of Malaysian MyKAS owner should be extracted. - * - * - */ - this.extractReligion = true; - - /** - * Defines if sex of Malaysian MyKAS owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyKasFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/malaysiaMyPrFrontRecognizer.js b/BlinkID/recognizers/malaysiaMyPrFrontRecognizer.js deleted file mode 100644 index b1dfe31..0000000 --- a/BlinkID/recognizers/malaysiaMyPrFrontRecognizer.js +++ /dev/null @@ -1,163 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MalaysiaMyPrFrontRecognizer. - */ -export class MalaysiaMyPrFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The birth date of Malaysian MyPR owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The city of Malaysian MyPR owner. - */ - this.city = nativeResult.city; - - /** - * The country code of Malaysian MyPR owner. - */ - this.countryCode = nativeResult.countryCode; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The address of Malaysian MyPR owner. - */ - this.fullAddress = nativeResult.fullAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Malaysian MyPR owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The nric of Malaysian MyPR. - */ - this.nric = nativeResult.nric; - - /** - * The state of Malaysian MyPR owner. - */ - this.ownerState = nativeResult.ownerState; - - /** - * The religion of Malaysian MyPR owner. - */ - this.religion = nativeResult.religion; - - /** - * The sex of Malaysian MyPR owner. - */ - this.sex = nativeResult.sex; - - /** - * The street of Malaysian MyPR owner. - */ - this.street = nativeResult.street; - - /** - * The zipcode of Malaysian MyPR owner. - */ - this.zipcode = nativeResult.zipcode; - - } -} - -/** - * Recognizer which can scan front side of Malaysian MyPR cards. - */ -export class MalaysiaMyPrFrontRecognizer extends Recognizer { - constructor() { - super('MalaysiaMyPrFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if full name and address of Malaysian MyPR owner should be extracted. - * - * - */ - this.extractFullNameAndAddress = true; - - /** - * Defines if religion of Malaysian MyPR owner should be extracted. - * - * - */ - this.extractReligion = true; - - /** - * Defines if sex of Malaysian MyPR owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyPrFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/malaysiaMyTenteraFrontRecognizer.js b/BlinkID/recognizers/malaysiaMyTenteraFrontRecognizer.js deleted file mode 100644 index 0def0dc..0000000 --- a/BlinkID/recognizers/malaysiaMyTenteraFrontRecognizer.js +++ /dev/null @@ -1,156 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MalaysiaMyTenteraFrontRecognizer. - */ -export class MalaysiaMyTenteraFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The army number of Malaysian MyTentera owner. - */ - this.armyNumber = nativeResult.armyNumber; - - /** - * The birth date of Malaysian MyTentera owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * The city of Malaysian MyTentera owner. - */ - this.city = nativeResult.city; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The address of Malaysian MyTentera owner. - */ - this.fullAddress = nativeResult.fullAddress; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Malaysian MyTentera owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The nric of Malaysian MyTentera. - */ - this.nric = nativeResult.nric; - - /** - * The state of Malaysian MyTentera owner. - */ - this.ownerState = nativeResult.ownerState; - - /** - * The religion of Malaysian MyTentera owner. - */ - this.religion = nativeResult.religion; - - /** - * The sex of Malaysian MyTentera owner. - */ - this.sex = nativeResult.sex; - - /** - * The street of Malaysian MyTentera owner. - */ - this.street = nativeResult.street; - - /** - * The zipcode of Malaysian MyTentera owner. - */ - this.zipcode = nativeResult.zipcode; - - } -} - -/** - * Recognizer which can scan front side of Malaysian MyTentera cards. - */ -export class MalaysiaMyTenteraFrontRecognizer extends Recognizer { - constructor() { - super('MalaysiaMyTenteraFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if full name and address of Malaysian MyTentera owner should be extracted. - * - * - */ - this.extractFullNameAndAddress = true; - - /** - * Defines if religion of Malaysian MyTentera owner should be extracted. - * - * - */ - this.extractReligion = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MalaysiaMyTenteraFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/mexicoVoterIdFrontRecognizer.js b/BlinkID/recognizers/mexicoVoterIdFrontRecognizer.js deleted file mode 100644 index 4f4e71b..0000000 --- a/BlinkID/recognizers/mexicoVoterIdFrontRecognizer.js +++ /dev/null @@ -1,158 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MexicoVoterIdFrontRecognizer. - */ -export class MexicoVoterIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Mexico Voter ID owner. - */ - this.address = nativeResult.address; - - /** - * The CURP of Mexico Voter ID owner. - */ - this.curp = nativeResult.curp; - - /** - * The date of birth of Mexico Voter ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The elector key of Mexico Voter ID owner. - */ - this.electorKey = nativeResult.electorKey; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The full name of Mexico Voter ID owner. - */ - this.fullName = nativeResult.fullName; - - /** - * The sex of Mexico Voter ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan front side of Mexican voter id. - */ -export class MexicoVoterIdFrontRecognizer extends Recognizer { - constructor() { - super('MexicoVoterIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Mexico Voter ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if CURP of Mexico Voter ID owner should be extracted. - * - * - */ - this.extractCurp = true; - - /** - * Defines if full name of Mexico Voter ID owner should be extracted. - * - * - */ - this.extractFullName = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new MexicoVoterIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/moroccoIdBackRecognizer.js b/BlinkID/recognizers/moroccoIdBackRecognizer.js deleted file mode 100644 index 3d61c70..0000000 --- a/BlinkID/recognizers/moroccoIdBackRecognizer.js +++ /dev/null @@ -1,146 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MoroccoIdBackRecognizer. - */ -export class MoroccoIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the Morocco ID owner. - */ - this.address = nativeResult.address; - - /** - * The civil status number of the Morocco ID owner. - */ - this.civilStatusNumber = nativeResult.civilStatusNumber; - - /** - * The date of expiry of the Morocco ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The document number of the Morocco ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * The father's name of the Morocco ID owner. - */ - this.fathersName = nativeResult.fathersName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The mother's name of the Morocco ID owner. - */ - this.mothersName = nativeResult.mothersName; - - /** - * The sex of the Morocco ID owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Class for configuring Morocco ID Back Recognizer. - * - * Morocco ID Back recognizer is used for scanning Back side of the Morocco ID. - */ -export class MoroccoIdBackRecognizer extends Recognizer { - constructor() { - super('MoroccoIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's address should be extracted from Back side of the Morocco ID - * - * - */ - this.extractAddress = true; - - /** - * Defines if owner's civil status number should be extracted from Back side of the Morocco ID - * - * - */ - this.extractCivilStatusNumber = true; - - /** - * Defines if date of expiry should be extracted from Back side of the Morocco ID - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if father's name should be extracted from Back side of the Morocco ID - * - * - */ - this.extractFathersName = true; - - /** - * Defines if mother's name should be extracted from Back side of the Morocco ID - * - * - */ - this.extractMothersName = true; - - /** - * Defines if owner's sex should be extracted from Back side of the Morocco ID - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new MoroccoIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/moroccoIdFrontRecognizer.js b/BlinkID/recognizers/moroccoIdFrontRecognizer.js deleted file mode 100644 index c19b75d..0000000 --- a/BlinkID/recognizers/moroccoIdFrontRecognizer.js +++ /dev/null @@ -1,186 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for MoroccoIdFrontRecognizer. - */ -export class MoroccoIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Morocco ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Morocco ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The document number of the Morocco ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The name of the Morocco ID owner. - */ - this.name = nativeResult.name; - - /** - * The place of birth of the Morocco ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The sex of the Morocco ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the Morocco ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Class for configuring Morocco ID Front Recognizer. - * - * Morocco ID Front recognizer is used for scanning front side of the Morocco ID. - */ -export class MoroccoIdFrontRecognizer extends Recognizer { - constructor() { - super('MoroccoIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's date of birth should be extracted from front side of the Morocco ID - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry should be extracted from front side of the Morocco ID - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if owner's name should be extracted from front side of the Morocco ID - * - * - */ - this.extractName = true; - - /** - * Defines if owner's place of birth should be extracted from front side of the Morocco ID - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if owner's sex should be extracted from front side of the Morocco ID - * - * - */ - this.extractSex = true; - - /** - * Defines if owner's surname should be extracted from front side of the Morocco ID - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new MoroccoIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/mrtdCombinedRecognizer.js b/BlinkID/recognizers/mrtdCombinedRecognizer.js index f29594b..4ae4320 100644 --- a/BlinkID/recognizers/mrtdCombinedRecognizer.js +++ b/BlinkID/recognizers/mrtdCombinedRecognizer.js @@ -4,10 +4,11 @@ import { Point, Quadrilateral, MrtdDocumentType, - MrzResult, - EudlCountry, + MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, + DataMatchResult, + } from '../types' /** @@ -18,46 +19,42 @@ export class MrtdCombinedRecognizerResult extends RecognizerResult { super(nativeResult.resultState); /** - * Digital signature of the recognition result. Available only if enabled with signResult property. + * Defines digital signature of recognition results. */ this.digitalSignature = nativeResult.digitalSignature; /** - * Version of the digital signature. Available only if enabled with signResult property. + * Defines digital signature version. */ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. + * Defines result of the data matching algorithm for scanned parts/sides of the document. */ this.documentDataMatch = nativeResult.documentDataMatch; /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * back side image of the document if enabled with returnFullDocumentImage property. + * Back side image of the document */ this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; /** - * front side image of the document if enabled with returnFullDocumentImage property. + * Front side image of the document */ this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; /** - * Returns the Data extracted from the machine readable zone. + * The data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. + * {true} if recognizer has finished scanning first side and is now scanning back side, */ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; @@ -65,95 +62,65 @@ export class MrtdCombinedRecognizerResult extends RecognizerResult { } /** - * MRTD Combined recognizer - * - * MRTD Combined recognizer is used for scanning both front and back side of generic IDs. + * Recognizer for combined reading of face from front side of documents and MRZ from back side of + * * Machine Readable Travel Document. */ export class MrtdCombinedRecognizer extends Recognizer { constructor() { super('MrtdCombinedRecognizer'); /** - * Whether special characters are allowed - * - * + * Whether special characters are allowed. */ this.allowSpecialCharacters = false; /** - * Whether returning of unparsed results is allowed - * - * + * Whether returning of unparsed results is allowed. */ this.allowUnparsedResults = false; /** - * Whether returning of unverified results is allowed - * Unverified result is result that is parsed, but check digits are incorrect. - * - * + * Whether returning of unverified results is allowed. */ this.allowUnverifiedResults = false; /** - * Type of document this recognizer will scan. - * - * + * Currently used detector type. */ this.detectorType = DocumentFaceDetectorType.TD1; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Defines how many times the same document should be detected before the detector - * returns this document as a result of the deteciton - * - * Higher number means more reliable detection, but slower processing - * - * + * Minimum number of stable detections required for detection to be successful. */ this.numStableDetectionsThreshold = 6; /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; /** - * Whether or not recognition result should be signed. - * - * + * Defines whether or not recognition result should be signed. */ this.signResult = false; diff --git a/BlinkID/recognizers/mrtdRecognizer.js b/BlinkID/recognizers/mrtdRecognizer.js index ce4ce04..074e1d1 100644 --- a/BlinkID/recognizers/mrtdRecognizer.js +++ b/BlinkID/recognizers/mrtdRecognizer.js @@ -4,10 +4,11 @@ import { Point, Quadrilateral, MrtdDocumentType, - MrzResult, - EudlCountry, + MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, + DataMatchResult, + } from '../types' /** @@ -18,12 +19,12 @@ export class MrtdRecognizerResult extends RecognizerResult { super(nativeResult.resultState); /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; /** - * Returns the Data extracted from the machine readable zone. + * The Data extracted from the machine readable zone. */ this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; @@ -31,61 +32,44 @@ export class MrtdRecognizerResult extends RecognizerResult { } /** - * Recognizer that can recognizer Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) + * Recognizer that can recognize Machine Readable Zone (MRZ) of the Machine Readable Travel Document (MRTD) */ export class MrtdRecognizer extends Recognizer { constructor() { super('MrtdRecognizer'); /** - * Whether special characters are allowed - * - * + * Whether special characters are allowed. */ this.allowSpecialCharacters = false; /** - * Whether returning of unparsed results is allowed - * - * + * Whether returning of unparsed results is allowed. */ this.allowUnparsedResults = false; /** - * Whether returning of unverified results is allowed - * Unverified result is result that is parsed, but check digits are incorrect. - * - * + * Whether returning of unverified results is allowed. */ this.allowUnverifiedResults = false; /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; diff --git a/BlinkID/recognizers/newZealandDlFrontRecognizer.js b/BlinkID/recognizers/newZealandDlFrontRecognizer.js deleted file mode 100644 index 8676611..0000000 --- a/BlinkID/recognizers/newZealandDlFrontRecognizer.js +++ /dev/null @@ -1,203 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for NewZealandDlFrontRecognizer. - */ -export class NewZealandDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The last name of the New Zealand Driver License owner. - */ - this.address = nativeResult.address; - - /** - * The card version of the New Zealand Driver License. - */ - this.cardVersion = nativeResult.cardVersion; - - /** - * The last name of the New Zealand Driver License owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The last name of the New Zealand Driver License owner. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The last name of the New Zealand Driver License owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * The last name of the New Zealand Driver License owner. - */ - this.donorIndicator = nativeResult.donorIndicator; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the New Zealand Driver License owner. - */ - this.firstNames = nativeResult.firstNames; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The license number of the New Zealand Driver License. - */ - this.licenseNumber = nativeResult.licenseNumber; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The last name of the New Zealand Driver License owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Class for configuring New Zealand DL Front Recognizer. - * - * New Zealand DL Front recognizer is used for scanning front side of New Zealand DL. - */ -export class NewZealandDlFrontRecognizer extends Recognizer { - constructor() { - super('NewZealandDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's address should be extracted from New Zealand Driver License - * - * - */ - this.extractAddress = true; - - /** - * Defines if owner's date of birth should be extracted from New Zealand Driver License - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if card's expiry date should be extracted from New Zealand Driver License - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if card's issue date should be extracted from New Zealand Driver License - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if owner's donor indicator should be extracted from New Zealand Driver License - * - * - */ - this.extractDonorIndicator = true; - - /** - * Defines if owner's first name should be extracted from New Zealand Driver License - * - * - */ - this.extractFirstNames = true; - - /** - * Defines if owner's last name should be extracted from New Zealand Driver License - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new NewZealandDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/nigeriaVoterIdBackRecognizer.js b/BlinkID/recognizers/nigeriaVoterIdBackRecognizer.js deleted file mode 100644 index 707840f..0000000 --- a/BlinkID/recognizers/nigeriaVoterIdBackRecognizer.js +++ /dev/null @@ -1,97 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for NigeriaVoterIdBackRecognizer. - */ -export class NigeriaVoterIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Nigeria Voter ID owner. - */ - this.address = nativeResult.address; - - /** - * The date of birth of Nigeria Voter ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The first name of Nigeria Voter ID owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The raw barcode data of Nigeria Voter ID card. - */ - this.rawBarcodeData = nativeResult.rawBarcodeData; - - /** - * The sex of Nigeria Voter ID owner. - */ - this.sex = nativeResult.sex; - - /** - * The surname of Nigeria Voter ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan back side of Nigeria voter ID cards. - */ -export class NigeriaVoterIdBackRecognizer extends Recognizer { - constructor() { - super('NigeriaVoterIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new NigeriaVoterIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/passportRecognizer.js b/BlinkID/recognizers/passportRecognizer.js index fe45b20..818ee64 100644 --- a/BlinkID/recognizers/passportRecognizer.js +++ b/BlinkID/recognizers/passportRecognizer.js @@ -4,10 +4,11 @@ import { Point, Quadrilateral, MrtdDocumentType, - MrzResult, - EudlCountry, + MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, + DataMatchResult, + } from '../types' /** @@ -18,12 +19,12 @@ export class PassportRecognizerResult extends RecognizerResult { super(nativeResult.resultState); /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -43,47 +44,32 @@ export class PassportRecognizer extends Recognizer { super('PassportRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; diff --git a/BlinkID/recognizers/pdf417Recognizer.js b/BlinkID/recognizers/pdf417Recognizer.js deleted file mode 100644 index 53ead8d..0000000 --- a/BlinkID/recognizers/pdf417Recognizer.js +++ /dev/null @@ -1,84 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for Pdf417Recognizer. - */ -export class Pdf417RecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * Type of the barcode scanned - * - * @return Type of the barcode - */ - this.barcodeType = nativeResult.barcodeType; - - /** - * Byte array with result of the scan - */ - this.rawData = nativeResult.rawData; - - /** - * Retrieves string content of scanned data - */ - this.stringData = nativeResult.stringData; - - /** - * Flag indicating uncertain scanning data - * E.g obtained from damaged barcode. - */ - this.uncertain = nativeResult.uncertain; - - } -} - -/** - * A recognizer that can scan PDF417 2D barcodes. - */ -export class Pdf417Recognizer extends Recognizer { - constructor() { - super('Pdf417Recognizer'); - - /** - * Set this to true to scan barcodes which don't have quiet zone (white area) around it - * - * Use only if necessary because it slows down the recognition process - * - * - */ - this.nullQuietZoneAllowed = false; - - /** - * Set this to true to allow scanning barcodes with inverted intensities - * (i.e. white barcodes on black background) - * - * falseTE: this options doubles the frame processing time - * - * - */ - this.scanInverse = false; - - /** - * Set this to true to scan even barcode not compliant with standards - * For example, malformed PDF417 barcodes which were incorrectly encoded - * - * Use only if necessary because it slows down the recognition process - * - * - */ - this.scanUncertain = true; - - this.createResultFromNative = function (nativeResult) { return new Pdf417RecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/polandCombinedRecognizer.js b/BlinkID/recognizers/polandCombinedRecognizer.js deleted file mode 100644 index 4ddc7d7..0000000 --- a/BlinkID/recognizers/polandCombinedRecognizer.js +++ /dev/null @@ -1,225 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for PolandCombinedRecognizer. - */ -export class PolandCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Poland ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Poland ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The document number of the Poland ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The family name of the Poland ID owner. - */ - this.familyName = nativeResult.familyName; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The given names of the Poland ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * The issuing authority of the Poland ID card. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * Determines if all check digits inside MRZ are correct - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The nationality of the Poland ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The parents given names of the Poland ID owner. - */ - this.parentsGivenNames = nativeResult.parentsGivenNames; - - /** - * The personal number of the Poland ID owner. - */ - this.personalNumber = nativeResult.personalNumber; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Poland ID owner. - */ - this.sex = nativeResult.sex; - - /** - * The surname of the Poland ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front and back side of Poland national ID cards. - */ -export class PolandCombinedRecognizer extends Recognizer { - constructor() { - super('PolandCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Poland ID owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if family name of Poland ID owner should be extracted. - * - * - */ - this.extractFamilyName = false; - - /** - * Defines if given names of Poland ID owner should be extracted. - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if parents given names of Poland ID owner should be extracted. - * - * - */ - this.extractParentsGivenNames = false; - - /** - * Defines if sex of Poland ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Defines if surname of Poland ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new PolandCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/polandIdBackRecognizer.js b/BlinkID/recognizers/polandIdBackRecognizer.js deleted file mode 100644 index b81c347..0000000 --- a/BlinkID/recognizers/polandIdBackRecognizer.js +++ /dev/null @@ -1,72 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for PolandIdBackRecognizer. - */ -export class PolandIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - } -} - -/** - * Recognizer which can scan back side of Poland ID cards. - */ -export class PolandIdBackRecognizer extends Recognizer { - constructor() { - super('PolandIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new PolandIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/polandIdFrontRecognizer.js b/BlinkID/recognizers/polandIdFrontRecognizer.js deleted file mode 100644 index a4dbacf..0000000 --- a/BlinkID/recognizers/polandIdFrontRecognizer.js +++ /dev/null @@ -1,159 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for PolandIdFrontRecognizer. - */ -export class PolandIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Poland ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The family name of the Poland ID owner. - */ - this.familyName = nativeResult.familyName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given names of the Poland ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * The parents given names of the Poland ID owner. - */ - this.parentsGivenNames = nativeResult.parentsGivenNames; - - /** - * The sex of the Poland ID owner. - */ - this.sex = nativeResult.sex; - - /** - * The surname of the Poland ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Poland ID cards. - */ -export class PolandIdFrontRecognizer extends Recognizer { - constructor() { - super('PolandIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Poland ID owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if family name of Poland ID owner should be extracted. - * - * - */ - this.extractFamilyName = false; - - /** - * Defines if given names of Poland ID owner should be extracted. - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if parents given names of Poland ID owner should be extracted. - * - * - */ - this.extractParentsGivenNames = false; - - /** - * Defines if sex of Poland ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Defines if surname of Poland ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new PolandIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/romaniaIdFrontRecognizer.js b/BlinkID/recognizers/romaniaIdFrontRecognizer.js deleted file mode 100644 index 5f815b0..0000000 --- a/BlinkID/recognizers/romaniaIdFrontRecognizer.js +++ /dev/null @@ -1,203 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for RomaniaIdFrontRecognizer. - */ -export class RomaniaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Romania ID owner. - */ - this.address = nativeResult.address; - - /** - * The CNP number of Romania ID owner. - */ - this.cnpNumber = nativeResult.cnpNumber; - - /** - * The date of expiry of Romania ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of Romania ID. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of Romania ID owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing authority of Romania ID. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The nationality of Romania ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The parent name of Romania ID owner. - */ - this.parentName = nativeResult.parentName; - - /** - * The place of birth of Romania ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The sex of Romania ID owner. - */ - this.sex = nativeResult.sex; - - /** - * The surname of Romania ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Romania ID. - */ -export class RomaniaIdFrontRecognizer extends Recognizer { - constructor() { - super('RomaniaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Romania ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of expiry of Romania ID should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Romania ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if first name of Romania ID owner should be extracted. - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority of Romania ID should be extracted. - * - * - */ - this.extractIssuedBy = true; - - /** - * Defines if place of birth of Romania ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if sex of Romania ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Defines if surname of Romania ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new RomaniaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/simNumberRecognizer.js b/BlinkID/recognizers/simNumberRecognizer.js deleted file mode 100644 index f645b35..0000000 --- a/BlinkID/recognizers/simNumberRecognizer.js +++ /dev/null @@ -1,37 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SimNumberRecognizer. - */ -export class SimNumberRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * Returns the recognized SIM number from barcode or empty string if recognition failed. - */ - this.simNumber = nativeResult.simNumber; - - } -} - -/** - * Recognizer that can perform recognition of barcodes on SIM packaging. - */ -export class SimNumberRecognizer extends Recognizer { - constructor() { - super('SimNumberRecognizer'); - - this.createResultFromNative = function (nativeResult) { return new SimNumberRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/singaporeChangiEmployeeIdRecognizer.js b/BlinkID/recognizers/singaporeChangiEmployeeIdRecognizer.js deleted file mode 100644 index 9a0ce5d..0000000 --- a/BlinkID/recognizers/singaporeChangiEmployeeIdRecognizer.js +++ /dev/null @@ -1,130 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SingaporeChangiEmployeeIdRecognizer. - */ -export class SingaporeChangiEmployeeIdRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * TThe company name of the Singapore Changi employee ID owner. - */ - this.companyName = nativeResult.companyName; - - /** - * The date of expiry of Singapore Changi employee ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The document number of the Singapore Changi employee ID. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The name of the Singapore Changi employee ID owner. - */ - this.name = nativeResult.name; - - } -} - -/** - * Class for configuring Singapore Changi Employee Id Recognizer. - * - * Singapore Changi Employee Id recognizer is used for scanning front side of the Singapore Driver's license.. - */ -export class SingaporeChangiEmployeeIdRecognizer extends Recognizer { - constructor() { - super('SingaporeChangiEmployeeIdRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if company name should be extracted from the Singapore Changi Employee Id - * - * - */ - this.extractCompanyName = true; - - /** - * Defines if birth of expiry should be extracted from the Singapore Changi Employee Id - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if owner's name should be extracted from the Singapore Changi Employee Id - * - * - */ - this.extractName = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SingaporeChangiEmployeeIdRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/singaporeCombinedRecognizer.js b/BlinkID/recognizers/singaporeCombinedRecognizer.js deleted file mode 100644 index 1a44f74..0000000 --- a/BlinkID/recognizers/singaporeCombinedRecognizer.js +++ /dev/null @@ -1,238 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SingaporeCombinedRecognizer. - */ -export class SingaporeCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the back side of the Singapore Id owner. - */ - this.address = nativeResult.address; - - /** - * The address Change Date of the back side of the Singapore Id owner. - */ - this.addressChangeDate = nativeResult.addressChangeDate != null ? new Date(nativeResult.addressChangeDate) : null; - - /** - * The blood Type of the back side of the Singapore Id owner. - */ - this.bloodGroup = nativeResult.bloodGroup; - - /** - * The country/place of birth of the Singaporean ID card owner. - */ - this.countryOfBirth = nativeResult.countryOfBirth; - - /** - * The date of birth of the Singaporean ID card owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date Of Issue of the back side of the Singapore Id owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The identity card number of the Singaporean ID card. - */ - this.identityCardNumber = nativeResult.identityCardNumber; - - /** - * The name of the Singaporean ID card owner. - */ - this.name = nativeResult.name; - - /** - * The race of the Singaporean ID card owner. - */ - this.race = nativeResult.race; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Singaporean ID card owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Singapore ID Combined Recognizer. - * - * Singapore ID Combined recognizer is used for scanning both front and back side of Singapore ID. - */ -export class SingaporeCombinedRecognizer extends Recognizer { - constructor() { - super('SingaporeCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's address should be extracted from back side of the Singapore Id - * - * - */ - this.extractAddress = true; - - /** - * Defines if owner's address change date should be extracted from back side of the Singapore Id - * - * - */ - this.extractAddressChangeDate = false; - - /** - * Defines if owner's blood type should be extracted from back side of the Singapore Id - * - * - */ - this.extractBloodGroup = true; - - /** - * Defines if country/place of birth of Singaporean ID card owner should be extracted - * - * - */ - this.extractCountryOfBirth = true; - - /** - * Defines if date of birth of Singaporean ID card owner should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if owner's date of issue should be extracted from back side of the Singapore Id - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if name of Singaporean ID card owner should be extracted - * - * - */ - this.extractName = true; - - /** - * Defines if race of Singaporean ID card owner should be extracted - * - * - */ - this.extractRace = true; - - /** - * Defines if sex of Singaporean ID card owner should be extracted - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - this.createResultFromNative = function (nativeResult) { return new SingaporeCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/singaporeDlFrontRecognizer.js b/BlinkID/recognizers/singaporeDlFrontRecognizer.js deleted file mode 100644 index 855c5cb..0000000 --- a/BlinkID/recognizers/singaporeDlFrontRecognizer.js +++ /dev/null @@ -1,142 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SingaporeDlFrontRecognizer. - */ -export class SingaporeDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The birth Date of the Singapore DL owner. - */ - this.birthDate = nativeResult.birthDate != null ? new Date(nativeResult.birthDate) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issue date of the Singapore DL. - */ - this.issueDate = nativeResult.issueDate != null ? new Date(nativeResult.issueDate) : null; - - /** - * The licence Number of the Singapore DL. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The name of the Singapore DL owner. - */ - this.name = nativeResult.name; - - /** - * The valid till of the Singapore DL. - */ - this.validTill = nativeResult.validTill != null ? new Date(nativeResult.validTill) : null; - - } -} - -/** - * Class for configuring Singapore Dl Front Recognizer. - * - * Singapore Dl Front recognizer is used for scanning front side of the Singapore Driver's license.. - */ -export class SingaporeDlFrontRecognizer extends Recognizer { - constructor() { - super('SingaporeDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's birth date should be extracted from front side of the Singapore DL - * - * - */ - this.extractBirthDate = true; - - /** - * Defines if the issue date should be extracted from front side of the Singapore DL - * - * - */ - this.extractIssueDate = true; - - /** - * Defines if owner's name should be extracted from front side of the Singapore DL - * - * - */ - this.extractName = true; - - /** - * Defines if valid till should be extracted from front side of the Singapore DL - * - * - */ - this.extractValidTill = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SingaporeDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/singaporeIdBackRecognizer.js b/BlinkID/recognizers/singaporeIdBackRecognizer.js deleted file mode 100644 index 808f1c8..0000000 --- a/BlinkID/recognizers/singaporeIdBackRecognizer.js +++ /dev/null @@ -1,122 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SingaporeIdBackRecognizer. - */ -export class SingaporeIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the back side of the Singapore Id owner. - */ - this.address = nativeResult.address; - - /** - * The address Change Date of the back side of the Singapore Id owner. - */ - this.addressChangeDate = nativeResult.addressChangeDate != null ? new Date(nativeResult.addressChangeDate) : null; - - /** - * The blood Type of the back side of the Singapore Id owner. - */ - this.bloodGroup = nativeResult.bloodGroup; - - /** - * The card Number of the back side of the Singapore Id owner. - */ - this.cardNumber = nativeResult.cardNumber; - - /** - * The date Of Issue of the back side of the Singapore Id owner. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - } -} - -/** - * Class for configuring Singapore Id Back Recognizer. - * - * Singapore Id Back recognizer is used for scanning back side of the Singapore Id. - */ -export class SingaporeIdBackRecognizer extends Recognizer { - constructor() { - super('SingaporeIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's address should be extracted from back side of the Singapore Id - * - * - */ - this.extractAddress = true; - - /** - * Defines if owner's address change date should be extracted from back side of the Singapore Id - * - * - */ - this.extractAddressChangeDate = false; - - /** - * Defines if owner's blood type should be extracted from back side of the Singapore Id - * - * - */ - this.extractBloodGroup = true; - - /** - * Defines if owner's date of issue should be extracted from back side of the Singapore Id - * - * - */ - this.extractDateOfIssue = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SingaporeIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/singaporeIdFrontRecognizer.js b/BlinkID/recognizers/singaporeIdFrontRecognizer.js deleted file mode 100644 index 94de843..0000000 --- a/BlinkID/recognizers/singaporeIdFrontRecognizer.js +++ /dev/null @@ -1,154 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SingaporeIdFrontRecognizer. - */ -export class SingaporeIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The country/place of birth of the Singaporean ID card owner. - */ - this.countryOfBirth = nativeResult.countryOfBirth; - - /** - * The date of birth of the Singaporean ID card owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The identity card number of the Singaporean ID card. - */ - this.identityCardNumber = nativeResult.identityCardNumber; - - /** - * The name of the Singaporean ID card owner. - */ - this.name = nativeResult.name; - - /** - * The race of the Singaporean ID card owner. - */ - this.race = nativeResult.race; - - /** - * The sex of the Singaporean ID card owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Class for configuring Singapore ID Front Recognizer. - * - * Singapore ID Front recognizer is used for scanning front side of Singapore ID. - */ -export class SingaporeIdFrontRecognizer extends Recognizer { - constructor() { - super('SingaporeIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if country/place of birth of Singaporean ID card owner should be extracted - * - * - */ - this.extractCountryOfBirth = true; - - /** - * Defines if date of birth of Singaporean ID card owner should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if name of Singaporean ID card owner should be extracted - * - * - */ - this.extractName = true; - - /** - * Defines if race of Singaporean ID card owner should be extracted - * - * - */ - this.extractRace = true; - - /** - * Defines if sex of Singaporean ID card owner should be extracted - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SingaporeIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/slovakiaCombinedRecognizer.js b/BlinkID/recognizers/slovakiaCombinedRecognizer.js deleted file mode 100644 index a785145..0000000 --- a/BlinkID/recognizers/slovakiaCombinedRecognizer.js +++ /dev/null @@ -1,309 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SlovakiaCombinedRecognizer. - */ -export class SlovakiaCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the Slovak ID owner. - */ - this.address = nativeResult.address; - - /** - * The date of birth of the Slovak ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Slovak ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of the Slovak ID card. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The document number of the Slovak ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Slovak ID owner. - */ - this.firstName = nativeResult.firstName; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The issuing authority of the Slovak ID card. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * The last name of the Slovak ID owner. - */ - this.lastName = nativeResult.lastName; - - /** - * Determines if all check digits inside MRZ are correct - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The nationality of the Slovak ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The personal number of the Slovak ID owner. - */ - this.personalNumber = nativeResult.personalNumber; - - /** - * The place of birth of the Slovak ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Slovak ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The special remarks of the Slovak ID owner. - */ - this.specialRemarks = nativeResult.specialRemarks; - - /** - * The surname at birth of the Slovak ID owner. - */ - this.surnameAtBirth = nativeResult.surnameAtBirth; - - } -} - -/** - * Recognizer which can scan front and back side of Slovakia national ID cards. - */ -export class SlovakiaCombinedRecognizer extends Recognizer { - constructor() { - super('SlovakiaCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Slovak ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if date of birth of Slovak ID owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Slovak ID should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Slovak ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if document number of Slovak ID should be extracted. - * - * - */ - this.extractDocumentNumber = true; - - /** - * Defines if first name of Slovak ID owner should be extracted. - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority of Slovak ID should be extracted. - * - * - */ - this.extractIssuedBy = true; - - /** - * Defines if last name of Slovak ID owner should be extracted. - * - * - */ - this.extractLastName = true; - - /** - * Defines if nationality of Slovak ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if place of birth of Slovak ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if sex of Slovak ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Defines if special remarks of Slovak ID owner should be extracted. - * - * - */ - this.extractSpecialRemarks = true; - - /** - * Defines if surname at birth of Slovak ID owner should be extracted. - * - * - */ - this.extractSurnameAtBirth = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SlovakiaCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/slovakiaIdBackRecognizer.js b/BlinkID/recognizers/slovakiaIdBackRecognizer.js deleted file mode 100644 index 268d809..0000000 --- a/BlinkID/recognizers/slovakiaIdBackRecognizer.js +++ /dev/null @@ -1,120 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SlovakiaIdBackRecognizer. - */ -export class SlovakiaIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Slovak ID owner. - */ - this.address = nativeResult.address; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The place of birth of Slovak ID owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * The special remarks of Slovak ID owner. - */ - this.specialRemarks = nativeResult.specialRemarks; - - /** - * The surname at birth of Slovak ID owner. - */ - this.surnameAtBirth = nativeResult.surnameAtBirth; - - } -} - -/** - * Recognizer which can scan back side of Slovak ID cards. - */ -export class SlovakiaIdBackRecognizer extends Recognizer { - constructor() { - super('SlovakiaIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Slovak ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if place of birth of Slovak ID owner should be extracted. - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if special remarks of Slovak ID owner should be extracted. - * - * - */ - this.extractSpecialRemarks = true; - - /** - * Defines if surname at birth of Slovak ID owner should be extracted. - * - * - */ - this.extractSurnameAtBirth = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SlovakiaIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/slovakiaIdFrontRecognizer.js b/BlinkID/recognizers/slovakiaIdFrontRecognizer.js deleted file mode 100644 index 0e3c0d6..0000000 --- a/BlinkID/recognizers/slovakiaIdFrontRecognizer.js +++ /dev/null @@ -1,220 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SlovakiaIdFrontRecognizer. - */ -export class SlovakiaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Slovak ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Slovak ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of the Slovak ID card. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * The document number of the Slovak ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Slovak ID owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing authority of the Slovak ID card. - */ - this.issuedBy = nativeResult.issuedBy; - - /** - * The last name of the Slovak ID owner. - */ - this.lastName = nativeResult.lastName; - - /** - * The nationality of the Slovak ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The personal number of the Slovak ID owner. - */ - this.personalNumber = nativeResult.personalNumber; - - /** - * The sex of the Slovak ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - } -} - -/** - * Recognizer which can scan front side of Slovak national ID cards. - */ -export class SlovakiaIdFrontRecognizer extends Recognizer { - constructor() { - super('SlovakiaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Slovak ID owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Slovak ID should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Slovak ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if document number of Slovak ID should be extracted. - * - * - */ - this.extractDocumentNumber = true; - - /** - * Defines if first name of Slovak ID owner should be extracted. - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority of Slovak ID should be extracted. - * - * - */ - this.extractIssuedBy = true; - - /** - * Defines if last name of Slovak ID owner should be extracted. - * - * - */ - this.extractLastName = true; - - /** - * Defines if nationality of Slovak ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if sex of Slovak ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SlovakiaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/sloveniaCombinedRecognizer.js b/BlinkID/recognizers/sloveniaCombinedRecognizer.js deleted file mode 100644 index 8d78960..0000000 --- a/BlinkID/recognizers/sloveniaCombinedRecognizer.js +++ /dev/null @@ -1,264 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SloveniaCombinedRecognizer. - */ -export class SloveniaCombinedRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of the Slovenia ID owner. - */ - this.address = nativeResult.address; - - /** - * The administrative unit of the Slovenia ID card. - */ - this.administrativeUnit = nativeResult.administrativeUnit; - - /** - * The date of birth of the Slovenia ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of the Slovenia ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Determines if date of expiry of Slovenian ID card is permanent. - */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - - /** - * The date of issue of the Slovenia ID card. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * Digital signature of the recognition result. Available only if enabled with signResult property. - */ - this.digitalSignature = nativeResult.digitalSignature; - - /** - * Version of the digital signature. Available only if enabled with signResult property. - */ - this.digitalSignatureVersion = nativeResult.digitalSignatureVersion; - - /** - * Returns true if data from scanned parts/sides of the document match, - * false otherwise. For example if date of expiry is scanned from the front and back side - * of the document and values do not match, this method will return false. Result will - * be true only if scanned values for all fields that are compared are the same. - */ - this.documentDataMatch = nativeResult.documentDataMatch; - - /** - * The document number of the Slovenia ID card. - */ - this.documentNumber = nativeResult.documentNumber; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * back side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentBackImage = nativeResult.fullDocumentBackImage; - - /** - * front side image of the document if enabled with returnFullDocumentImage property. - */ - this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage; - - /** - * The given names of the Slovenia ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * Determines if all check digits inside MRZ are correct - */ - this.mrzVerified = nativeResult.mrzVerified; - - /** - * The nationality of the Slovenia ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The pin of the Slovenia ID owner. - */ - this.pin = nativeResult.pin; - - /** - * Returns true if recognizer has finished scanning first side and is now scanning back side, - * false if it's still scanning first side. - */ - this.scanningFirstSideDone = nativeResult.scanningFirstSideDone; - - /** - * The sex of the Slovenia ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the Slovenia ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front and back side of Slovenia national ID cards. - */ -export class SloveniaCombinedRecognizer extends Recognizer { - constructor() { - super('SloveniaCombinedRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Slovenian ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if issuing administrative unit of Slovenian ID should be extracted. - * - * - */ - this.extractAdministrativeUnit = true; - - /** - * Defines if date of expiry of Slovenian ID card should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Slovenian ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if given names of Slovenian ID owner should be extracted. - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if nationality of Slovenian ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if sex of Slovenian ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Defines if surname of Slovenian ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Whether or not recognition result should be signed. - * - * - */ - this.signResult = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SloveniaCombinedRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/sloveniaIdBackRecognizer.js b/BlinkID/recognizers/sloveniaIdBackRecognizer.js deleted file mode 100644 index 21f4500..0000000 --- a/BlinkID/recognizers/sloveniaIdBackRecognizer.js +++ /dev/null @@ -1,108 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SloveniaIdBackRecognizer. - */ -export class SloveniaIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The address of Slovenian ID owner. - */ - this.address = nativeResult.address; - - /** - * The issuing administrative unit of Slovenian ID. - */ - this.administrativeUnit = nativeResult.administrativeUnit; - - /** - * The date of issue of Slovenian ID. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - } -} - -/** - * Recognizer which can scan back side of Slovenia ID. - */ -export class SloveniaIdBackRecognizer extends Recognizer { - constructor() { - super('SloveniaIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if address of Slovenian ID owner should be extracted. - * - * - */ - this.extractAddress = true; - - /** - * Defines if issuing administrative unit of Slovenian ID should be extracted. - * - * - */ - this.extractAdministrativeUnit = true; - - /** - * Defines if date of issue of Slovenian ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SloveniaIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/sloveniaIdFrontRecognizer.js b/BlinkID/recognizers/sloveniaIdFrontRecognizer.js deleted file mode 100644 index b036fb8..0000000 --- a/BlinkID/recognizers/sloveniaIdFrontRecognizer.js +++ /dev/null @@ -1,177 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SloveniaIdFrontRecognizer. - */ -export class SloveniaIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Slovenian ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of Slovenian ID card. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * Determines if date of expiry of Slovenian ID card is permanent. - */ - this.dateOfExpiryPermanent = nativeResult.dateOfExpiryPermanent; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given names of Slovenian ID owner. - */ - this.givenNames = nativeResult.givenNames; - - /** - * The nationality of Slovenian ID owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The sex of Slovenian ID owner. - */ - this.sex = nativeResult.sex; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of Slovenian ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Slovenia ID. - */ -export class SloveniaIdFrontRecognizer extends Recognizer { - constructor() { - super('SloveniaIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of expiry of Slovenian ID card should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if given names of Slovenian ID owner should be extracted. - * - * - */ - this.extractGivenNames = true; - - /** - * Defines if nationality of Slovenian ID owner should be extracted. - * - * - */ - this.extractNationality = true; - - /** - * Defines if sex of Slovenian ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Defines if surname of Slovenian ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SloveniaIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/spainDlFrontRecognizer.js b/BlinkID/recognizers/spainDlFrontRecognizer.js deleted file mode 100644 index 1158d84..0000000 --- a/BlinkID/recognizers/spainDlFrontRecognizer.js +++ /dev/null @@ -1,210 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SpainDlFrontRecognizer. - */ -export class SpainDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Spain DL owner - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Spain DL owner - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing authority of the Spain DL - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The licence categories of the Spain DL - */ - this.licenceCategories = nativeResult.licenceCategories; - - /** - * The licence number of the Spain DL - */ - this.number = nativeResult.number; - - /** - * The place of birth of Spain DL owner - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of the Spain DL owner - */ - this.surname = nativeResult.surname; - - /** - * The date of issue of Spain DL - */ - this.validFrom = nativeResult.validFrom != null ? new Date(nativeResult.validFrom) : null; - - /** - * The date of expiry of Spain DL - */ - this.validUntil = nativeResult.validUntil != null ? new Date(nativeResult.validUntil) : null; - - } -} - -/** - * Spain Driver's License Front Recognizer. - * - * Recognizer which can scan front side of Spain national DL cards - */ -export class SpainDlFrontRecognizer extends Recognizer { - constructor() { - super('SpainDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Spain DL owner should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if first name of Spain DL owner should be extracted - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority of Spain DL should be extracted - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if licence categories of Spain DL should be extracted - * - * - */ - this.extractLicenceCategories = true; - - /** - * Defines if place of birth of Spain DL owner should be extracted - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if surname of Spain DL owner should be extracted - * - * - */ - this.extractSurname = true; - - /** - * Defines if date of issue of Spain DL should be extracted - * - * - */ - this.extractValidFrom = true; - - /** - * Defines if date of expiry of Spain DL should be extracted - * - * - */ - this.extractValidUntil = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SpainDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/swedenDlFrontRecognizer.js b/BlinkID/recognizers/swedenDlFrontRecognizer.js deleted file mode 100644 index dfda1ce..0000000 --- a/BlinkID/recognizers/swedenDlFrontRecognizer.js +++ /dev/null @@ -1,208 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SwedenDlFrontRecognizer. - */ -export class SwedenDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Sweden DL owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of Sweden DL. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of Sweden DL. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing agency of Sweden DL. - */ - this.issuingAgency = nativeResult.issuingAgency; - - /** - * The licence categories of Sweden DL. - */ - this.licenceCategories = nativeResult.licenceCategories; - - /** - * The licence number of Sweden DL. - */ - this.licenceNumber = nativeResult.licenceNumber; - - /** - * The name of Sweden DL owner. - */ - this.name = nativeResult.name; - - /** - * The reference number of Sweden DL. - */ - this.referenceNumber = nativeResult.referenceNumber; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of Sweden DL owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Sweden DL. - */ -export class SwedenDlFrontRecognizer extends Recognizer { - constructor() { - super('SwedenDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of Sweden DL owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Sweden DL should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Sweden DL should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if issuing agency of Sweden DL should be extracted. - * - * - */ - this.extractIssuingAgency = true; - - /** - * Defines if licence categories of Sweden DL should be extracted. - * - * - */ - this.extractLicenceCategories = true; - - /** - * Defines if name of Sweden DL owner should be extracted. - * - * - */ - this.extractName = true; - - /** - * Defines if reference number of Sweden DL should be extracted. - * - * - */ - this.extractReferenceNumber = true; - - /** - * Defines if surname of Sweden DL owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SwedenDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/switzerlandDlFrontRecognizer.js b/BlinkID/recognizers/switzerlandDlFrontRecognizer.js deleted file mode 100644 index 86f364c..0000000 --- a/BlinkID/recognizers/switzerlandDlFrontRecognizer.js +++ /dev/null @@ -1,215 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SwitzerlandDlFrontRecognizer. - */ -export class SwitzerlandDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of the Switzerland DL owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of rxpiry of the Switzerland DL. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of the Switzerland DL. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * If true, then this Switzerland DL will never expire. - */ - this.expiryDatePermanent = nativeResult.expiryDatePermanent; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * The first name of the Switzerland DL owner. - */ - this.firstName = nativeResult.firstName; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issuing authority of the Switzerland DL. - */ - this.issuingAuthority = nativeResult.issuingAuthority; - - /** - * The last name of the Switzerland DL owner. - */ - this.lastName = nativeResult.lastName; - - /** - * The license number of the Switzerland DL. - */ - this.licenseNumber = nativeResult.licenseNumber; - - /** - * The place of birth of the Switzerland DL owner. - */ - this.placeOfBirth = nativeResult.placeOfBirth; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The vehicle categories of the Switzerland DL. - */ - this.vehicleCategories = nativeResult.vehicleCategories; - - } -} - -/** - * Class for configuring Switzerland DL Front Recognizer. - * - * Switzerland DL Front recognizer is used for scanning front side of the Switzerland DL. - */ -export class SwitzerlandDlFrontRecognizer extends Recognizer { - constructor() { - super('SwitzerlandDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's date of birth should be extracted from front side of the Switzerland DL - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry should be extracted from front side of the Switzerland DL - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue should be extracted from front side of the Switzerland DL - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if owner's first name should be extracted from front side of the Switzerland DL - * - * - */ - this.extractFirstName = true; - - /** - * Defines if issuing authority should be extracted from front side of the Switzerland DL - * - * - */ - this.extractIssuingAuthority = true; - - /** - * Defines if owner's last name should be extracted from front side of the Switzerland DL - * - * - */ - this.extractLastName = true; - - /** - * Defines if owner's place of birth should be extracted from front side of the Switzerland DL - * - * - */ - this.extractPlaceOfBirth = true; - - /** - * Defines if vehicle categories should be extracted from front side of the Switzerland DL - * - * - */ - this.extractVehicleCategories = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SwitzerlandDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/switzerlandIdBackRecognizer.js b/BlinkID/recognizers/switzerlandIdBackRecognizer.js deleted file mode 100644 index 4d35745..0000000 --- a/BlinkID/recognizers/switzerlandIdBackRecognizer.js +++ /dev/null @@ -1,144 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SwitzerlandIdBackRecognizer. - */ -export class SwitzerlandIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The issuing authority of Switzerland ID. - */ - this.authority = nativeResult.authority; - - /** - * The date of expiry of Switzerland ID. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of Switzerland ID. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The height of Switzerland ID owner. - */ - this.height = nativeResult.height; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The place of origin of Switzerland ID owner. - */ - this.placeOfOrigin = nativeResult.placeOfOrigin; - - /** - * The sex of Switzerland ID owner. - */ - this.sex = nativeResult.sex; - - } -} - -/** - * Recognizer which can scan back side of Switzerland ID. - */ -export class SwitzerlandIdBackRecognizer extends Recognizer { - constructor() { - super('SwitzerlandIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if issuing authority of Switzerland ID should be extracted. - * - * - */ - this.extractAuthority = true; - - /** - * Defines if date of expiry of Switzerland ID should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Switzerland ID should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if height of Switzerland ID owner should be extracted. - * - * - */ - this.extractHeight = true; - - /** - * Defines if place of origin of Switzerland ID owner should be extracted. - * - * - */ - this.extractPlaceOfOrigin = true; - - /** - * Defines if sex of Switzerland ID owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SwitzerlandIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/switzerlandIdFrontRecognizer.js b/BlinkID/recognizers/switzerlandIdFrontRecognizer.js deleted file mode 100644 index f4c9780..0000000 --- a/BlinkID/recognizers/switzerlandIdFrontRecognizer.js +++ /dev/null @@ -1,136 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SwitzerlandIdFrontRecognizer. - */ -export class SwitzerlandIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date of birth of Switzerland ID owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given name of Switzerland ID owner. - */ - this.givenName = nativeResult.givenName; - - /** - * image of the signature if enabled with returnSignatureImage property. - */ - this.signatureImage = nativeResult.signatureImage; - - /** - * The surname of Switzerland ID owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan front side of Switzerland ID. - */ -export class SwitzerlandIdFrontRecognizer extends Recognizer { - constructor() { - super('SwitzerlandIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if given name of Switzerland ID owner should be extracted. - * - * - */ - this.extractGivenName = true; - - /** - * Defines if surname of Switzerland ID owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - /** - * Sets whether signature image from ID card should be extracted. - * - * - */ - this.returnSignatureImage = false; - - /** - * Property for setting DPI for signature images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.signatureImageDpi = 250; - - this.createResultFromNative = function (nativeResult) { return new SwitzerlandIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/switzerlandPassportRecognizer.js b/BlinkID/recognizers/switzerlandPassportRecognizer.js deleted file mode 100644 index af6ccac..0000000 --- a/BlinkID/recognizers/switzerlandPassportRecognizer.js +++ /dev/null @@ -1,212 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for SwitzerlandPassportRecognizer. - */ -export class SwitzerlandPassportRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The issuing authority of Switzerland passport. - */ - this.authority = nativeResult.authority; - - /** - * The date of birth of Switzerland passport owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The date of expiry of Switzerland passport. - */ - this.dateOfExpiry = nativeResult.dateOfExpiry != null ? new Date(nativeResult.dateOfExpiry) : null; - - /** - * The date of issue of Switzerland passport. - */ - this.dateOfIssue = nativeResult.dateOfIssue != null ? new Date(nativeResult.dateOfIssue) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The given name of Switzerland passport owner. - */ - this.givenName = nativeResult.givenName; - - /** - * The height of Switzerland passport owner. - */ - this.height = nativeResult.height; - - /** - * The data extracted from the machine readable zone. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - /** - * The passport number of Switzerland passport. - */ - this.passportNumber = nativeResult.passportNumber; - - /** - * The place of origin of Switzerland passport owner. - */ - this.placeOfOrigin = nativeResult.placeOfOrigin; - - /** - * The sex of Switzerland passport owner. - */ - this.sex = nativeResult.sex; - - /** - * The surname of Switzerland passport owner. - */ - this.surname = nativeResult.surname; - - } -} - -/** - * Recognizer which can scan Switzerland passport. - */ -export class SwitzerlandPassportRecognizer extends Recognizer { - constructor() { - super('SwitzerlandPassportRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if issuing authority of Switzerland passport should be extracted. - * - * - */ - this.extractAuthority = true; - - /** - * Defines if date of birth of Switzerland passport owner should be extracted. - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if date of expiry of Switzerland passport should be extracted. - * - * - */ - this.extractDateOfExpiry = true; - - /** - * Defines if date of issue of Switzerland passport should be extracted. - * - * - */ - this.extractDateOfIssue = true; - - /** - * Defines if given name of Switzerland passport owner should be extracted. - * - * - */ - this.extractGivenName = true; - - /** - * Defines if height of Switzerland passport owner should be extracted. - * - * - */ - this.extractHeight = true; - - /** - * Defines if passport number of Switzerland passport should be extracted. - * - * - */ - this.extractPassportNumber = true; - - /** - * Defines if place of origin of Switzerland passport owner should be extracted. - * - * - */ - this.extractPlaceOfOrigin = true; - - /** - * Defines if sex of Switzerland passport owner should be extracted. - * - * - */ - this.extractSex = true; - - /** - * Defines if surname of Switzerland passport owner should be extracted. - * - * - */ - this.extractSurname = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new SwitzerlandPassportRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/unitedArabEmiratesDlFrontRecognizer.js b/BlinkID/recognizers/unitedArabEmiratesDlFrontRecognizer.js deleted file mode 100644 index b0fd47f..0000000 --- a/BlinkID/recognizers/unitedArabEmiratesDlFrontRecognizer.js +++ /dev/null @@ -1,176 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for UnitedArabEmiratesDlFrontRecognizer. - */ -export class UnitedArabEmiratesDlFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * The date Of Birth of the front side of the United Arab Emirates Dl owner. - */ - this.dateOfBirth = nativeResult.dateOfBirth != null ? new Date(nativeResult.dateOfBirth) : null; - - /** - * The expiry Date of the front side of the United Arab Emirates Dl owner. - */ - this.expiryDate = nativeResult.expiryDate != null ? new Date(nativeResult.expiryDate) : null; - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The issue Date of the front side of the United Arab Emirates Dl owner. - */ - this.issueDate = nativeResult.issueDate != null ? new Date(nativeResult.issueDate) : null; - - /** - * The license Number of the front side of the United Arab Emirates Dl owner. - */ - this.licenseNumber = nativeResult.licenseNumber; - - /** - * The licensing Authority of the front side of the United Arab Emirates Dl owner. - */ - this.licensingAuthority = nativeResult.licensingAuthority; - - /** - * The name of the front side of the United Arab Emirates Dl owner. - */ - this.name = nativeResult.name; - - /** - * The nationality of the front side of the United Arab Emirates Dl owner. - */ - this.nationality = nativeResult.nationality; - - /** - * The place Of Issue of the front side of the United Arab Emirates Dl owner. - */ - this.placeOfIssue = nativeResult.placeOfIssue; - - } -} - -/** - * Recognizer which can scan front side of UAE drivers license. - */ -export class UnitedArabEmiratesDlFrontRecognizer extends Recognizer { - constructor() { - super('UnitedArabEmiratesDlFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if date of birth of UAE DL owner should be extracted - * - * - */ - this.extractDateOfBirth = true; - - /** - * Defines if issue date of UAE DL should be extracted - * - * - */ - this.extractIssueDate = true; - - /** - * Defines if license number of UAE DL should be extracted - * - * - */ - this.extractLicenseNumber = true; - - /** - * Defines if licensing authority code of UAE DL should be extracted - * - * - */ - this.extractLicensingAuthority = true; - - /** - * Defines if name of UAE DL owner should be extracted - * - * - */ - this.extractName = true; - - /** - * Defines if nationality of UAE DL owner should be extracted - * - * - */ - this.extractNationality = true; - - /** - * Defines if place of issue of UAE DL should be extracted - * - * - */ - this.extractPlaceOfIssue = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new UnitedArabEmiratesDlFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/unitedArabEmiratesIdBackRecognizer.js b/BlinkID/recognizers/unitedArabEmiratesIdBackRecognizer.js deleted file mode 100644 index 98a76e7..0000000 --- a/BlinkID/recognizers/unitedArabEmiratesIdBackRecognizer.js +++ /dev/null @@ -1,74 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for UnitedArabEmiratesIdBackRecognizer. - */ -export class UnitedArabEmiratesIdBackRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The mrz of the back side of United Arab Emirates ID owner. - */ - this.mrzResult = nativeResult.mrzResult != null ? new MrzResult(nativeResult.mrzResult) : null; - - } -} - -/** - * Class for configuring United Arab Emirates ID Back Recognizer. - * - * United Arab Emirates ID Back recognizer is used for scanning back side of United Arab Emirates ID. - */ -export class UnitedArabEmiratesIdBackRecognizer extends Recognizer { - constructor() { - super('UnitedArabEmiratesIdBackRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new UnitedArabEmiratesIdBackRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/unitedArabEmiratesIdFrontRecognizer.js b/BlinkID/recognizers/unitedArabEmiratesIdFrontRecognizer.js deleted file mode 100644 index 8c0442d..0000000 --- a/BlinkID/recognizers/unitedArabEmiratesIdFrontRecognizer.js +++ /dev/null @@ -1,118 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for UnitedArabEmiratesIdFrontRecognizer. - */ -export class UnitedArabEmiratesIdFrontRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * face image from the document if enabled with returnFaceImage property. - */ - this.faceImage = nativeResult.faceImage; - - /** - * full document image if enabled with returnFullDocumentImage property. - */ - this.fullDocumentImage = nativeResult.fullDocumentImage; - - /** - * The id Number of the front side of United Arab Emirates ID owner. - */ - this.idNumber = nativeResult.idNumber; - - /** - * The name of the front side of United Arab Emirates ID owner. - */ - this.name = nativeResult.name; - - /** - * The nationality of the front side of United Arab Emirates ID owner. - */ - this.nationality = nativeResult.nationality; - - } -} - -/** - * Class for configuring United Arab Emirates ID Front Recognizer. - * - * United Arab Emirates ID Front recognizer is used for scanning front side of United Arab Emirates ID. - */ -export class UnitedArabEmiratesIdFrontRecognizer extends Recognizer { - constructor() { - super('UnitedArabEmiratesIdFrontRecognizer'); - - /** - * Defines if glare detection should be turned on/off. - * - * - */ - this.detectGlare = true; - - /** - * Defines if owner's name should be extracted from front side of United Arab Emirates ID - * - * - */ - this.extractName = true; - - /** - * Defines if owner's nationality should be extracted from front side of United Arab Emirates ID - * - * - */ - this.extractNationality = true; - - /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.faceImageDpi = 250; - - /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * - */ - this.fullDocumentImageDpi = 250; - - /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * - */ - this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); - - /** - * Sets whether face image from ID card should be extracted - * - * - */ - this.returnFaceImage = false; - - /** - * Sets whether full document image of ID card should be extracted. - * - * - */ - this.returnFullDocumentImage = false; - - this.createResultFromNative = function (nativeResult) { return new UnitedArabEmiratesIdFrontRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/vinRecognizer.js b/BlinkID/recognizers/vinRecognizer.js deleted file mode 100644 index 100ad2e..0000000 --- a/BlinkID/recognizers/vinRecognizer.js +++ /dev/null @@ -1,37 +0,0 @@ -import { Recognizer, RecognizerResult } from '../recognizer' -import { - Date, - Point, - Quadrilateral, - MrtdDocumentType, - MrzResult, - EudlCountry, - DocumentFaceDetectorType, - ImageExtensionFactors, -} from '../types' - -/** - * Result object for VinRecognizer. - */ -export class VinRecognizerResult extends RecognizerResult { - constructor(nativeResult) { - super(nativeResult.resultState); - - /** - * Returns the recognized VIN or empty string if recognition failed. - */ - this.vin = nativeResult.vin; - - } -} - -/** - * Recognizer that can perform recognition of VINs (Vehicle Identification Number). - */ -export class VinRecognizer extends Recognizer { - constructor() { - super('VinRecognizer'); - - this.createResultFromNative = function (nativeResult) { return new VinRecognizerResult(nativeResult); } - } -} \ No newline at end of file diff --git a/BlinkID/recognizers/visaRecognizer.js b/BlinkID/recognizers/visaRecognizer.js index a7ad44a..f7453c5 100644 --- a/BlinkID/recognizers/visaRecognizer.js +++ b/BlinkID/recognizers/visaRecognizer.js @@ -4,10 +4,11 @@ import { Point, Quadrilateral, MrtdDocumentType, - MrzResult, - EudlCountry, + MrzResult, DocumentFaceDetectorType, ImageExtensionFactors, + DataMatchResult, + } from '../types' /** @@ -18,12 +19,12 @@ export class VisaRecognizerResult extends RecognizerResult { super(nativeResult.resultState); /** - * face image from the document if enabled with returnFaceImage property. + * Face image from the document */ this.faceImage = nativeResult.faceImage; /** - * full document image if enabled with returnFullDocumentImage property. + * Image of the full document */ this.fullDocumentImage = nativeResult.fullDocumentImage; @@ -43,47 +44,32 @@ export class VisaRecognizer extends Recognizer { super('VisaRecognizer'); /** - * Defines if glare detection should be turned on/off. - * - * + * Defines whether glare detector is enabled. */ this.detectGlare = true; /** - * Property for setting DPI for face images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for face image that should be returned. */ this.faceImageDpi = 250; /** - * Property for setting DPI for full document images - * Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception - * - * + * The DPI (Dots Per Inch) for full document image that should be returned. */ this.fullDocumentImageDpi = 250; /** - * Image extension factors for full document image. - * - * @see ImageExtensionFactors - * + * The extension factors for full document image. */ this.fullDocumentImageExtensionFactors = new ImageExtensionFactors(); /** - * Sets whether face image from ID card should be extracted - * - * + * Defines whether face image will be available in result. */ this.returnFaceImage = false; /** - * Sets whether full document image of ID card should be extracted. - * - * + * Defines whether full document image will be available in */ this.returnFullDocumentImage = false; diff --git a/BlinkID/src/android/build.gradle b/BlinkID/src/android/build.gradle index fdf3dd3..dcd3134 100644 --- a/BlinkID/src/android/build.gradle +++ b/BlinkID/src/android/build.gradle @@ -16,21 +16,9 @@ android { } } -repositories { - jcenter() - mavenCentral() - maven { url 'http://maven.microblink.com' } - mavenLocal() - maven { - url 'https://maven.google.com/' - name 'Google' - } -} - dependencies { - compile "com.android.support:appcompat-v7:28.0.0" - compile 'com.facebook.react:react-native:+' - compile('com.microblink:blinkid:4.11.1@aar') { + implementation 'com.facebook.react:react-native:+' + implementation('com.microblink:blinkid:5.0.0@aar') { transitive = true } } diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/OverlaySettingsSerializers.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/OverlaySettingsSerializers.java index 86783d9..ff68026 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/OverlaySettingsSerializers.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/OverlaySettingsSerializers.java @@ -19,10 +19,8 @@ private void registerMapping(OverlaySettingsSerialization overlaySettingsSeriali } OverlaySettingsSerializers() { - registerMapping(new BarcodeOverlaySettingsSerialization()); registerMapping(new DocumentOverlaySettingsSerialization()); registerMapping(new DocumentVerificationOverlaySettingsSerialization()); - registerMapping(new BlinkCardOverlaySettingsSerialization()); registerMapping(new BlinkIdOverlaySettingsSerialization()); } diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BarcodeOverlaySettingsSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BarcodeOverlaySettingsSerialization.java deleted file mode 100644 index 36162f0..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BarcodeOverlaySettingsSerialization.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.microblink.reactnative.overlays.serialization; - -import android.content.Context; - -import com.facebook.react.bridge.ReadableMap; -import com.microblink.entities.recognizers.RecognizerBundle; -import com.microblink.reactnative.overlays.OverlaySettingsSerialization; -import com.microblink.uisettings.BarcodeUISettings; -import com.microblink.uisettings.UISettings; - -public final class BarcodeOverlaySettingsSerialization implements OverlaySettingsSerialization { - @Override - public UISettings createUISettings(Context context, ReadableMap jsonUISettings, RecognizerBundle recognizerBundle) { - BarcodeUISettings settings = new BarcodeUISettings(recognizerBundle); - OverlaySerializationUtils.extractCommonUISettings(jsonUISettings, settings); - return settings; - } - - @Override - public String getJsonName() { - return "BarcodeOverlaySettings"; - } -} diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BlinkCardOverlaySettingsSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BlinkCardOverlaySettingsSerialization.java deleted file mode 100644 index 1a91f44..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BlinkCardOverlaySettingsSerialization.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.microblink.reactnative.overlays.serialization; - -import android.content.Context; - -import com.facebook.react.bridge.ReadableMap; -import com.microblink.entities.recognizers.RecognizerBundle; -import com.microblink.fragment.overlay.blinkcard.scanlineui.ScanLineOverlayStrings; -import com.microblink.reactnative.overlays.OverlaySettingsSerialization; -import com.microblink.uisettings.BlinkCardUISettings; -import com.microblink.uisettings.UISettings; - -public final class BlinkCardOverlaySettingsSerialization implements OverlaySettingsSerialization { - @Override - public UISettings createUISettings(Context context, ReadableMap jsonUISettings, RecognizerBundle recognizerBundle) { - BlinkCardUISettings settings = new BlinkCardUISettings(recognizerBundle); - OverlaySerializationUtils.extractCommonUISettings(jsonUISettings, settings); - BlinkIDOverlaySerializationUtils.extractCommonBlinkIdUiSettings(jsonUISettings, settings); - - ScanLineOverlayStrings.Builder stringsBuilder = new ScanLineOverlayStrings.Builder(context); - String firstSideInstructions = getStringFromMap(jsonUISettings, "firstSideInstructions"); - if (firstSideInstructions != null) { - stringsBuilder.setFrontSideInstructions(firstSideInstructions); - } - String secondSideInstructions = getStringFromMap(jsonUISettings, "secondSideInstructions"); - if (secondSideInstructions != null) { - stringsBuilder.setBackSideInstructions(secondSideInstructions); - } - settings.setStrings(stringsBuilder.build()); - return settings; - } - - private String getStringFromMap(ReadableMap map, String key) { - if (map.hasKey(key)) { - return map.getString(key); - } - return null; - } - - @Override - public String getJsonName() { - return "BlinkCardOverlaySettings"; - } -} diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BlinkIDOverlaySerializationUtils.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BlinkIDOverlaySerializationUtils.java index 7274f6d..ea9f091 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BlinkIDOverlaySerializationUtils.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/BlinkIDOverlaySerializationUtils.java @@ -1,20 +1,9 @@ package com.microblink.reactnative.overlays.serialization; import com.facebook.react.bridge.ReadableMap; -import com.microblink.hardware.camera.CameraType; -import com.microblink.uisettings.BaseBlinkIdUiSettings; -import com.microblink.uisettings.BlinkCardUISettings; import com.microblink.uisettings.UISettings; public abstract class BlinkIDOverlaySerializationUtils { public static void extractCommonBlinkIdUiSettings(ReadableMap jsonOverlaySettings, UISettings uiSettings) { - if (jsonOverlaySettings.hasKey("useFrontCamera") - && jsonOverlaySettings.getBoolean("useFrontCamera")) { - if (uiSettings instanceof BaseBlinkIdUiSettings) { - ((BaseBlinkIdUiSettings) uiSettings).setCameraType(CameraType.CAMERA_FRONTFACE); - } else if (uiSettings instanceof BlinkCardUISettings) { - ((BlinkCardUISettings) uiSettings).setCameraType(CameraType.CAMERA_FRONTFACE); - } - } } -} +} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/OverlaySerializationUtils.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/OverlaySerializationUtils.java index fa1d3de..ecc54f3 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/OverlaySerializationUtils.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/overlays/serialization/OverlaySerializationUtils.java @@ -3,8 +3,7 @@ import com.facebook.react.bridge.ReadableMap; import com.microblink.hardware.camera.CameraType; import com.microblink.reactnative.R; -import com.microblink.uisettings.BarcodeUISettings; -import com.microblink.uisettings.BasicScanUISettings; +import com.microblink.uisettings.CameraSettings; import com.microblink.uisettings.UISettings; import com.microblink.uisettings.options.BeepSoundUIOptions; @@ -17,11 +16,12 @@ public static void extractCommonUISettings(ReadableMap jsonOverlaySettings, UISe } } } - if (uiSettings instanceof BarcodeUISettings) { - if (jsonOverlaySettings.hasKey("useFrontCamera") - && jsonOverlaySettings.getBoolean("useFrontCamera")) { - ((BasicScanUISettings) uiSettings).setCameraType(CameraType.CAMERA_FRONTFACE); - } + if (jsonOverlaySettings.hasKey("useFrontCamera") + && jsonOverlaySettings.getBoolean("useFrontCamera")) { + CameraSettings cameraSettings = new CameraSettings.Builder() + .setType(CameraType.CAMERA_FRONTFACE) + .build(); + uiSettings.setCameraSettings(cameraSettings); } } -} +} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/RecognizerSerializers.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/RecognizerSerializers.java index 7db16be..985f08b 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/RecognizerSerializers.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/RecognizerSerializers.java @@ -23,103 +23,12 @@ private void registerMapping( RecognizerSerialization recognizerSerialization ) RecognizerSerializers() { registerMapping(new SuccessFrameGrabberRecognizerSerialization()); - registerMapping(new AustraliaDlBackRecognizerSerialization()); - registerMapping(new AustraliaDlFrontRecognizerSerialization()); - registerMapping(new AustriaCombinedRecognizerSerialization()); - registerMapping(new AustriaDlFrontRecognizerSerialization()); - registerMapping(new AustriaIdBackRecognizerSerialization()); - registerMapping(new AustriaIdFrontRecognizerSerialization()); - registerMapping(new AustriaPassportRecognizerSerialization()); - registerMapping(new BarcodeRecognizerSerialization()); - registerMapping(new BelgiumCombinedRecognizerSerialization()); - registerMapping(new BelgiumIdBackRecognizerSerialization()); - registerMapping(new BelgiumIdFrontRecognizerSerialization()); - registerMapping(new BlinkCardEliteRecognizerSerialization()); - registerMapping(new BlinkCardRecognizerSerialization()); registerMapping(new BlinkIdCombinedRecognizerSerialization()); registerMapping(new BlinkIdRecognizerSerialization()); - registerMapping(new BruneiIdBackRecognizerSerialization()); - registerMapping(new BruneiIdFrontRecognizerSerialization()); - registerMapping(new BruneiMilitaryIdBackRecognizerSerialization()); - registerMapping(new BruneiMilitaryIdFrontRecognizerSerialization()); - registerMapping(new BruneiResidencePermitBackRecognizerSerialization()); - registerMapping(new BruneiResidencePermitFrontRecognizerSerialization()); - registerMapping(new BruneiTemporaryResidencePermitBackRecognizerSerialization()); - registerMapping(new BruneiTemporaryResidencePermitFrontRecognizerSerialization()); - registerMapping(new ColombiaDlFrontRecognizerSerialization()); - registerMapping(new ColombiaIdBackRecognizerSerialization()); - registerMapping(new ColombiaIdFrontRecognizerSerialization()); - registerMapping(new CroatiaCombinedRecognizerSerialization()); - registerMapping(new CroatiaIdBackRecognizerSerialization()); - registerMapping(new CroatiaIdFrontRecognizerSerialization()); - registerMapping(new CyprusIdBackRecognizerSerialization()); - registerMapping(new CyprusIdFrontRecognizerSerialization()); - registerMapping(new CyprusOldIdBackRecognizerSerialization()); - registerMapping(new CyprusOldIdFrontRecognizerSerialization()); - registerMapping(new CzechiaCombinedRecognizerSerialization()); - registerMapping(new CzechiaIdBackRecognizerSerialization()); - registerMapping(new CzechiaIdFrontRecognizerSerialization()); registerMapping(new DocumentFaceRecognizerSerialization()); - registerMapping(new EgyptIdFrontRecognizerSerialization()); - registerMapping(new EudlRecognizerSerialization()); - registerMapping(new GermanyCombinedRecognizerSerialization()); - registerMapping(new GermanyDlBackRecognizerSerialization()); - registerMapping(new GermanyDlFrontRecognizerSerialization()); - registerMapping(new GermanyIdBackRecognizerSerialization()); - registerMapping(new GermanyIdFrontRecognizerSerialization()); - registerMapping(new GermanyIdOldRecognizerSerialization()); - registerMapping(new GermanyPassportRecognizerSerialization()); - registerMapping(new HongKongIdFrontRecognizerSerialization()); - registerMapping(new IndonesiaIdFrontRecognizerSerialization()); - registerMapping(new IrelandDlFrontRecognizerSerialization()); - registerMapping(new ItalyDlFrontRecognizerSerialization()); - registerMapping(new JordanCombinedRecognizerSerialization()); - registerMapping(new JordanIdBackRecognizerSerialization()); - registerMapping(new JordanIdFrontRecognizerSerialization()); - registerMapping(new KuwaitIdBackRecognizerSerialization()); - registerMapping(new KuwaitIdFrontRecognizerSerialization()); - registerMapping(new MalaysiaDlFrontRecognizerSerialization()); - registerMapping(new MalaysiaIkadFrontRecognizerSerialization()); - registerMapping(new MalaysiaMyKadBackRecognizerSerialization()); - registerMapping(new MalaysiaMyKadFrontRecognizerSerialization()); - registerMapping(new MalaysiaMyKasFrontRecognizerSerialization()); - registerMapping(new MalaysiaMyPrFrontRecognizerSerialization()); - registerMapping(new MalaysiaMyTenteraFrontRecognizerSerialization()); - registerMapping(new MexicoVoterIdFrontRecognizerSerialization()); - registerMapping(new MoroccoIdBackRecognizerSerialization()); - registerMapping(new MoroccoIdFrontRecognizerSerialization()); registerMapping(new MrtdCombinedRecognizerSerialization()); registerMapping(new MrtdRecognizerSerialization()); - registerMapping(new NewZealandDlFrontRecognizerSerialization()); - registerMapping(new NigeriaVoterIdBackRecognizerSerialization()); registerMapping(new PassportRecognizerSerialization()); - registerMapping(new Pdf417RecognizerSerialization()); - registerMapping(new PolandCombinedRecognizerSerialization()); - registerMapping(new PolandIdBackRecognizerSerialization()); - registerMapping(new PolandIdFrontRecognizerSerialization()); - registerMapping(new RomaniaIdFrontRecognizerSerialization()); - registerMapping(new SimNumberRecognizerSerialization()); - registerMapping(new SingaporeChangiEmployeeIdRecognizerSerialization()); - registerMapping(new SingaporeCombinedRecognizerSerialization()); - registerMapping(new SingaporeDlFrontRecognizerSerialization()); - registerMapping(new SingaporeIdBackRecognizerSerialization()); - registerMapping(new SingaporeIdFrontRecognizerSerialization()); - registerMapping(new SlovakiaCombinedRecognizerSerialization()); - registerMapping(new SlovakiaIdBackRecognizerSerialization()); - registerMapping(new SlovakiaIdFrontRecognizerSerialization()); - registerMapping(new SloveniaCombinedRecognizerSerialization()); - registerMapping(new SloveniaIdBackRecognizerSerialization()); - registerMapping(new SloveniaIdFrontRecognizerSerialization()); - registerMapping(new SpainDlFrontRecognizerSerialization()); - registerMapping(new SwedenDlFrontRecognizerSerialization()); - registerMapping(new SwitzerlandDlFrontRecognizerSerialization()); - registerMapping(new SwitzerlandIdBackRecognizerSerialization()); - registerMapping(new SwitzerlandIdFrontRecognizerSerialization()); - registerMapping(new SwitzerlandPassportRecognizerSerialization()); - registerMapping(new UnitedArabEmiratesDlFrontRecognizerSerialization()); - registerMapping(new UnitedArabEmiratesIdBackRecognizerSerialization()); - registerMapping(new UnitedArabEmiratesIdFrontRecognizerSerialization()); - registerMapping(new VinRecognizerSerialization()); registerMapping(new VisaRecognizerSerialization()); registerMapping(new UsdlRecognizerSerialization()); registerMapping(new UsdlCombinedRecognizerSerialization()); diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustraliaDlBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustraliaDlBackRecognizerSerialization.java deleted file mode 100644 index b2cfe49..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustraliaDlBackRecognizerSerialization.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class AustraliaDlBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.australia.AustraliaDlBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.australia.AustraliaDlBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("extractLicenceNumber")) { - recognizer.setExtractLicenceNumber(jsonRecognizer.getBoolean("extractLicenceNumber")); - } - if (jsonRecognizer.hasKey("extractLicenseExpiry")) { - recognizer.setExtractLicenseExpiry(jsonRecognizer.getBoolean("extractLicenseExpiry")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.australia.AustraliaDlBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.australia.AustraliaDlBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putMap("licenceExpiry", SerializationUtils.serializeDate(result.getLicenceExpiry())); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "AustraliaDlBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.australia.AustraliaDlBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustraliaDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustraliaDlFrontRecognizerSerialization.java deleted file mode 100644 index 1fdbd84..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustraliaDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class AustraliaDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.australia.AustraliaDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.australia.AustraliaDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("extractLicenseExpiry")) { - recognizer.setExtractLicenseExpiry(jsonRecognizer.getBoolean("extractLicenseExpiry")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.australia.AustraliaDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.australia.AustraliaDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putMap("licenceExpiry", SerializationUtils.serializeDate(result.getLicenceExpiry())); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("licenceType", result.getLicenceType()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "AustraliaDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.australia.AustraliaDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaCombinedRecognizerSerialization.java deleted file mode 100644 index 93026d4..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaCombinedRecognizerSerialization.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class AustriaCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.austria.AustriaCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssuance")) { - recognizer.setExtractDateOfIssuance(jsonRecognizer.getBoolean("extractDateOfIssuance")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractHeight")) { - recognizer.setExtractHeight(jsonRecognizer.getBoolean("extractHeight")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPassportNumber")) { - recognizer.setExtractPassportNumber(jsonRecognizer.getBoolean("extractPassportNumber")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractPrincipalResidence")) { - recognizer.setExtractPrincipalResidence(jsonRecognizer.getBoolean("extractPrincipalResidence")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.austria.AustriaCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssuance", SerializationUtils.serializeDate(result.getDateOfIssuance())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("eyeColour", result.getEyeColour()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("givenName", result.getGivenName()); - jsonResult.putString("height", result.getHeight()); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putBoolean("mrtdVerified", result.isMrtdVerified()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("principalResidence", result.getPrincipalResidence()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "AustriaCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.austria.AustriaCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaDlFrontRecognizerSerialization.java deleted file mode 100644 index 73a881c..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class AustriaDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.austria.AustriaDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractVehicleCategories")) { - recognizer.setExtractVehicleCategories(jsonRecognizer.getBoolean("extractVehicleCategories")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.austria.AustriaDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("vehicleCategories", result.getVehicleCategories()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "AustriaDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.austria.AustriaDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaIdBackRecognizerSerialization.java deleted file mode 100644 index 0531d51..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaIdBackRecognizerSerialization.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class AustriaIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.austria.AustriaIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfIssuance")) { - recognizer.setExtractDateOfIssuance(jsonRecognizer.getBoolean("extractDateOfIssuance")); - } - if (jsonRecognizer.hasKey("extractHeight")) { - recognizer.setExtractHeight(jsonRecognizer.getBoolean("extractHeight")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractPrincipalResidence")) { - recognizer.setExtractPrincipalResidence(jsonRecognizer.getBoolean("extractPrincipalResidence")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.austria.AustriaIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfIssuance", SerializationUtils.serializeDate(result.getDateOfIssuance())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("eyeColour", result.getEyeColour()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("height", result.getHeight()); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("principalResidence", result.getPrincipalResidence()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "AustriaIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.austria.AustriaIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaIdFrontRecognizerSerialization.java deleted file mode 100644 index 3becccb..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class AustriaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.austria.AustriaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.austria.AustriaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenName", result.getGivenName()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "AustriaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.austria.AustriaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaPassportRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaPassportRecognizerSerialization.java deleted file mode 100644 index 0fa2212..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/AustriaPassportRecognizerSerialization.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class AustriaPassportRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaPassportRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.austria.AustriaPassportRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractHeight")) { - recognizer.setExtractHeight(jsonRecognizer.getBoolean("extractHeight")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPassportNumber")) { - recognizer.setExtractPassportNumber(jsonRecognizer.getBoolean("extractPassportNumber")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.austria.AustriaPassportRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.austria.AustriaPassportRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenName", result.getGivenName()); - jsonResult.putString("height", result.getHeight()); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("passportNumber", result.getPassportNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "AustriaPassportRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.austria.AustriaPassportRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BarcodeRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BarcodeRecognizerSerialization.java deleted file mode 100644 index 81715e0..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BarcodeRecognizerSerialization.java +++ /dev/null @@ -1,88 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BarcodeRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkbarcode.barcode.BarcodeRecognizer recognizer = new com.microblink.entities.recognizers.blinkbarcode.barcode.BarcodeRecognizer(); - if (jsonRecognizer.hasKey("autoScaleDetection")) { - recognizer.setAutoScaleDetection(jsonRecognizer.getBoolean("autoScaleDetection")); - } - if (jsonRecognizer.hasKey("nullQuietZoneAllowed")) { - recognizer.setNullQuietZoneAllowed(jsonRecognizer.getBoolean("nullQuietZoneAllowed")); - } - if (jsonRecognizer.hasKey("readCode39AsExtendedData")) { - recognizer.setReadCode39AsExtendedData(jsonRecognizer.getBoolean("readCode39AsExtendedData")); - } - if (jsonRecognizer.hasKey("scanAztecCode")) { - recognizer.setScanAztecCode(jsonRecognizer.getBoolean("scanAztecCode")); - } - if (jsonRecognizer.hasKey("scanCode128")) { - recognizer.setScanCode128(jsonRecognizer.getBoolean("scanCode128")); - } - if (jsonRecognizer.hasKey("scanCode39")) { - recognizer.setScanCode39(jsonRecognizer.getBoolean("scanCode39")); - } - if (jsonRecognizer.hasKey("scanDataMatrix")) { - recognizer.setScanDataMatrix(jsonRecognizer.getBoolean("scanDataMatrix")); - } - if (jsonRecognizer.hasKey("scanEan13")) { - recognizer.setScanEan13(jsonRecognizer.getBoolean("scanEan13")); - } - if (jsonRecognizer.hasKey("scanEan8")) { - recognizer.setScanEan8(jsonRecognizer.getBoolean("scanEan8")); - } - if (jsonRecognizer.hasKey("scanInverse")) { - recognizer.setScanInverse(jsonRecognizer.getBoolean("scanInverse")); - } - if (jsonRecognizer.hasKey("scanItf")) { - recognizer.setScanItf(jsonRecognizer.getBoolean("scanItf")); - } - if (jsonRecognizer.hasKey("scanPdf417")) { - recognizer.setScanPdf417(jsonRecognizer.getBoolean("scanPdf417")); - } - if (jsonRecognizer.hasKey("scanQrCode")) { - recognizer.setScanQrCode(jsonRecognizer.getBoolean("scanQrCode")); - } - if (jsonRecognizer.hasKey("scanUncertain")) { - recognizer.setScanUncertain(jsonRecognizer.getBoolean("scanUncertain")); - } - if (jsonRecognizer.hasKey("scanUpca")) { - recognizer.setScanUpca(jsonRecognizer.getBoolean("scanUpca")); - } - if (jsonRecognizer.hasKey("scanUpce")) { - recognizer.setScanUpce(jsonRecognizer.getBoolean("scanUpce")); - } - if (jsonRecognizer.hasKey("slowerThoroughScan")) { - recognizer.setSlowerThoroughScan(jsonRecognizer.getBoolean("slowerThoroughScan")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkbarcode.barcode.BarcodeRecognizer.Result result = ((com.microblink.entities.recognizers.blinkbarcode.barcode.BarcodeRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putInt("barcodeType", SerializationUtils.serializeEnum(result.getBarcodeType())); - jsonResult.putString("rawData", SerializationUtils.encodeByteArrayToBase64(result.getRawData())); - jsonResult.putString("stringData", result.getStringData()); - jsonResult.putBoolean("uncertain", result.isUncertain()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BarcodeRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkbarcode.barcode.BarcodeRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumCombinedRecognizerSerialization.java deleted file mode 100644 index 95b361e..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumCombinedRecognizerSerialization.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BelgiumCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.belgium.BelgiumCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.belgium.BelgiumCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.belgium.BelgiumCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.belgium.BelgiumCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("cardNumber", result.getCardNumber()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BelgiumCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.belgium.BelgiumCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumIdBackRecognizerSerialization.java deleted file mode 100644 index 3cc6158..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumIdBackRecognizerSerialization.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BelgiumIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BelgiumIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumIdFrontRecognizerSerialization.java deleted file mode 100644 index 15e5ad9..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BelgiumIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BelgiumIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("cardNumber", result.getCardNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BelgiumIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.belgium.BelgiumIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkCardEliteRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkCardEliteRecognizerSerialization.java deleted file mode 100644 index c460ae3..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkCardEliteRecognizerSerialization.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BlinkCardEliteRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer recognizer = new com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer(); - if (jsonRecognizer.hasKey("anonymizeCardNumber")) { - recognizer.setAnonymizeCardNumber(jsonRecognizer.getBoolean("anonymizeCardNumber")); - } - if (jsonRecognizer.hasKey("anonymizeCvv")) { - recognizer.setAnonymizeCvv(jsonRecognizer.getBoolean("anonymizeCvv")); - } - if (jsonRecognizer.hasKey("anonymizeOwner")) { - recognizer.setAnonymizeOwner(jsonRecognizer.getBoolean("anonymizeOwner")); - } - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractInventoryNumber")) { - recognizer.setExtractInventoryNumber(jsonRecognizer.getBoolean("extractInventoryNumber")); - } - if (jsonRecognizer.hasKey("extractOwner")) { - recognizer.setExtractOwner(jsonRecognizer.getBoolean("extractOwner")); - } - if (jsonRecognizer.hasKey("extractValidThru")) { - recognizer.setExtractValidThru(jsonRecognizer.getBoolean("extractValidThru")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer.Result result = ((com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("cardNumber", result.getCardNumber()); - jsonResult.putString("cvv", result.getCvv()); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("inventoryNumber", result.getInventoryNumber()); - jsonResult.putString("owner", result.getOwner()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putMap("validThru", SerializationUtils.serializeDate(result.getValidThru())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BlinkCardEliteRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkcard.BlinkCardEliteRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkCardRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkCardRecognizerSerialization.java deleted file mode 100644 index 5c2d83a..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkCardRecognizerSerialization.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BlinkCardRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer recognizer = new com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer(); - if (jsonRecognizer.hasKey("anonymizeCardNumber")) { - recognizer.setAnonymizeCardNumber(jsonRecognizer.getBoolean("anonymizeCardNumber")); - } - if (jsonRecognizer.hasKey("anonymizeCvv")) { - recognizer.setAnonymizeCvv(jsonRecognizer.getBoolean("anonymizeCvv")); - } - if (jsonRecognizer.hasKey("anonymizeOwner")) { - recognizer.setAnonymizeOwner(jsonRecognizer.getBoolean("anonymizeOwner")); - } - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractCvv")) { - recognizer.setExtractCvv(jsonRecognizer.getBoolean("extractCvv")); - } - if (jsonRecognizer.hasKey("extractInventoryNumber")) { - recognizer.setExtractInventoryNumber(jsonRecognizer.getBoolean("extractInventoryNumber")); - } - if (jsonRecognizer.hasKey("extractOwner")) { - recognizer.setExtractOwner(jsonRecognizer.getBoolean("extractOwner")); - } - if (jsonRecognizer.hasKey("extractValidThru")) { - recognizer.setExtractValidThru(jsonRecognizer.getBoolean("extractValidThru")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer.Result result = ((com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("cardNumber", result.getCardNumber()); - jsonResult.putString("cvv", result.getCvv()); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("inventoryNumber", result.getInventoryNumber()); - jsonResult.putInt("issuer", SerializationUtils.serializeEnum(result.getIssuer())); - jsonResult.putString("owner", result.getOwner()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putMap("validThru", SerializationUtils.serializeDate(result.getValidThru())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BlinkCardRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkcard.BlinkCardRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java index c900f77..084b336 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java @@ -25,9 +25,6 @@ public Recognizer createRecognizer(ReadableMap jsonRecognizer) { if (jsonRecognizer.hasKey("returnFullDocumentImage")) { recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } return recognizer; } @@ -36,20 +33,34 @@ public WritableMap serializeResult(Recognizer recognizer) { com.microblink.entities.recognizers.blinkid.generic.BlinkIdCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.generic.BlinkIdCombinedRecognizer)recognizer).getResult(); WritableMap jsonResult = new WritableNativeMap(); SerializationUtils.addCommonResultData(jsonResult, result); + jsonResult.putString("additionalAddressInformation", result.getAdditionalAddressInformation()); + jsonResult.putString("additionalNameInformation", result.getAdditionalNameInformation()); jsonResult.putString("address", result.getAddress()); + jsonResult.putString("conditions", result.getConditions()); jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); + jsonResult.putString("documentAdditionalNumber", result.getDocumentAdditionalNumber()); + jsonResult.putInt("documentDataMatch", SerializationUtils.serializeEnum(result.getDocumentDataMatch())); jsonResult.putString("documentNumber", result.getDocumentNumber()); jsonResult.putMap("driverLicenseDetailedInfo", BlinkIDSerializationUtils.serializeDriverLicenseDetailedInfo(result.getDriverLicenseDetailedInfo())); + jsonResult.putString("employer", result.getEmployer()); jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); + jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); + jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); jsonResult.putString("fullName", result.getFullName()); + jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); jsonResult.putString("lastName", result.getLastName()); + jsonResult.putString("maritalStatus", result.getMaritalStatus()); + jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); + jsonResult.putString("nationality", result.getNationality()); + jsonResult.putString("personalIdNumber", result.getPersonalIdNumber()); + jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); + jsonResult.putString("profession", result.getProfession()); + jsonResult.putString("race", result.getRace()); + jsonResult.putString("religion", result.getReligion()); + jsonResult.putString("residentialStatus", result.getResidentialStatus()); jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); jsonResult.putString("sex", result.getSex()); return jsonResult; diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdRecognizerSerialization.java index 7f20e29..32daea3 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdRecognizerSerialization.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BlinkIdRecognizerSerialization.java @@ -33,17 +33,32 @@ public WritableMap serializeResult(Recognizer recognizer) { com.microblink.entities.recognizers.blinkid.generic.BlinkIdRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.generic.BlinkIdRecognizer)recognizer).getResult(); WritableMap jsonResult = new WritableNativeMap(); SerializationUtils.addCommonResultData(jsonResult, result); + jsonResult.putString("additionalAddressInformation", result.getAdditionalAddressInformation()); + jsonResult.putString("additionalNameInformation", result.getAdditionalNameInformation()); jsonResult.putString("address", result.getAddress()); + jsonResult.putString("conditions", result.getConditions()); jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); + jsonResult.putString("documentAdditionalNumber", result.getDocumentAdditionalNumber()); jsonResult.putString("documentNumber", result.getDocumentNumber()); jsonResult.putMap("driverLicenseDetailedInfo", BlinkIDSerializationUtils.serializeDriverLicenseDetailedInfo(result.getDriverLicenseDetailedInfo())); + jsonResult.putString("employer", result.getEmployer()); jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); jsonResult.putString("firstName", result.getFirstName()); jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); jsonResult.putString("fullName", result.getFullName()); + jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); jsonResult.putString("lastName", result.getLastName()); + jsonResult.putString("maritalStatus", result.getMaritalStatus()); + jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); + jsonResult.putString("nationality", result.getNationality()); + jsonResult.putString("personalIdNumber", result.getPersonalIdNumber()); + jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); + jsonResult.putString("profession", result.getProfession()); + jsonResult.putString("race", result.getRace()); + jsonResult.putString("religion", result.getReligion()); + jsonResult.putString("residentialStatus", result.getResidentialStatus()); jsonResult.putString("sex", result.getSex()); return jsonResult; } diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiIdBackRecognizerSerialization.java deleted file mode 100644 index ddefa4e..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiIdBackRecognizerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractRace")) { - recognizer.setExtractRace(jsonRecognizer.getBoolean("extractRace")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("race", result.getRace()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiIdFrontRecognizerSerialization.java deleted file mode 100644 index 01376bc..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiMilitaryIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiMilitaryIdBackRecognizerSerialization.java deleted file mode 100644 index 8a8d7d7..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiMilitaryIdBackRecognizerSerialization.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiMilitaryIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("armyNumber", result.getArmyNumber()); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiMilitaryIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiMilitaryIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiMilitaryIdFrontRecognizerSerialization.java deleted file mode 100644 index 42443e7..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiMilitaryIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiMilitaryIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("extractRank")) { - recognizer.setExtractRank(jsonRecognizer.getBoolean("extractRank")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("rank", result.getRank()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiMilitaryIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiMilitaryIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiResidencePermitBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiResidencePermitBackRecognizerSerialization.java deleted file mode 100644 index ecb627f..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiResidencePermitBackRecognizerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiResidencePermitBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractRace")) { - recognizer.setExtractRace(jsonRecognizer.getBoolean("extractRace")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("race", result.getRace()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiResidencePermitBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiResidencePermitFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiResidencePermitFrontRecognizerSerialization.java deleted file mode 100644 index adc1c00..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiResidencePermitFrontRecognizerSerialization.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiResidencePermitFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiResidencePermitFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiResidencePermitFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiTemporaryResidencePermitBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiTemporaryResidencePermitBackRecognizerSerialization.java deleted file mode 100644 index 07fcb0b..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiTemporaryResidencePermitBackRecognizerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiTemporaryResidencePermitBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractPassportNumber")) { - recognizer.setExtractPassportNumber(jsonRecognizer.getBoolean("extractPassportNumber")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("passportNumber", result.getPassportNumber()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiTemporaryResidencePermitBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiTemporaryResidencePermitFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiTemporaryResidencePermitFrontRecognizerSerialization.java deleted file mode 100644 index d7abc79..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/BruneiTemporaryResidencePermitFrontRecognizerSerialization.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class BruneiTemporaryResidencePermitFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "BruneiTemporaryResidencePermitFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.brunei.BruneiTemporaryResidencePermitFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaDlFrontRecognizerSerialization.java deleted file mode 100644 index 8a9aaec..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class ColombiaDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.colombia.ColombiaDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.colombia.ColombiaDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDriverRestrictions")) { - recognizer.setExtractDriverRestrictions(jsonRecognizer.getBoolean("extractDriverRestrictions")); - } - if (jsonRecognizer.hasKey("extractIssuingAgency")) { - recognizer.setExtractIssuingAgency(jsonRecognizer.getBoolean("extractIssuingAgency")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.colombia.ColombiaDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.colombia.ColombiaDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("driverRestrictions", result.getDriverRestrictions()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuingAgency", result.getIssuingAgency()); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("name", result.getName()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "ColombiaDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.colombia.ColombiaDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaIdBackRecognizerSerialization.java deleted file mode 100644 index 73ec5fa..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaIdBackRecognizerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class ColombiaIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("nullQuietZoneAllowed")) { - recognizer.setNullQuietZoneAllowed(jsonRecognizer.getBoolean("nullQuietZoneAllowed")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("scanUncertain")) { - recognizer.setScanUncertain(jsonRecognizer.getBoolean("scanUncertain")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("birthDate", SerializationUtils.serializeDate(result.getBirthDate())); - jsonResult.putString("bloodGroup", result.getBloodGroup()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("fingerprint", SerializationUtils.encodeByteArrayToBase64(result.getFingerprint())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "ColombiaIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaIdFrontRecognizerSerialization.java deleted file mode 100644 index f297bd3..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ColombiaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class ColombiaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "ColombiaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.colombia.ColombiaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaCombinedRecognizerSerialization.java deleted file mode 100644 index d320e5e..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaCombinedRecognizerSerialization.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CroatiaCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.croatia.CroatiaCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.croatia.CroatiaCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractCitizenship")) { - recognizer.setExtractCitizenship(jsonRecognizer.getBoolean("extractCitizenship")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuedBy")) { - recognizer.setExtractIssuedBy(jsonRecognizer.getBoolean("extractIssuedBy")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("extractResidence")) { - recognizer.setExtractResidence(jsonRecognizer.getBoolean("extractResidence")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.croatia.CroatiaCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.croatia.CroatiaCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("citizenship", result.getCitizenship()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putBoolean("dateOfExpiryPermanent", result.isDateOfExpiryPermanent()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentBilingual", result.isDocumentBilingual()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putBoolean("documentForNonResident", result.isDocumentForNonResident()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("oib", result.getOib()); - jsonResult.putString("residence", result.getResidence()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CroatiaCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.croatia.CroatiaCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaIdBackRecognizerSerialization.java deleted file mode 100644 index 720b557..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaIdBackRecognizerSerialization.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CroatiaIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractIssuedBy")) { - recognizer.setExtractIssuedBy(jsonRecognizer.getBoolean("extractIssuedBy")); - } - if (jsonRecognizer.hasKey("extractResidence")) { - recognizer.setExtractResidence(jsonRecognizer.getBoolean("extractResidence")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putBoolean("dateOfExpiryPermanent", result.isDateOfExpiryPermanent()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putBoolean("documentForNonResident", result.isDocumentForNonResident()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("residence", result.getResidence()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CroatiaIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaIdFrontRecognizerSerialization.java deleted file mode 100644 index 595ab05..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CroatiaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CroatiaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractCitizenship")) { - recognizer.setExtractCitizenship(jsonRecognizer.getBoolean("extractCitizenship")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("citizenship", result.getCitizenship()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putBoolean("dateOfExpiryPermanent", result.isDateOfExpiryPermanent()); - jsonResult.putBoolean("documentBilingual", result.isDocumentBilingual()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CroatiaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.croatia.CroatiaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusIdBackRecognizerSerialization.java deleted file mode 100644 index 3ed7ba1..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusIdBackRecognizerSerialization.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CyprusIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CyprusIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusIdFrontRecognizerSerialization.java deleted file mode 100644 index 7da9042..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CyprusIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("idNumber", result.getIdNumber()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CyprusIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.cyprus.CyprusIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusOldIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusOldIdBackRecognizerSerialization.java deleted file mode 100644 index 0ddcd78..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusOldIdBackRecognizerSerialization.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CyprusOldIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractExpiresOn")) { - recognizer.setExtractExpiresOn(jsonRecognizer.getBoolean("extractExpiresOn")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("expiresOn", SerializationUtils.serializeDate(result.getExpiresOn())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CyprusOldIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusOldIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusOldIdFrontRecognizerSerialization.java deleted file mode 100644 index 8e00d27..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CyprusOldIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CyprusOldIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDocumentNumber")) { - recognizer.setExtractDocumentNumber(jsonRecognizer.getBoolean("extractDocumentNumber")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("idNumber", result.getIdNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CyprusOldIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.cyprus.CyprusOldIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaCombinedRecognizerSerialization.java deleted file mode 100644 index 0859579..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaCombinedRecognizerSerialization.java +++ /dev/null @@ -1,111 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CzechiaCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.czechia.CzechiaCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.czechia.CzechiaCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAuthority")) { - recognizer.setExtractAuthority(jsonRecognizer.getBoolean("extractAuthority")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractPermanentStay")) { - recognizer.setExtractPermanentStay(jsonRecognizer.getBoolean("extractPermanentStay")); - } - if (jsonRecognizer.hasKey("extractPersonalNumber")) { - recognizer.setExtractPersonalNumber(jsonRecognizer.getBoolean("extractPersonalNumber")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.czechia.CzechiaCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.czechia.CzechiaCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("authority", result.getAuthority()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("permanentStay", result.getPermanentStay()); - jsonResult.putString("personalNumber", result.getPersonalNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CzechiaCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.czechia.CzechiaCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaIdBackRecognizerSerialization.java deleted file mode 100644 index 2645c17..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaIdBackRecognizerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CzechiaIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAuthority")) { - recognizer.setExtractAuthority(jsonRecognizer.getBoolean("extractAuthority")); - } - if (jsonRecognizer.hasKey("extractPermanentStay")) { - recognizer.setExtractPermanentStay(jsonRecognizer.getBoolean("extractPermanentStay")); - } - if (jsonRecognizer.hasKey("extractPersonalNumber")) { - recognizer.setExtractPersonalNumber(jsonRecognizer.getBoolean("extractPersonalNumber")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("authority", result.getAuthority()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("permanentStay", result.getPermanentStay()); - jsonResult.putString("personalNumber", result.getPersonalNumber()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CzechiaIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaIdFrontRecognizerSerialization.java deleted file mode 100644 index 64d5d4a..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/CzechiaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class CzechiaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "CzechiaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.czechia.CzechiaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/EgyptIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/EgyptIdFrontRecognizerSerialization.java deleted file mode 100644 index 78351a3..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/EgyptIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class EgyptIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.egypt.EgyptIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.egypt.EgyptIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractNationalNumber")) { - recognizer.setExtractNationalNumber(jsonRecognizer.getBoolean("extractNationalNumber")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.egypt.EgyptIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.egypt.EgyptIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("nationalNumber", result.getNationalNumber()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "EgyptIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.egypt.EgyptIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/EudlRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/EudlRecognizerSerialization.java deleted file mode 100644 index 22d7704..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/EudlRecognizerSerialization.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class EudlRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.eudl.EudlRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.eudl.EudlRecognizer(); - if (jsonRecognizer.hasKey("country")) { - recognizer.setCountry(com.microblink.entities.recognizers.blinkid.eudl.EudlCountry.values()[jsonRecognizer.getInt("country") - 1]); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractPersonalNumber")) { - recognizer.setExtractPersonalNumber(jsonRecognizer.getBoolean("extractPersonalNumber")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.eudl.EudlRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.eudl.EudlRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("birthData", result.getBirthData()); - jsonResult.putInt("country", SerializationUtils.serializeEnum(result.getCountry())); - jsonResult.putString("driverNumber", result.getDriverNumber()); - jsonResult.putMap("expiryDate", SerializationUtils.serializeDate(result.getExpiryDate())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("issueDate", SerializationUtils.serializeDate(result.getIssueDate())); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putString("personalNumber", result.getPersonalNumber()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "EudlRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.eudl.EudlRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyCombinedRecognizerSerialization.java deleted file mode 100644 index ffc1c4b..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyCombinedRecognizerSerialization.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class GermanyCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.germany.GermanyCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractAuthority")) { - recognizer.setExtractAuthority(jsonRecognizer.getBoolean("extractAuthority")); - } - if (jsonRecognizer.hasKey("extractCanNumber")) { - recognizer.setExtractCanNumber(jsonRecognizer.getBoolean("extractCanNumber")); - } - if (jsonRecognizer.hasKey("extractColourOfEyes")) { - recognizer.setExtractColourOfEyes(jsonRecognizer.getBoolean("extractColourOfEyes")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractDocumentNumber")) { - recognizer.setExtractDocumentNumber(jsonRecognizer.getBoolean("extractDocumentNumber")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractHeight")) { - recognizer.setExtractHeight(jsonRecognizer.getBoolean("extractHeight")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.germany.GermanyCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("authority", result.getAuthority()); - jsonResult.putString("canNumber", result.getCanNumber()); - jsonResult.putString("colourOfEyes", result.getColourOfEyes()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putString("height", result.getHeight()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("rawMrzString", result.getRawMrzString()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "GermanyCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.germany.GermanyCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyDlBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyDlBackRecognizerSerialization.java deleted file mode 100644 index 99b64d5..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyDlBackRecognizerSerialization.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class GermanyDlBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyDlBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.germany.GermanyDlBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyDlBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.germany.GermanyDlBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfIssueB10", SerializationUtils.serializeDate(result.getDateOfIssueB10())); - jsonResult.putBoolean("dateOfIssueB10NotSpecified", result.isDateOfIssueB10NotSpecified()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "GermanyDlBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.germany.GermanyDlBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyDlFrontRecognizerSerialization.java deleted file mode 100644 index 892e417..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class GermanyDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.germany.GermanyDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("extractLicenceCategories")) { - recognizer.setExtractLicenceCategories(jsonRecognizer.getBoolean("extractLicenceCategories")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.germany.GermanyDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putString("licenceCategories", result.getLicenceCategories()); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "GermanyDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.germany.GermanyDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdBackRecognizerSerialization.java deleted file mode 100644 index cead7b2..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdBackRecognizerSerialization.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class GermanyIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.germany.GermanyIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractAuthority")) { - recognizer.setExtractAuthority(jsonRecognizer.getBoolean("extractAuthority")); - } - if (jsonRecognizer.hasKey("extractColourOfEyes")) { - recognizer.setExtractColourOfEyes(jsonRecognizer.getBoolean("extractColourOfEyes")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractHeight")) { - recognizer.setExtractHeight(jsonRecognizer.getBoolean("extractHeight")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.germany.GermanyIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("addressCity", result.getAddressCity()); - jsonResult.putString("addressHouseNumber", result.getAddressHouseNumber()); - jsonResult.putString("addressStreet", result.getAddressStreet()); - jsonResult.putString("addressZipCode", result.getAddressZipCode()); - jsonResult.putString("authority", result.getAuthority()); - jsonResult.putString("colourOfEyes", result.getColourOfEyes()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullAddress", result.getFullAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("height", result.getHeight()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "GermanyIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.germany.GermanyIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdFrontRecognizerSerialization.java deleted file mode 100644 index 901d385..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class GermanyIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.germany.GermanyIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractCanNumber")) { - recognizer.setExtractCanNumber(jsonRecognizer.getBoolean("extractCanNumber")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDocumentNumber")) { - recognizer.setExtractDocumentNumber(jsonRecognizer.getBoolean("extractDocumentNumber")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.germany.GermanyIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("canNumber", result.getCanNumber()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "GermanyIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.germany.GermanyIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdOldRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdOldRecognizerSerialization.java deleted file mode 100644 index a731fd1..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyIdOldRecognizerSerialization.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class GermanyIdOldRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyIdOldRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.germany.GermanyIdOldRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyIdOldRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.germany.GermanyIdOldRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "GermanyIdOldRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.germany.GermanyIdOldRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyPassportRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyPassportRecognizerSerialization.java deleted file mode 100644 index b83ab85..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/GermanyPassportRecognizerSerialization.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class GermanyPassportRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyPassportRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.germany.GermanyPassportRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAuthority")) { - recognizer.setExtractAuthority(jsonRecognizer.getBoolean("extractAuthority")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.germany.GermanyPassportRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.germany.GermanyPassportRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("authority", result.getAuthority()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenName", result.getGivenName()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "GermanyPassportRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.germany.GermanyPassportRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/HongKongIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/HongKongIdFrontRecognizerSerialization.java deleted file mode 100644 index 134d2aa..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/HongKongIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class HongKongIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.hongkong.HongKongIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.hongkong.HongKongIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractCommercialCode")) { - recognizer.setExtractCommercialCode(jsonRecognizer.getBoolean("extractCommercialCode")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("extractResidentialStatus")) { - recognizer.setExtractResidentialStatus(jsonRecognizer.getBoolean("extractResidentialStatus")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.hongkong.HongKongIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.hongkong.HongKongIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("commercialCode", result.getCommercialCode()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("residentialStatus", result.getResidentialStatus()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "HongKongIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.hongkong.HongKongIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/IndonesiaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/IndonesiaIdFrontRecognizerSerialization.java deleted file mode 100644 index feb0183..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/IndonesiaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class IndonesiaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.indonesia.IndonesiaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.indonesia.IndonesiaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractBloodType")) { - recognizer.setExtractBloodType(jsonRecognizer.getBoolean("extractBloodType")); - } - if (jsonRecognizer.hasKey("extractCitizenship")) { - recognizer.setExtractCitizenship(jsonRecognizer.getBoolean("extractCitizenship")); - } - if (jsonRecognizer.hasKey("extractCity")) { - recognizer.setExtractCity(jsonRecognizer.getBoolean("extractCity")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDistrict")) { - recognizer.setExtractDistrict(jsonRecognizer.getBoolean("extractDistrict")); - } - if (jsonRecognizer.hasKey("extractKelDesa")) { - recognizer.setExtractKelDesa(jsonRecognizer.getBoolean("extractKelDesa")); - } - if (jsonRecognizer.hasKey("extractMaritalStatus")) { - recognizer.setExtractMaritalStatus(jsonRecognizer.getBoolean("extractMaritalStatus")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractOccupation")) { - recognizer.setExtractOccupation(jsonRecognizer.getBoolean("extractOccupation")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractReligion")) { - recognizer.setExtractReligion(jsonRecognizer.getBoolean("extractReligion")); - } - if (jsonRecognizer.hasKey("extractRt")) { - recognizer.setExtractRt(jsonRecognizer.getBoolean("extractRt")); - } - if (jsonRecognizer.hasKey("extractRw")) { - recognizer.setExtractRw(jsonRecognizer.getBoolean("extractRw")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.indonesia.IndonesiaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.indonesia.IndonesiaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("bloodType", result.getBloodType()); - jsonResult.putString("citizenship", result.getCitizenship()); - jsonResult.putString("city", result.getCity()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putBoolean("dateOfExpiryPermanent", result.isDateOfExpiryPermanent()); - jsonResult.putString("district", result.getDistrict()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("kelDesa", result.getKelDesa()); - jsonResult.putString("maritalStatus", result.getMaritalStatus()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("occupation", result.getOccupation()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("province", result.getProvince()); - jsonResult.putString("religion", result.getReligion()); - jsonResult.putString("rt", result.getRt()); - jsonResult.putString("rw", result.getRw()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "IndonesiaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.indonesia.IndonesiaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/IrelandDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/IrelandDlFrontRecognizerSerialization.java deleted file mode 100644 index 1176074..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/IrelandDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class IrelandDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.ireland.IrelandDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.ireland.IrelandDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuedBy")) { - recognizer.setExtractIssuedBy(jsonRecognizer.getBoolean("extractIssuedBy")); - } - if (jsonRecognizer.hasKey("extractLicenceCategories")) { - recognizer.setExtractLicenceCategories(jsonRecognizer.getBoolean("extractLicenceCategories")); - } - if (jsonRecognizer.hasKey("extractLicenceNumber")) { - recognizer.setExtractLicenceNumber(jsonRecognizer.getBoolean("extractLicenceNumber")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.ireland.IrelandDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.ireland.IrelandDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("driverNumber", result.getDriverNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putString("licenceCategories", result.getLicenceCategories()); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "IrelandDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.ireland.IrelandDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ItalyDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ItalyDlFrontRecognizerSerialization.java deleted file mode 100644 index 676ebb2..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/ItalyDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class ItalyDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.italy.ItalyDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.italy.ItalyDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractLicenceCategories")) { - recognizer.setExtractLicenceCategories(jsonRecognizer.getBoolean("extractLicenceCategories")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.italy.ItalyDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.italy.ItalyDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenName", result.getGivenName()); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putString("licenceCategories", result.getLicenceCategories()); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "ItalyDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.italy.ItalyDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanCombinedRecognizerSerialization.java deleted file mode 100644 index e4413eb..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanCombinedRecognizerSerialization.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class JordanCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.jordan.JordanCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.jordan.JordanCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.jordan.JordanCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.jordan.JordanCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("nationalNumber", result.getNationalNumber()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "JordanCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.jordan.JordanCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanIdBackRecognizerSerialization.java deleted file mode 100644 index 7448028..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanIdBackRecognizerSerialization.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class JordanIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.jordan.JordanIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.jordan.JordanIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.jordan.JordanIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.jordan.JordanIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "JordanIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.jordan.JordanIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanIdFrontRecognizerSerialization.java deleted file mode 100644 index 5c8a1bf..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/JordanIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class JordanIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.jordan.JordanIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.jordan.JordanIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.jordan.JordanIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.jordan.JordanIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("name", result.getName()); - jsonResult.putString("nationalNumber", result.getNationalNumber()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "JordanIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.jordan.JordanIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/KuwaitIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/KuwaitIdBackRecognizerSerialization.java deleted file mode 100644 index f7b398c..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/KuwaitIdBackRecognizerSerialization.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class KuwaitIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractSerialNo")) { - recognizer.setExtractSerialNo(jsonRecognizer.getBoolean("extractSerialNo")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("serialNo", result.getSerialNo()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "KuwaitIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/KuwaitIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/KuwaitIdFrontRecognizerSerialization.java deleted file mode 100644 index 6d5f438..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/KuwaitIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class KuwaitIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractBirthDate")) { - recognizer.setExtractBirthDate(jsonRecognizer.getBoolean("extractBirthDate")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("birthDate", SerializationUtils.serializeDate(result.getBirthDate())); - jsonResult.putString("civilIdNumber", result.getCivilIdNumber()); - jsonResult.putMap("expiryDate", SerializationUtils.serializeDate(result.getExpiryDate())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("name", result.getName()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "KuwaitIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.kuwait.KuwaitIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaDlFrontRecognizerSerialization.java deleted file mode 100644 index dd63399..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MalaysiaDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractClass")) { - recognizer.setExtractClass(jsonRecognizer.getBoolean("extractClass")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractValidFrom")) { - recognizer.setExtractValidFrom(jsonRecognizer.getBoolean("extractValidFrom")); - } - if (jsonRecognizer.hasKey("extractValidUntil")) { - recognizer.setExtractValidUntil(jsonRecognizer.getBoolean("extractValidUntil")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("city", result.getCity()); - jsonResult.putString("dlClass", result.getDlClass()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullAddress", result.getFullAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("identityNumber", result.getIdentityNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("ownerState", result.getOwnerState()); - jsonResult.putString("street", result.getStreet()); - jsonResult.putMap("validFrom", SerializationUtils.serializeDate(result.getValidFrom())); - jsonResult.putMap("validUntil", SerializationUtils.serializeDate(result.getValidUntil())); - jsonResult.putString("zipcode", result.getZipcode()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MalaysiaDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaIkadFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaIkadFrontRecognizerSerialization.java deleted file mode 100644 index 942fd96..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaIkadFrontRecognizerSerialization.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MalaysiaIkadFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaIkadFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaIkadFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractEmployer")) { - recognizer.setExtractEmployer(jsonRecognizer.getBoolean("extractEmployer")); - } - if (jsonRecognizer.hasKey("extractFacultyAddress")) { - recognizer.setExtractFacultyAddress(jsonRecognizer.getBoolean("extractFacultyAddress")); - } - if (jsonRecognizer.hasKey("extractGender")) { - recognizer.setExtractGender(jsonRecognizer.getBoolean("extractGender")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPassportNumber")) { - recognizer.setExtractPassportNumber(jsonRecognizer.getBoolean("extractPassportNumber")); - } - if (jsonRecognizer.hasKey("extractSector")) { - recognizer.setExtractSector(jsonRecognizer.getBoolean("extractSector")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaIkadFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaIkadFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("employer", result.getEmployer()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("facultyAddress", result.getFacultyAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("gender", result.getGender()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("passportNumber", result.getPassportNumber()); - jsonResult.putString("sector", result.getSector()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MalaysiaIkadFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaIkadFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKadBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKadBackRecognizerSerialization.java deleted file mode 100644 index fc76d56..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKadBackRecognizerSerialization.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MalaysiaMyKadBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractOldNric")) { - recognizer.setExtractOldNric(jsonRecognizer.getBoolean("extractOldNric")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("extendedNric", result.getExtendedNric()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("nric", result.getNric()); - jsonResult.putString("oldNric", result.getOldNric()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MalaysiaMyKadBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKadFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKadFrontRecognizerSerialization.java deleted file mode 100644 index cfd5dea..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKadFrontRecognizerSerialization.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MalaysiaMyKadFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractFullNameAndAddress")) { - recognizer.setExtractFullNameAndAddress(jsonRecognizer.getBoolean("extractFullNameAndAddress")); - } - if (jsonRecognizer.hasKey("extractReligion")) { - recognizer.setExtractReligion(jsonRecognizer.getBoolean("extractReligion")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("birthDate", SerializationUtils.serializeDate(result.getBirthDate())); - jsonResult.putString("city", result.getCity()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullAddress", result.getFullAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("nric", result.getNric()); - jsonResult.putString("ownerState", result.getOwnerState()); - jsonResult.putString("religion", result.getReligion()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("street", result.getStreet()); - jsonResult.putString("zipcode", result.getZipcode()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MalaysiaMyKadFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKadFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKasFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKasFrontRecognizerSerialization.java deleted file mode 100644 index bf1c55b..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyKasFrontRecognizerSerialization.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MalaysiaMyKasFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKasFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKasFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractFullNameAndAddress")) { - recognizer.setExtractFullNameAndAddress(jsonRecognizer.getBoolean("extractFullNameAndAddress")); - } - if (jsonRecognizer.hasKey("extractReligion")) { - recognizer.setExtractReligion(jsonRecognizer.getBoolean("extractReligion")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKasFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKasFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("birthDate", SerializationUtils.serializeDate(result.getBirthDate())); - jsonResult.putString("city", result.getCity()); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullAddress", result.getFullAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("nric", result.getNric()); - jsonResult.putString("ownerState", result.getOwnerState()); - jsonResult.putString("religion", result.getReligion()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("street", result.getStreet()); - jsonResult.putString("zipcode", result.getZipcode()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MalaysiaMyKasFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyKasFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyPrFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyPrFrontRecognizerSerialization.java deleted file mode 100644 index e72a935..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyPrFrontRecognizerSerialization.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MalaysiaMyPrFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyPrFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyPrFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractFullNameAndAddress")) { - recognizer.setExtractFullNameAndAddress(jsonRecognizer.getBoolean("extractFullNameAndAddress")); - } - if (jsonRecognizer.hasKey("extractReligion")) { - recognizer.setExtractReligion(jsonRecognizer.getBoolean("extractReligion")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyPrFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyPrFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("birthDate", SerializationUtils.serializeDate(result.getBirthDate())); - jsonResult.putString("city", result.getCity()); - jsonResult.putString("countryCode", result.getCountryCode()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullAddress", result.getFullAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("nric", result.getNric()); - jsonResult.putString("ownerState", result.getOwnerState()); - jsonResult.putString("religion", result.getReligion()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("street", result.getStreet()); - jsonResult.putString("zipcode", result.getZipcode()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MalaysiaMyPrFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyPrFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyTenteraFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyTenteraFrontRecognizerSerialization.java deleted file mode 100644 index 1f098b0..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MalaysiaMyTenteraFrontRecognizerSerialization.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MalaysiaMyTenteraFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyTenteraFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyTenteraFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractFullNameAndAddress")) { - recognizer.setExtractFullNameAndAddress(jsonRecognizer.getBoolean("extractFullNameAndAddress")); - } - if (jsonRecognizer.hasKey("extractReligion")) { - recognizer.setExtractReligion(jsonRecognizer.getBoolean("extractReligion")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyTenteraFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyTenteraFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("armyNumber", result.getArmyNumber()); - jsonResult.putMap("birthDate", SerializationUtils.serializeDate(result.getBirthDate())); - jsonResult.putString("city", result.getCity()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullAddress", result.getFullAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("nric", result.getNric()); - jsonResult.putString("ownerState", result.getOwnerState()); - jsonResult.putString("religion", result.getReligion()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("street", result.getStreet()); - jsonResult.putString("zipcode", result.getZipcode()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MalaysiaMyTenteraFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.malaysia.MalaysiaMyTenteraFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MexicoVoterIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MexicoVoterIdFrontRecognizerSerialization.java deleted file mode 100644 index 320e7a4..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MexicoVoterIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MexicoVoterIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.mexico.MexicoVoterIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.mexico.MexicoVoterIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractCurp")) { - recognizer.setExtractCurp(jsonRecognizer.getBoolean("extractCurp")); - } - if (jsonRecognizer.hasKey("extractFullName")) { - recognizer.setExtractFullName(jsonRecognizer.getBoolean("extractFullName")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.mexico.MexicoVoterIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.mexico.MexicoVoterIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("curp", result.getCurp()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("electorKey", result.getElectorKey()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("fullName", result.getFullName()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MexicoVoterIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.mexico.MexicoVoterIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MoroccoIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MoroccoIdBackRecognizerSerialization.java deleted file mode 100644 index 7c97783..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MoroccoIdBackRecognizerSerialization.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MoroccoIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractCivilStatusNumber")) { - recognizer.setExtractCivilStatusNumber(jsonRecognizer.getBoolean("extractCivilStatusNumber")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractFathersName")) { - recognizer.setExtractFathersName(jsonRecognizer.getBoolean("extractFathersName")); - } - if (jsonRecognizer.hasKey("extractMothersName")) { - recognizer.setExtractMothersName(jsonRecognizer.getBoolean("extractMothersName")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("civilStatusNumber", result.getCivilStatusNumber()); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("fathersName", result.getFathersName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("mothersName", result.getMothersName()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MoroccoIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MoroccoIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MoroccoIdFrontRecognizerSerialization.java deleted file mode 100644 index eaf18c5..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MoroccoIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class MoroccoIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("name", result.getName()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "MoroccoIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.morocco.MoroccoIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MrtdCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MrtdCombinedRecognizerSerialization.java index 8464741..cc2d489 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MrtdCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/MrtdCombinedRecognizerSerialization.java @@ -53,7 +53,7 @@ public WritableMap serializeResult(Recognizer recognizer) { SerializationUtils.addCommonResultData(jsonResult, result); jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); + jsonResult.putInt("documentDataMatch", SerializationUtils.serializeEnum(result.getDocumentDataMatch())); jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/NewZealandDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/NewZealandDlFrontRecognizerSerialization.java deleted file mode 100644 index 6ed8746..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/NewZealandDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class NewZealandDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.newzealand.NewZealandDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.newzealand.NewZealandDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractDonorIndicator")) { - recognizer.setExtractDonorIndicator(jsonRecognizer.getBoolean("extractDonorIndicator")); - } - if (jsonRecognizer.hasKey("extractFirstNames")) { - recognizer.setExtractFirstNames(jsonRecognizer.getBoolean("extractFirstNames")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.newzealand.NewZealandDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.newzealand.NewZealandDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("cardVersion", result.getCardVersion()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putBoolean("donorIndicator", result.isDonorIndicator()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstNames", result.getFirstNames()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("licenseNumber", result.getLicenseNumber()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "NewZealandDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.newzealand.NewZealandDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/NigeriaVoterIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/NigeriaVoterIdBackRecognizerSerialization.java deleted file mode 100644 index cdddd15..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/NigeriaVoterIdBackRecognizerSerialization.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class NigeriaVoterIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.nigeria.NigeriaVoterIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.nigeria.NigeriaVoterIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.nigeria.NigeriaVoterIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.nigeria.NigeriaVoterIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("rawBarcodeData", result.getRawBarcodeData()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "NigeriaVoterIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.nigeria.NigeriaVoterIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/Pdf417RecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/Pdf417RecognizerSerialization.java deleted file mode 100644 index 5ec6499..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/Pdf417RecognizerSerialization.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class Pdf417RecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkbarcode.pdf417.Pdf417Recognizer recognizer = new com.microblink.entities.recognizers.blinkbarcode.pdf417.Pdf417Recognizer(); - if (jsonRecognizer.hasKey("nullQuietZoneAllowed")) { - recognizer.setNullQuietZoneAllowed(jsonRecognizer.getBoolean("nullQuietZoneAllowed")); - } - if (jsonRecognizer.hasKey("scanInverse")) { - recognizer.setScanInverse(jsonRecognizer.getBoolean("scanInverse")); - } - if (jsonRecognizer.hasKey("scanUncertain")) { - recognizer.setScanUncertain(jsonRecognizer.getBoolean("scanUncertain")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkbarcode.pdf417.Pdf417Recognizer.Result result = ((com.microblink.entities.recognizers.blinkbarcode.pdf417.Pdf417Recognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putInt("barcodeType", SerializationUtils.serializeEnum(result.getBarcodeType())); - jsonResult.putString("rawData", SerializationUtils.encodeByteArrayToBase64(result.getRawData())); - jsonResult.putString("stringData", result.getStringData()); - jsonResult.putBoolean("uncertain", result.isUncertain()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "Pdf417Recognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkbarcode.pdf417.Pdf417Recognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandCombinedRecognizerSerialization.java deleted file mode 100644 index b96a07e..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandCombinedRecognizerSerialization.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class PolandCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.poland.PolandCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.poland.PolandCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFamilyName")) { - recognizer.setExtractFamilyName(jsonRecognizer.getBoolean("extractFamilyName")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractParentsGivenNames")) { - recognizer.setExtractParentsGivenNames(jsonRecognizer.getBoolean("extractParentsGivenNames")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.poland.PolandCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.poland.PolandCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("familyName", result.getFamilyName()); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("parentsGivenNames", result.getParentsGivenNames()); - jsonResult.putString("personalNumber", result.getPersonalNumber()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "PolandCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.poland.PolandCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandIdBackRecognizerSerialization.java deleted file mode 100644 index 09ea448..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandIdBackRecognizerSerialization.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class PolandIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.poland.PolandIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.poland.PolandIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.poland.PolandIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.poland.PolandIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "PolandIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.poland.PolandIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandIdFrontRecognizerSerialization.java deleted file mode 100644 index a87aa84..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/PolandIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class PolandIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.poland.PolandIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.poland.PolandIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFamilyName")) { - recognizer.setExtractFamilyName(jsonRecognizer.getBoolean("extractFamilyName")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractParentsGivenNames")) { - recognizer.setExtractParentsGivenNames(jsonRecognizer.getBoolean("extractParentsGivenNames")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.poland.PolandIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.poland.PolandIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("familyName", result.getFamilyName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putString("parentsGivenNames", result.getParentsGivenNames()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "PolandIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.poland.PolandIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/RomaniaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/RomaniaIdFrontRecognizerSerialization.java deleted file mode 100644 index f71c62c..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/RomaniaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class RomaniaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.romania.RomaniaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.romania.RomaniaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuedBy")) { - recognizer.setExtractIssuedBy(jsonRecognizer.getBoolean("extractIssuedBy")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.romania.RomaniaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.romania.RomaniaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("cnpNumber", result.getCnpNumber()); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("parentName", result.getParentName()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "RomaniaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.romania.RomaniaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SimNumberRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SimNumberRecognizerSerialization.java deleted file mode 100644 index b24bc34..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SimNumberRecognizerSerialization.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SimNumberRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkbarcode.simnumber.SimNumberRecognizer recognizer = new com.microblink.entities.recognizers.blinkbarcode.simnumber.SimNumberRecognizer(); - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkbarcode.simnumber.SimNumberRecognizer.Result result = ((com.microblink.entities.recognizers.blinkbarcode.simnumber.SimNumberRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("simNumber", result.getSimNumber()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SimNumberRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkbarcode.simnumber.SimNumberRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeChangiEmployeeIdRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeChangiEmployeeIdRecognizerSerialization.java deleted file mode 100644 index 9fca056..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeChangiEmployeeIdRecognizerSerialization.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SingaporeChangiEmployeeIdRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeChangiEmployeeIdRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.singapore.SingaporeChangiEmployeeIdRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractCompanyName")) { - recognizer.setExtractCompanyName(jsonRecognizer.getBoolean("extractCompanyName")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeChangiEmployeeIdRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.singapore.SingaporeChangiEmployeeIdRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("companyName", result.getCompanyName()); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("name", result.getName()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SingaporeChangiEmployeeIdRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.singapore.SingaporeChangiEmployeeIdRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeCombinedRecognizerSerialization.java deleted file mode 100644 index 41be8d5..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeCombinedRecognizerSerialization.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SingaporeCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.singapore.SingaporeCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractAddressChangeDate")) { - recognizer.setExtractAddressChangeDate(jsonRecognizer.getBoolean("extractAddressChangeDate")); - } - if (jsonRecognizer.hasKey("extractBloodGroup")) { - recognizer.setExtractBloodGroup(jsonRecognizer.getBoolean("extractBloodGroup")); - } - if (jsonRecognizer.hasKey("extractCountryOfBirth")) { - recognizer.setExtractCountryOfBirth(jsonRecognizer.getBoolean("extractCountryOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractRace")) { - recognizer.setExtractRace(jsonRecognizer.getBoolean("extractRace")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.singapore.SingaporeCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("addressChangeDate", SerializationUtils.serializeDate(result.getAddressChangeDate())); - jsonResult.putString("bloodGroup", result.getBloodGroup()); - jsonResult.putString("countryOfBirth", result.getCountryOfBirth()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("identityCardNumber", result.getIdentityCardNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("race", result.getRace()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SingaporeCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.singapore.SingaporeCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeDlFrontRecognizerSerialization.java deleted file mode 100644 index 946c2f5..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SingaporeDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.singapore.SingaporeDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractBirthDate")) { - recognizer.setExtractBirthDate(jsonRecognizer.getBoolean("extractBirthDate")); - } - if (jsonRecognizer.hasKey("extractIssueDate")) { - recognizer.setExtractIssueDate(jsonRecognizer.getBoolean("extractIssueDate")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractValidTill")) { - recognizer.setExtractValidTill(jsonRecognizer.getBoolean("extractValidTill")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.singapore.SingaporeDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("birthDate", SerializationUtils.serializeDate(result.getBirthDate())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("issueDate", SerializationUtils.serializeDate(result.getIssueDate())); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putMap("validTill", SerializationUtils.serializeDate(result.getValidTill())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SingaporeDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.singapore.SingaporeDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeIdBackRecognizerSerialization.java deleted file mode 100644 index 60a9613..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeIdBackRecognizerSerialization.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SingaporeIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractAddressChangeDate")) { - recognizer.setExtractAddressChangeDate(jsonRecognizer.getBoolean("extractAddressChangeDate")); - } - if (jsonRecognizer.hasKey("extractBloodGroup")) { - recognizer.setExtractBloodGroup(jsonRecognizer.getBoolean("extractBloodGroup")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("addressChangeDate", SerializationUtils.serializeDate(result.getAddressChangeDate())); - jsonResult.putString("bloodGroup", result.getBloodGroup()); - jsonResult.putString("cardNumber", result.getCardNumber()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SingaporeIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeIdFrontRecognizerSerialization.java deleted file mode 100644 index 4c357e1..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SingaporeIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SingaporeIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractCountryOfBirth")) { - recognizer.setExtractCountryOfBirth(jsonRecognizer.getBoolean("extractCountryOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractRace")) { - recognizer.setExtractRace(jsonRecognizer.getBoolean("extractRace")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("countryOfBirth", result.getCountryOfBirth()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("identityCardNumber", result.getIdentityCardNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("race", result.getRace()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SingaporeIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.singapore.SingaporeIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaCombinedRecognizerSerialization.java deleted file mode 100644 index 847361d..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaCombinedRecognizerSerialization.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SlovakiaCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractDocumentNumber")) { - recognizer.setExtractDocumentNumber(jsonRecognizer.getBoolean("extractDocumentNumber")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuedBy")) { - recognizer.setExtractIssuedBy(jsonRecognizer.getBoolean("extractIssuedBy")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSpecialRemarks")) { - recognizer.setExtractSpecialRemarks(jsonRecognizer.getBoolean("extractSpecialRemarks")); - } - if (jsonRecognizer.hasKey("extractSurnameAtBirth")) { - recognizer.setExtractSurnameAtBirth(jsonRecognizer.getBoolean("extractSurnameAtBirth")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("personalNumber", result.getPersonalNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("specialRemarks", result.getSpecialRemarks()); - jsonResult.putString("surnameAtBirth", result.getSurnameAtBirth()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SlovakiaCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaIdBackRecognizerSerialization.java deleted file mode 100644 index 1165ded..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaIdBackRecognizerSerialization.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SlovakiaIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSpecialRemarks")) { - recognizer.setExtractSpecialRemarks(jsonRecognizer.getBoolean("extractSpecialRemarks")); - } - if (jsonRecognizer.hasKey("extractSurnameAtBirth")) { - recognizer.setExtractSurnameAtBirth(jsonRecognizer.getBoolean("extractSurnameAtBirth")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("specialRemarks", result.getSpecialRemarks()); - jsonResult.putString("surnameAtBirth", result.getSurnameAtBirth()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SlovakiaIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaIdFrontRecognizerSerialization.java deleted file mode 100644 index b3b1401..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SlovakiaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SlovakiaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractDocumentNumber")) { - recognizer.setExtractDocumentNumber(jsonRecognizer.getBoolean("extractDocumentNumber")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuedBy")) { - recognizer.setExtractIssuedBy(jsonRecognizer.getBoolean("extractIssuedBy")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuedBy", result.getIssuedBy()); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("personalNumber", result.getPersonalNumber()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SlovakiaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.slovakia.SlovakiaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaCombinedRecognizerSerialization.java deleted file mode 100644 index ab0b0c8..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaCombinedRecognizerSerialization.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SloveniaCombinedRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.slovenia.SloveniaCombinedRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.slovenia.SloveniaCombinedRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractAdministrativeUnit")) { - recognizer.setExtractAdministrativeUnit(jsonRecognizer.getBoolean("extractAdministrativeUnit")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signResult")) { - recognizer.setSignResult(jsonRecognizer.getBoolean("signResult")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.slovenia.SloveniaCombinedRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.slovenia.SloveniaCombinedRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("administrativeUnit", result.getAdministrativeUnit()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putBoolean("dateOfExpiryPermanent", result.isDateOfExpiryPermanent()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); - jsonResult.putInt("digitalSignatureVersion", (int)result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); - jsonResult.putString("documentNumber", result.getDocumentNumber()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentBackImage", SerializationUtils.encodeImageBase64(result.getFullDocumentBackImage())); - jsonResult.putString("fullDocumentFrontImage", SerializationUtils.encodeImageBase64(result.getFullDocumentFrontImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putBoolean("mrzVerified", result.isMrzVerified()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("pin", result.getPin()); - jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SloveniaCombinedRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.slovenia.SloveniaCombinedRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaIdBackRecognizerSerialization.java deleted file mode 100644 index e9b7f50..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaIdBackRecognizerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SloveniaIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAddress")) { - recognizer.setExtractAddress(jsonRecognizer.getBoolean("extractAddress")); - } - if (jsonRecognizer.hasKey("extractAdministrativeUnit")) { - recognizer.setExtractAdministrativeUnit(jsonRecognizer.getBoolean("extractAdministrativeUnit")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("address", result.getAddress()); - jsonResult.putString("administrativeUnit", result.getAdministrativeUnit()); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SloveniaIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaIdFrontRecognizerSerialization.java deleted file mode 100644 index 4e8cef4..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SloveniaIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SloveniaIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractGivenNames")) { - recognizer.setExtractGivenNames(jsonRecognizer.getBoolean("extractGivenNames")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putBoolean("dateOfExpiryPermanent", result.isDateOfExpiryPermanent()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenNames", result.getGivenNames()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SloveniaIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.slovenia.SloveniaIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SpainDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SpainDlFrontRecognizerSerialization.java deleted file mode 100644 index 27e0261..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SpainDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SpainDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.spain.SpainDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.spain.SpainDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractLicenceCategories")) { - recognizer.setExtractLicenceCategories(jsonRecognizer.getBoolean("extractLicenceCategories")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("extractValidFrom")) { - recognizer.setExtractValidFrom(jsonRecognizer.getBoolean("extractValidFrom")); - } - if (jsonRecognizer.hasKey("extractValidUntil")) { - recognizer.setExtractValidUntil(jsonRecognizer.getBoolean("extractValidUntil")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.spain.SpainDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.spain.SpainDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putString("licenceCategories", result.getLicenceCategories()); - jsonResult.putString("number", result.getNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - jsonResult.putMap("validFrom", SerializationUtils.serializeDate(result.getValidFrom())); - jsonResult.putMap("validUntil", SerializationUtils.serializeDate(result.getValidUntil())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SpainDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.spain.SpainDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwedenDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwedenDlFrontRecognizerSerialization.java deleted file mode 100644 index 020a48a..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwedenDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SwedenDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.sweden.SwedenDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.sweden.SwedenDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractIssuingAgency")) { - recognizer.setExtractIssuingAgency(jsonRecognizer.getBoolean("extractIssuingAgency")); - } - if (jsonRecognizer.hasKey("extractLicenceCategories")) { - recognizer.setExtractLicenceCategories(jsonRecognizer.getBoolean("extractLicenceCategories")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractReferenceNumber")) { - recognizer.setExtractReferenceNumber(jsonRecognizer.getBoolean("extractReferenceNumber")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.sweden.SwedenDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.sweden.SwedenDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuingAgency", result.getIssuingAgency()); - jsonResult.putString("licenceCategories", result.getLicenceCategories()); - jsonResult.putString("licenceNumber", result.getLicenceNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("referenceNumber", result.getReferenceNumber()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SwedenDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.sweden.SwedenDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandDlFrontRecognizerSerialization.java deleted file mode 100644 index 8c0c5fd..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SwitzerlandDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractFirstName")) { - recognizer.setExtractFirstName(jsonRecognizer.getBoolean("extractFirstName")); - } - if (jsonRecognizer.hasKey("extractIssuingAuthority")) { - recognizer.setExtractIssuingAuthority(jsonRecognizer.getBoolean("extractIssuingAuthority")); - } - if (jsonRecognizer.hasKey("extractLastName")) { - recognizer.setExtractLastName(jsonRecognizer.getBoolean("extractLastName")); - } - if (jsonRecognizer.hasKey("extractPlaceOfBirth")) { - recognizer.setExtractPlaceOfBirth(jsonRecognizer.getBoolean("extractPlaceOfBirth")); - } - if (jsonRecognizer.hasKey("extractVehicleCategories")) { - recognizer.setExtractVehicleCategories(jsonRecognizer.getBoolean("extractVehicleCategories")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putBoolean("expiryDatePermanent", result.isExpiryDatePermanent()); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("firstName", result.getFirstName()); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("issuingAuthority", result.getIssuingAuthority()); - jsonResult.putString("lastName", result.getLastName()); - jsonResult.putString("licenseNumber", result.getLicenseNumber()); - jsonResult.putString("placeOfBirth", result.getPlaceOfBirth()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("vehicleCategories", result.getVehicleCategories()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SwitzerlandDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandIdBackRecognizerSerialization.java deleted file mode 100644 index 4b78a5c..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandIdBackRecognizerSerialization.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SwitzerlandIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAuthority")) { - recognizer.setExtractAuthority(jsonRecognizer.getBoolean("extractAuthority")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractHeight")) { - recognizer.setExtractHeight(jsonRecognizer.getBoolean("extractHeight")); - } - if (jsonRecognizer.hasKey("extractPlaceOfOrigin")) { - recognizer.setExtractPlaceOfOrigin(jsonRecognizer.getBoolean("extractPlaceOfOrigin")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("authority", result.getAuthority()); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("height", result.getHeight()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("placeOfOrigin", result.getPlaceOfOrigin()); - jsonResult.putString("sex", result.getSex()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SwitzerlandIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandIdFrontRecognizerSerialization.java deleted file mode 100644 index f40449c..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SwitzerlandIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - if (jsonRecognizer.hasKey("returnSignatureImage")) { - recognizer.setReturnSignatureImage(jsonRecognizer.getBoolean("returnSignatureImage")); - } - if (jsonRecognizer.hasKey("signatureImageDpi")) { - recognizer.setSignatureImageDpi(jsonRecognizer.getInt("signatureImageDpi")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenName", result.getGivenName()); - jsonResult.putString("signatureImage", SerializationUtils.encodeImageBase64(result.getSignatureImage())); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SwitzerlandIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandPassportRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandPassportRecognizerSerialization.java deleted file mode 100644 index a96d10b..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/SwitzerlandPassportRecognizerSerialization.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class SwitzerlandPassportRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandPassportRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandPassportRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractAuthority")) { - recognizer.setExtractAuthority(jsonRecognizer.getBoolean("extractAuthority")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractDateOfExpiry")) { - recognizer.setExtractDateOfExpiry(jsonRecognizer.getBoolean("extractDateOfExpiry")); - } - if (jsonRecognizer.hasKey("extractDateOfIssue")) { - recognizer.setExtractDateOfIssue(jsonRecognizer.getBoolean("extractDateOfIssue")); - } - if (jsonRecognizer.hasKey("extractGivenName")) { - recognizer.setExtractGivenName(jsonRecognizer.getBoolean("extractGivenName")); - } - if (jsonRecognizer.hasKey("extractHeight")) { - recognizer.setExtractHeight(jsonRecognizer.getBoolean("extractHeight")); - } - if (jsonRecognizer.hasKey("extractPassportNumber")) { - recognizer.setExtractPassportNumber(jsonRecognizer.getBoolean("extractPassportNumber")); - } - if (jsonRecognizer.hasKey("extractPlaceOfOrigin")) { - recognizer.setExtractPlaceOfOrigin(jsonRecognizer.getBoolean("extractPlaceOfOrigin")); - } - if (jsonRecognizer.hasKey("extractSex")) { - recognizer.setExtractSex(jsonRecognizer.getBoolean("extractSex")); - } - if (jsonRecognizer.hasKey("extractSurname")) { - recognizer.setExtractSurname(jsonRecognizer.getBoolean("extractSurname")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandPassportRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandPassportRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("authority", result.getAuthority()); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("dateOfExpiry", SerializationUtils.serializeDate(result.getDateOfExpiry())); - jsonResult.putMap("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("givenName", result.getGivenName()); - jsonResult.putString("height", result.getHeight()); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - jsonResult.putString("passportNumber", result.getPassportNumber()); - jsonResult.putString("placeOfOrigin", result.getPlaceOfOrigin()); - jsonResult.putString("sex", result.getSex()); - jsonResult.putString("surname", result.getSurname()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "SwitzerlandPassportRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.switzerland.SwitzerlandPassportRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesDlFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesDlFrontRecognizerSerialization.java deleted file mode 100644 index f7cb57a..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesDlFrontRecognizerSerialization.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class UnitedArabEmiratesDlFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesDlFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesDlFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractDateOfBirth")) { - recognizer.setExtractDateOfBirth(jsonRecognizer.getBoolean("extractDateOfBirth")); - } - if (jsonRecognizer.hasKey("extractIssueDate")) { - recognizer.setExtractIssueDate(jsonRecognizer.getBoolean("extractIssueDate")); - } - if (jsonRecognizer.hasKey("extractLicenseNumber")) { - recognizer.setExtractLicenseNumber(jsonRecognizer.getBoolean("extractLicenseNumber")); - } - if (jsonRecognizer.hasKey("extractLicensingAuthority")) { - recognizer.setExtractLicensingAuthority(jsonRecognizer.getBoolean("extractLicensingAuthority")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("extractPlaceOfIssue")) { - recognizer.setExtractPlaceOfIssue(jsonRecognizer.getBoolean("extractPlaceOfIssue")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesDlFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesDlFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putMap("dateOfBirth", SerializationUtils.serializeDate(result.getDateOfBirth())); - jsonResult.putMap("expiryDate", SerializationUtils.serializeDate(result.getExpiryDate())); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("issueDate", SerializationUtils.serializeDate(result.getIssueDate())); - jsonResult.putString("licenseNumber", result.getLicenseNumber()); - jsonResult.putString("licensingAuthority", result.getLicensingAuthority()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("nationality", result.getNationality()); - jsonResult.putString("placeOfIssue", result.getPlaceOfIssue()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "UnitedArabEmiratesDlFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesDlFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesIdBackRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesIdBackRecognizerSerialization.java deleted file mode 100644 index 03df311..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesIdBackRecognizerSerialization.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class UnitedArabEmiratesIdBackRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdBackRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdBackRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdBackRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdBackRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putMap("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult())); - return jsonResult; - } - - @Override - public String getJsonName() { - return "UnitedArabEmiratesIdBackRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdBackRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesIdFrontRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesIdFrontRecognizerSerialization.java deleted file mode 100644 index 5b6bd49..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UnitedArabEmiratesIdFrontRecognizerSerialization.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class UnitedArabEmiratesIdFrontRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdFrontRecognizer recognizer = new com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdFrontRecognizer(); - if (jsonRecognizer.hasKey("detectGlare")) { - recognizer.setDetectGlare(jsonRecognizer.getBoolean("detectGlare")); - } - if (jsonRecognizer.hasKey("extractName")) { - recognizer.setExtractName(jsonRecognizer.getBoolean("extractName")); - } - if (jsonRecognizer.hasKey("extractNationality")) { - recognizer.setExtractNationality(jsonRecognizer.getBoolean("extractNationality")); - } - if (jsonRecognizer.hasKey("faceImageDpi")) { - recognizer.setFaceImageDpi(jsonRecognizer.getInt("faceImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageDpi")) { - recognizer.setFullDocumentImageDpi(jsonRecognizer.getInt("fullDocumentImageDpi")); - } - if (jsonRecognizer.hasKey("fullDocumentImageExtensionFactors")) { - recognizer.setFullDocumentImageExtensionFactors(BlinkIDSerializationUtils.deserializeExtensionFactors(jsonRecognizer.getMap("fullDocumentImageExtensionFactors"))); - } - if (jsonRecognizer.hasKey("returnFaceImage")) { - recognizer.setReturnFaceImage(jsonRecognizer.getBoolean("returnFaceImage")); - } - if (jsonRecognizer.hasKey("returnFullDocumentImage")) { - recognizer.setReturnFullDocumentImage(jsonRecognizer.getBoolean("returnFullDocumentImage")); - } - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdFrontRecognizer.Result result = ((com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdFrontRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); - jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); - jsonResult.putString("idNumber", result.getIdNumber()); - jsonResult.putString("name", result.getName()); - jsonResult.putString("nationality", result.getNationality()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "UnitedArabEmiratesIdFrontRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkid.unitedArabEmirates.UnitedArabEmiratesIdFrontRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UsdlCombinedRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UsdlCombinedRecognizerSerialization.java index 9ac8d26..c878093 100644 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UsdlCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/UsdlCombinedRecognizerSerialization.java @@ -45,7 +45,7 @@ public WritableMap serializeResult(Recognizer recognizer) { SerializationUtils.addCommonResultData(jsonResult, result); jsonResult.putString("digitalSignature", SerializationUtils.encodeByteArrayToBase64(result.getDigitalSignature())); jsonResult.putInt("digitalSignatureVersion", (int) result.getDigitalSignatureVersion()); - jsonResult.putBoolean("documentDataMatch", result.isDocumentDataMatch()); + jsonResult.putInt("documentDataMatch", SerializationUtils.serializeEnum(result.getDocumentDataMatch())); jsonResult.putString("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage())); jsonResult.putString("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage())); jsonResult.putBoolean("scanningFirstSideDone", result.isScanningFirstSideDone()); diff --git a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/VinRecognizerSerialization.java b/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/VinRecognizerSerialization.java deleted file mode 100644 index 4c65172..0000000 --- a/BlinkID/src/android/src/main/java/com/microblink/reactnative/recognizers/serialization/VinRecognizerSerialization.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.microblink.reactnative.recognizers.serialization; - -import com.facebook.react.bridge.ReadableMap; -import com.facebook.react.bridge.WritableMap; -import com.facebook.react.bridge.WritableNativeMap; -import com.microblink.entities.recognizers.Recognizer; -import com.microblink.reactnative.recognizers.RecognizerSerialization; - -public final class VinRecognizerSerialization implements RecognizerSerialization { - @Override - public Recognizer createRecognizer(ReadableMap jsonRecognizer) { - com.microblink.entities.recognizers.blinkbarcode.vin.VinRecognizer recognizer = new com.microblink.entities.recognizers.blinkbarcode.vin.VinRecognizer(); - return recognizer; - } - - @Override - public WritableMap serializeResult(Recognizer recognizer) { - com.microblink.entities.recognizers.blinkbarcode.vin.VinRecognizer.Result result = ((com.microblink.entities.recognizers.blinkbarcode.vin.VinRecognizer)recognizer).getResult(); - WritableMap jsonResult = new WritableNativeMap(); - SerializationUtils.addCommonResultData(jsonResult, result); - jsonResult.putString("vin", result.getVin()); - return jsonResult; - } - - @Override - public String getJsonName() { - return "VinRecognizer"; - } - - @Override - public Class getRecognizerClass() { - return com.microblink.entities.recognizers.blinkbarcode.vin.VinRecognizer.class; - } -} \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule.xcodeproj/project.pbxproj b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule.xcodeproj/project.pbxproj index 6acebe2..007d386 100644 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule.xcodeproj/project.pbxproj +++ b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule.xcodeproj/project.pbxproj @@ -7,238 +7,53 @@ objects = { /* Begin PBXBuildFile section */ - 006846F687A2CE8277516BD8 /* MBRecognizerSerializers.m in Sources */ = {isa = PBXBuildFile; fileRef = 09C54EF1AC84CCC066FACE37 /* MBRecognizerSerializers.m */; }; - 015246BE9A518C7CD755342B /* MBKuwaitIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = B628414E9EFA438ACECFF1E2 /* MBKuwaitIdFrontRecognizerWrapper.m */; }; - 02254778B7C10A8CFB7EF5F2 /* MBSwitzerlandPassportRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = EE59460D93084248E6D7002B /* MBSwitzerlandPassportRecognizerWrapper.h */; }; - 02EB41C797315F0650C1468F /* MBGermanyIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 529E4043B26E991E67937002 /* MBGermanyIdBackRecognizerWrapper.m */; }; - 042C4DF4820FF8BAF95DF5F3 /* MBVinRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F2A423597889599D5E3C434 /* MBVinRecognizerWrapper.h */; }; - 0731404F911CD715F19367AB /* MBSingaporeIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D99498B827D9D444A360D21 /* MBSingaporeIdFrontRecognizerWrapper.h */; }; - 078A4F708E28F9AEC89CDBF0 /* MBMalaysiaMyKadBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 3436457AB6504D84E5C4B187 /* MBMalaysiaMyKadBackRecognizerWrapper.h */; }; - 07C14B53B865E9AC613EED37 /* MBDocumentOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B0E4B96AE1BE95F3B1B8F93 /* MBDocumentOverlaySettingsSerialization.m */; }; - 08AA4603829F7AEDA97217BF /* MBGermanyIdOldRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 1D4045799E4EF5AD6DC3CAE0 /* MBGermanyIdOldRecognizerWrapper.h */; }; - 0CBA4CF1BC81C3968FF415C7 /* MBBelgiumIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 038A449084417A9066DCAC5B /* MBBelgiumIdBackRecognizerWrapper.m */; }; - 0E084F339F0E7C8EE2619E07 /* MBRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B294E4A84949648AA3BBB58 /* MBRecognizerWrapper.m */; }; - 0EBB405DB716D9CCDCB6D5A4 /* MBAustriaIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D3A04994BD9ECD6A309D26B9 /* MBAustriaIdBackRecognizerWrapper.h */; }; - 112B418582C5A7EE0AE022CA /* MBBlinkCardRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 1DCE4248A61D7F50519A7AF3 /* MBBlinkCardRecognizerWrapper.h */; }; - 11F44079B26BC079EDED83CF /* MBAustriaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 6D4A4533A3C9A1501E112131 /* MBAustriaIdFrontRecognizerWrapper.h */; }; - 13254AADB7349644DB232D56 /* MBVisaRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 6FB0483C90160BDEC464F941 /* MBVisaRecognizerWrapper.h */; }; - 14F54524B3A46E13BE494B73 /* MBCzechiaCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 301F4AFFA9C026717E3335D0 /* MBCzechiaCombinedRecognizerWrapper.h */; }; - 153F4996A87A7B0FA09B52DE /* MBBlinkCardOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F954BC59A441F2BB66C7EFB /* MBBlinkCardOverlaySettingsSerialization.m */; }; - 16FF4E2C94177D08BFAF5E48 /* MBPolandCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A2F4A028AAEEE6A6F27411C /* MBPolandCombinedRecognizerWrapper.h */; }; - 178A471B956D2CB795AC5175 /* MBMalaysiaMyPrFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 19A34800978C386D30449F37 /* MBMalaysiaMyPrFrontRecognizerWrapper.m */; }; - 18E446BAB2D5175C5E16D8F8 /* MBCzechiaIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 645D4680AB34F4DB1E561963 /* MBCzechiaIdBackRecognizerWrapper.m */; }; - 19DB4C32BC7CBAB68B2F799D /* MBSingaporeChangiEmployeeIdRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = FAFE443B88507C04F0F94A8E /* MBSingaporeChangiEmployeeIdRecognizerWrapper.m */; }; - 1AE14DB0AB88F71AAC42E56A /* MBMalaysiaDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 374849D782EA3FB56ED35C7B /* MBMalaysiaDlFrontRecognizerWrapper.h */; }; - 1B0D4EED953D46DD334D58D3 /* MBMoroccoIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 26554978ACC28D579C21AFE2 /* MBMoroccoIdFrontRecognizerWrapper.h */; }; - 1D934B8E9318041B2EBC7E5F /* MBDocumentFaceRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = E06D4615B3B30EB498B3F53F /* MBDocumentFaceRecognizerWrapper.h */; }; - 1DF94C64895E70C66545D384 /* MBRecognizerSerializers.h in Headers */ = {isa = PBXBuildFile; fileRef = 4DEA4B8EB2D40CE9C73A178E /* MBRecognizerSerializers.h */; }; - 1F7D49ECB53C928285F72B78 /* MBOverlayViewControllerDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 43BC4D54B75360D4AE40043D /* MBOverlayViewControllerDelegate.h */; }; - 1F9443768F9A2082044AF8F6 /* MBPassportRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D8747F48A8F2B29970B268B /* MBPassportRecognizerWrapper.h */; }; - 206D4AE0A8256898037D541D /* MBSwitzerlandIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D4A543B0BE465305F7651A65 /* MBSwitzerlandIdBackRecognizerWrapper.h */; }; - 243F491386815FB17E2C1C2B /* MBPassportRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 56804C22910487ADBD93F2BA /* MBPassportRecognizerWrapper.m */; }; - 24964CBAB781666ECEEE7D28 /* MBSlovakiaCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C4EC4E1E9959CD34A461CD14 /* MBSlovakiaCombinedRecognizerWrapper.m */; }; - 24CA4E1C904D7FC528B93D74 /* MBVinRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 01BB4364A918056E0503D007 /* MBVinRecognizerWrapper.m */; }; - 258D46D995CBE28979FC167B /* MBBelgiumIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = BB2641FCAB7874190F7AA131 /* MBBelgiumIdFrontRecognizerWrapper.h */; }; - 25DF46FD97B5DACFF7EE9EBA /* MBSpainDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = A6D946A7BF1C3BDFBB727673 /* MBSpainDlFrontRecognizerWrapper.h */; }; - 27E14B978DF1A8AB7A2D1A25 /* MBJordanCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = E8D2450DABEF99AF6EAF1615 /* MBJordanCombinedRecognizerWrapper.m */; }; - 28D849EB95C00B1850F1D8F2 /* MBEgyptIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D31642A9A2E7BB7090BFE877 /* MBEgyptIdFrontRecognizerWrapper.h */; }; - 292A446D9F6885834E9C1E82 /* MBAustriaDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C894647B1B83ED97A9D14A7 /* MBAustriaDlFrontRecognizerWrapper.m */; }; - 297B4C3F8CB48669B4FC4A6D /* MBBelgiumCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = E0504591AE4DF3522607544C /* MBBelgiumCombinedRecognizerWrapper.m */; }; - 2C4A45E18CE8D04C8E77904C /* MBUsdlRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 092040F691FEA5EC822CC1F0 /* MBUsdlRecognizerWrapper.m */; }; - 2C954431BC01B66C4501611C /* MBAustraliaDlBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 6A754EACBFA3AA16653BECE5 /* MBAustraliaDlBackRecognizerWrapper.h */; }; - 2E134C2BB209DFE5C85B0F61 /* MBSwedenDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 78C5453FB28886508E2103B2 /* MBSwedenDlFrontRecognizerWrapper.h */; }; - 33C64BE599A8AEC8C8FE1462 /* MBMexicoVoterIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 4AF64A97913065F0681F9299 /* MBMexicoVoterIdFrontRecognizerWrapper.h */; }; - 364B427E964F2DFC2CD18136 /* MBIrelandDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D4B846F5B1E1A4785F4689A2 /* MBIrelandDlFrontRecognizerWrapper.h */; }; - 38034F2E955068219AFA2D59 /* MBJordanIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 57A04B36B9C6DBA3C792271B /* MBJordanIdBackRecognizerWrapper.h */; }; - 38BC441A9DFCAF7FFA01EC2C /* MBSloveniaCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = F8154B0FB2E0E404547D0335 /* MBSloveniaCombinedRecognizerWrapper.h */; }; - 3A054D378D690FC656BB5723 /* MBGermanyPassportRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FE74454BD0C76B6670A412E /* MBGermanyPassportRecognizerWrapper.m */; }; - 3BD5408C9017DBFC2CB18A96 /* MBPdf417RecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = D98F469296433696FFDDE545 /* MBPdf417RecognizerWrapper.m */; }; - 3C9545EEB0108A74C134D254 /* MBSingaporeDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A77496188FCB0C7E64B5546 /* MBSingaporeDlFrontRecognizerWrapper.m */; }; - 3EF24CDB995211727D133721 /* MBBruneiIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 311249479CA7FEC55E0069A7 /* MBBruneiIdFrontRecognizerWrapper.h */; }; - 410D4602A6583DBB0BAC26E8 /* MBSlovakiaCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DFC94E90935ECBD7B863F312 /* MBSlovakiaCombinedRecognizerWrapper.h */; }; - 417A49B2A2E6C355FA506320 /* MBGermanyIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 141A4C4BB758880FE0C485BB /* MBGermanyIdFrontRecognizerWrapper.h */; }; - 420447FB9435B54E7F488017 /* MBSerializationUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 76FA4D3C807D7299ADCB1564 /* MBSerializationUtils.m */; }; - 427A4144BA5667EBD62A4A91 /* MBCyprusOldIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = BAA94E7EAA4C9B166B12C424 /* MBCyprusOldIdBackRecognizerWrapper.m */; }; - 435D442DA17A429878470B76 /* MBMicroblinkModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 52AA40D0AD30DD5BD5B0AC79 /* MBMicroblinkModule.h */; }; - 43C34FE4BFAC1E2846E479F8 /* MBMoroccoIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B7A47BAAAA6C9480EF5C57D /* MBMoroccoIdBackRecognizerWrapper.h */; }; - 46C9422DB3870BF0F9A1EE99 /* MBMalaysiaIkadFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = CE554B6A8FAF31F22F8C82B7 /* MBMalaysiaIkadFrontRecognizerWrapper.h */; }; - 46F943719B67D496D3D205BE /* MBDocumentOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 61D949B29B2C03633524BD18 /* MBDocumentOverlaySettingsSerialization.h */; }; - 47D644A2BAB9981E745F5AB2 /* MBItalyDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = B3884FF5BD9E8691F5406D7A /* MBItalyDlFrontRecognizerWrapper.m */; }; - 47F744ED85E7995D9B0EA700 /* MBSuccessFrameGrabberRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FE343B59B732C611750186B /* MBSuccessFrameGrabberRecognizerWrapper.m */; }; - 4835445AA817B0F8CBB99422 /* MBBlinkIdOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = B7E84CE8881AE877AEEECFA0 /* MBBlinkIdOverlaySettingsSerialization.m */; }; - 48354A7FA7DF2ED298883A06 /* MBBelgiumCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = FDA64717B795098024784248 /* MBBelgiumCombinedRecognizerWrapper.h */; }; - 4850478EAE114B4D68EB4A5A /* MBAustriaDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = C6074FE380FF6770C0D90732 /* MBAustriaDlFrontRecognizerWrapper.h */; }; - 49F943949AE0694812ABFB00 /* MBBruneiResidencePermitBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 57FA4AE1BB394BC3861C145A /* MBBruneiResidencePermitBackRecognizerWrapper.m */; }; - 4A90482DB2DEB5E1DCB97404 /* MBBruneiResidencePermitFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 9E0F4B169B11F71AB8B96F41 /* MBBruneiResidencePermitFrontRecognizerWrapper.h */; }; - 4B024D74AC83C50E3F5AD838 /* MBKuwaitIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C11A478F9031B2D22DB3CBC4 /* MBKuwaitIdBackRecognizerWrapper.m */; }; - 4B0D4AEF99272E2AB19D2DE3 /* MBSingaporeCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = E36443508009A1788229BAA4 /* MBSingaporeCombinedRecognizerWrapper.m */; }; - 4BC74994AB011E25E49B7A40 /* MBAustraliaDlBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0F99479991912400D32991F8 /* MBAustraliaDlBackRecognizerWrapper.m */; }; - 4C1346E5BFD0720B06C80F41 /* MBGermanyIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 23A04F38BAD44668F5BB5670 /* MBGermanyIdFrontRecognizerWrapper.m */; }; - 4C5847AF8C0B20F017DB45A5 /* MBColombiaDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A10491FB7CD875302724772 /* MBColombiaDlFrontRecognizerWrapper.m */; }; - 4D354913A76782098A75856F /* MBJordanCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 156D4E5DAFD84D63041D1D06 /* MBJordanCombinedRecognizerWrapper.h */; }; - 4EBD444D83DFC8541B91F7FB /* MBSwitzerlandDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = A632499791FF3A6DCE77C3B5 /* MBSwitzerlandDlFrontRecognizerWrapper.h */; }; - 4F3B417F9241943B7B651C80 /* MBVisaRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7C374D2E93513A6C6DFDD031 /* MBVisaRecognizerWrapper.m */; }; - 4FC84845A57AF783918FE24B /* MBSingaporeIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 93884F2E90B2B1A83E212340 /* MBSingaporeIdBackRecognizerWrapper.h */; }; - 51C94021B7940E85D34B2836 /* MBBlinkCardEliteRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C618484C96142FD9B9764A32 /* MBBlinkCardEliteRecognizerWrapper.m */; }; - 54094379A3F04374767D204B /* MBMoroccoIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 102C445B94A37905874FA1A7 /* MBMoroccoIdBackRecognizerWrapper.m */; }; - 54B1448088EE271A18654DCD /* MBCroatiaIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCE49BEB4FBF61562518A3F /* MBCroatiaIdBackRecognizerWrapper.h */; }; - 55464DD5BBE5D917786C6683 /* MBColombiaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 59AD4F54B92DA898CC749057 /* MBColombiaIdFrontRecognizerWrapper.h */; }; - 56494B67AD730B61595B6DA2 /* MBSloveniaIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = EFFE476AB0EEF6494E13A727 /* MBSloveniaIdBackRecognizerWrapper.m */; }; - 56774CFCA930410B7FF3A2F1 /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = A084429190E2ACA0B2A44180 /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h */; }; - 56D345F493DFC2991FD94562 /* MBGermanyDlBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 78934AB5AD7DDCC1E99F0FE9 /* MBGermanyDlBackRecognizerWrapper.m */; }; - 56FE49AE9A4143CA9CFA7ECB /* MBBlinkCardEliteRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F3A4764BF19EDA85CE5D6F1 /* MBBlinkCardEliteRecognizerWrapper.h */; }; - 5949407CBE580CDFB07A6FA8 /* MBSwitzerlandPassportRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 809B4CB8901C05162E5D8265 /* MBSwitzerlandPassportRecognizerWrapper.m */; }; - 59594CD69B5364BD92D50DB3 /* MBColombiaDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = A5EB4EBFA7809B52882C816B /* MBColombiaDlFrontRecognizerWrapper.h */; }; - 59D94038AB11699C9427E8CD /* MBUsdlRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 79FC4AD49877F2B2FE6C45EF /* MBUsdlRecognizerWrapper.h */; }; - 5A4B4968AF2AEEF0CFF55931 /* MBIndonesiaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = A77941899BF2C2AF05D1A876 /* MBIndonesiaIdFrontRecognizerWrapper.h */; }; - 5ADB45D5BC91F193384DAFC8 /* MBAustriaPassportRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 076046D78D64EA9BDFDD1CC9 /* MBAustriaPassportRecognizerWrapper.h */; }; - 5BB2418DB74476DA07EE918C /* MBCzechiaCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C42491986D1306170F09A90 /* MBCzechiaCombinedRecognizerWrapper.m */; }; - 5C7F4733ADE758D5D72AF92B /* MBCyprusOldIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DFFB4687ABFCF87A0DD57857 /* MBCyprusOldIdBackRecognizerWrapper.h */; }; - 5CCC4971A02D3FA573F729A5 /* MBMalaysiaMyKasFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 282F4779AD9FCF2C541F8C04 /* MBMalaysiaMyKasFrontRecognizerWrapper.h */; }; - 5F294A81ABCB5DF563E00625 /* MBSingaporeChangiEmployeeIdRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 06734E88B3EE809C942F8EB9 /* MBSingaporeChangiEmployeeIdRecognizerWrapper.h */; }; - 5F494AF8B8DBEA3C13DC1C53 /* MBJordanIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 220C4BC2BAD5C67A17FFC3AF /* MBJordanIdFrontRecognizerWrapper.h */; }; - 5F674CA0B095B8959F246BDD /* MBSloveniaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = FAFE42D3824CDCB634F143F7 /* MBSloveniaIdFrontRecognizerWrapper.m */; }; - 60484B9EB4D34820DC8B1A99 /* MBPolandCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C8A4362B86CE245885A23E5 /* MBPolandCombinedRecognizerWrapper.m */; }; - 615E420BA1DB5983A3E2B5E1 /* MBSlovakiaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = C4C34E51A9F6A5A0959A4AC0 /* MBSlovakiaIdFrontRecognizerWrapper.h */; }; - 63C54BC1B6D6741C87303D1C /* MBAustriaIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D3B48A0BEC27CCE90A1B093 /* MBAustriaIdBackRecognizerWrapper.m */; }; - 67A14DF4B5F4DF0880F8F93A /* MBAustriaPassportRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A6154455A57595B6083FF6E5 /* MBAustriaPassportRecognizerWrapper.m */; }; - 690A44A5BBB35A2CB6A75B90 /* MBBruneiIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 78D64B6D987E64521D5CF735 /* MBBruneiIdFrontRecognizerWrapper.m */; }; - 6B2F4D60B8703942B8C14D97 /* MBSwitzerlandDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = F0C0497284F980D708F276D1 /* MBSwitzerlandDlFrontRecognizerWrapper.m */; }; - 6C8844049572E229242A22FD /* MBMrtdCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F3142A2BD22DBADEEBB461E /* MBMrtdCombinedRecognizerWrapper.h */; }; - 6D424539945F646BCF57EE91 /* MBEudlRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BEB4078AFBC49055BAF16E9 /* MBEudlRecognizerWrapper.h */; }; - 6DE34A69A3DB4A73A4DB6184 /* MBRomaniaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4EC745EE9A2620BD21DA475A /* MBRomaniaIdFrontRecognizerWrapper.m */; }; - 6E9F4647BE462E7321E00AD2 /* MBCzechiaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 51B846A9ACE0D23FA7C9D309 /* MBCzechiaIdFrontRecognizerWrapper.m */; }; - 6F464E4B8DA9F580AEC519FF /* MBCyprusIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = F11D480B8058E79F9F2E953D /* MBCyprusIdBackRecognizerWrapper.h */; }; - 722544F6BC4E77131B4BFAE9 /* MBAustriaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 62C1463684C3631C2F9542E2 /* MBAustriaIdFrontRecognizerWrapper.m */; }; - 7510430B84075B6DD60D41F7 /* MBSlovakiaIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0EC94A07AE78EFB52A001C6B /* MBSlovakiaIdBackRecognizerWrapper.m */; }; - 75314A2DB2A0A7E469A5C6B9 /* MBCroatiaIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = DC51425AB1345C3284ECA315 /* MBCroatiaIdBackRecognizerWrapper.m */; }; - 77304DD4A32D3BA4B9D5E9D4 /* MBCroatiaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EB244B78546A8754DA6371F /* MBCroatiaIdFrontRecognizerWrapper.m */; }; - 77734B4082383004EF0E3F2E /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 752042AC90E743313F2C8767 /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.m */; }; - 77A4488685695605D9BCEA50 /* MBBlinkIdRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 59794EAABAD296E48B93C5BD /* MBBlinkIdRecognizerWrapper.h */; }; - 77C9409196F6E02F0531B450 /* MBMexicoVoterIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 04E040C89248D52645024CBC /* MBMexicoVoterIdFrontRecognizerWrapper.m */; }; - 7B104511976AB20AB5932274 /* MBBarcodeRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A85C4E629018AB1171002417 /* MBBarcodeRecognizerWrapper.m */; }; - 7BB5498A9BBD95EF226B5040 /* MBMalaysiaMyKasFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 08234C219192F8960ACF20DC /* MBMalaysiaMyKasFrontRecognizerWrapper.m */; }; - 7C2D4232B28982E99CD45CD1 /* MBMalaysiaMyPrFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 637A48AAAB8B5C30F6DEDB0D /* MBMalaysiaMyPrFrontRecognizerWrapper.h */; }; - 7D1741B5BB371FB4A9847AA3 /* MBUnitedArabEmiratesIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 77D04ACD8DB78CF08BC4DE81 /* MBUnitedArabEmiratesIdBackRecognizerWrapper.h */; }; - 7D394E41950773ED41C952EF /* MBSloveniaIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 3AF04B8FB9E8E66C74265864 /* MBSloveniaIdBackRecognizerWrapper.h */; }; - 7D5844CEA4326EB5166745D5 /* MBSlovakiaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 93954C64B18ACE1964B80012 /* MBSlovakiaIdFrontRecognizerWrapper.m */; }; - 7E304532938774DC2E5C8446 /* MBGermanyDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = B23949E9AFDBE9C41675807A /* MBGermanyDlFrontRecognizerWrapper.m */; }; - 7F344A87B37E77A470359F47 /* MBGermanyDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = BEC445C1A3D1CDFC58ABDAC0 /* MBGermanyDlFrontRecognizerWrapper.h */; }; - 7F6B45AAACBE9AF135AE5202 /* MBSingaporeDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AE0420ABFA5B9CEF8C82AA6 /* MBSingaporeDlFrontRecognizerWrapper.h */; }; - 7F7D474B9ED24B3076674237 /* MBSwitzerlandIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FE94450B7B1CC6447386225 /* MBSwitzerlandIdBackRecognizerWrapper.m */; }; - 81B04923AA2ADA95F050F8A5 /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 45984B3FA6322D8EA74CDCF2 /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.m */; }; - 836640A58B7A7A4402A81698 /* MBBruneiMilitaryIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D40E40AFB80D7F1F12FF393F /* MBBruneiMilitaryIdFrontRecognizerWrapper.h */; }; - 84BC41C4B10B1F4084D4B1E9 /* MBSimNumberRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A9CB4839BA804C9FB89B7CE2 /* MBSimNumberRecognizerWrapper.m */; }; - 84BD460EB7E08CDF4AB99C50 /* MBBruneiMilitaryIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 36664015BDFBA320513CFCE0 /* MBBruneiMilitaryIdBackRecognizerWrapper.h */; }; - 86B14BDF80CE5B0F5BE991B7 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C35447D829EF8F08FFC3CA3 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m */; }; - 86EF403797BEFFB4C1BE0CEC /* MBBlinkIdCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FAB4126BFF1C38BDE251FCC /* MBBlinkIdCombinedRecognizerWrapper.m */; }; - 889E4BD091B614E71461E48E /* MBGermanyIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 9136461E9F0304591D6505E9 /* MBGermanyIdBackRecognizerWrapper.h */; }; - 89694C36BB7B96D50B9C64C8 /* MBColombiaIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = E2284FB0AB3ECFB0D5FDDBF6 /* MBColombiaIdBackRecognizerWrapper.h */; }; - 8A4B423C972D47F6D0C45731 /* MBMalaysiaMyTenteraFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C7645ACB76B6E0420902DEF /* MBMalaysiaMyTenteraFrontRecognizerWrapper.m */; }; - 8C014E5D8071446B14A6451D /* MBBruneiIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 330E4FC7A8D4EBF83FD28A65 /* MBBruneiIdBackRecognizerWrapper.m */; }; - 8CED4983A4FBFE30ED4124FD /* MBMalaysiaMyKadBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 55FD4A519CC95C0439350F2F /* MBMalaysiaMyKadBackRecognizerWrapper.m */; }; - 8E534579B08D92018C5D31B4 /* MBSingaporeCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DFA44B779CAFCFC2A4FE2F7E /* MBSingaporeCombinedRecognizerWrapper.h */; }; - 8F404E7DA50A44CBC894E480 /* MBPolandIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 56154101A553ED10A92CEE71 /* MBPolandIdBackRecognizerWrapper.m */; }; - 90434D35983231801B372C0E /* MBBruneiIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 36724C3C8275090D00B6E035 /* MBBruneiIdBackRecognizerWrapper.h */; }; - 90AD4D05B9124E2AEA1AF3EE /* MBUsdlCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DE9143C587C9F86755553C04 /* MBUsdlCombinedRecognizerWrapper.h */; }; - 90E747EC951E07CFF3D708EC /* MBOverlaySerializationUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = C5794157A1A1F895E0547425 /* MBOverlaySerializationUtils.h */; }; - 92EA4C9FBDEC41D77FFF02E7 /* MBBruneiMilitaryIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C0034A148D5C84789D974267 /* MBBruneiMilitaryIdFrontRecognizerWrapper.m */; }; - 93AD410DA03A85C9253D8FBD /* MBJordanIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = F80843E0BF02C592AFA88C7B /* MBJordanIdBackRecognizerWrapper.m */; }; - 970A432B8FC2F8832E551250 /* MBDocumentFaceRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 73FA473FA529F094AB8F56F1 /* MBDocumentFaceRecognizerWrapper.m */; }; - 982B49EBB0751DB5D2AFD5C1 /* MBMalaysiaIkadFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = FB424AA9B5FB0EB5042FA08C /* MBMalaysiaIkadFrontRecognizerWrapper.m */; }; - 993F466C8961D5DEED4F89F9 /* MBBruneiMilitaryIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB14CF8A4E6242CB0B7909E /* MBBruneiMilitaryIdBackRecognizerWrapper.m */; }; - 9A554CE5BAD4F52102C19740 /* MBBlinkIDSerializationUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 45A8415B8CA30FEDE61AC3F4 /* MBBlinkIDSerializationUtils.h */; }; - 9B3C413189BD740BCC313A6B /* MBOverlaySerializationUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A954A9899D8906294FEA8EE /* MBOverlaySerializationUtils.m */; }; - 9DAC4CE3A8ECEBD488FBC549 /* MBCzechiaIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 123246749645A7E5672F4BC9 /* MBCzechiaIdBackRecognizerWrapper.h */; }; - A14945BC9DAE05B39BD05BFB /* MBMalaysiaDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A3FA4BF6BA522C0DF4C0CA74 /* MBMalaysiaDlFrontRecognizerWrapper.m */; }; - A1A54A42B9324925EFE7BAC8 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 11F04DF2BE506DAE13898F38 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h */; }; - A1E647B0915124ECA9BD14DA /* MBSimNumberRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 116F48EDB57672A977F937C2 /* MBSimNumberRecognizerWrapper.h */; }; + 11D4452F9C37B52603C634A5 /* MBUsdlRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DD6B4209B9EF8C2AD22FD07B /* MBUsdlRecognizerWrapper.h */; }; + 135E420D9D89F1067E9695C4 /* MBVisaRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = FB2046A1BFA5623819EEB18F /* MBVisaRecognizerWrapper.m */; }; + 165043C588AEE7D4CD7D4C3A /* MBOverlaySettingsSerializers.m in Sources */ = {isa = PBXBuildFile; fileRef = F34B44A0B91320E0AA916151 /* MBOverlaySettingsSerializers.m */; }; + 1A8344D7867A127FFBDF701B /* MBMrtdCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = BD254E0DAD6B2432CFB3812D /* MBMrtdCombinedRecognizerWrapper.h */; }; + 1AA74851B7F5DF1301126B5D /* MBMrtdRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = CCF9420689AB44BD8707E7FA /* MBMrtdRecognizerWrapper.m */; }; + 1CF74EFCAE13300CEB40044F /* MBSuccessFrameGrabberRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = ACD042F8858DE5CE1209AA43 /* MBSuccessFrameGrabberRecognizerWrapper.m */; }; + 1E674699B8CC40D54780687F /* MBUsdlCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = D09E47D5B8857FF8DF573ECF /* MBUsdlCombinedRecognizerWrapper.m */; }; + 22EB4C199BAF99B7BF6226D6 /* MBOverlaySettingsSerializers.h in Headers */ = {isa = PBXBuildFile; fileRef = 38024202A7E3074E49F6E1FC /* MBOverlaySettingsSerializers.h */; }; + 26F546BC9F4DCD183FDAD401 /* MBRecognizerSerializers.m in Sources */ = {isa = PBXBuildFile; fileRef = EA6741B8B0E278F5FE506F53 /* MBRecognizerSerializers.m */; }; + 2B604D3DAA96F1987B6734E3 /* MBPassportRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 709E4F91AE7A6823479F3522 /* MBPassportRecognizerWrapper.h */; }; + 309C4354A576906748A10980 /* MBBlinkIdCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = DB60478C86E84B3E0AEEDF6D /* MBBlinkIdCombinedRecognizerWrapper.m */; }; + 32C44C31945529EB76EAB228 /* MBMicroblinkModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 841B4F3183A2B13B87FB42CF /* MBMicroblinkModule.m */; }; + 36A546EE8837B75BC9F7F827 /* MBVisaRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 53FE42D9BF07D81893573ACE /* MBVisaRecognizerWrapper.h */; }; + 3E1C45A29350E5FB17D562C3 /* MBRecognizerSerializers.h in Headers */ = {isa = PBXBuildFile; fileRef = 32B64604A25996AE9EC1BF1D /* MBRecognizerSerializers.h */; }; + 401F494EAFF7532D33CB6D4C /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = 7C6442248A78CF313028F14D /* .gitignore */; }; + 41E54F5C87EDAF2AE457B608 /* MBUsdlCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = CAFF4B9C9BCDD1D4825B0C6A /* MBUsdlCombinedRecognizerWrapper.h */; }; + 47F542B5B4CE00C2E299BFD1 /* MBSerializationUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = E5284ED7914ECEBC7CD111E0 /* MBSerializationUtils.m */; }; + 49CB4815B6FC3CEAE424F261 /* MBBlinkIDSerializationUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 15EC4FF2BC9AA4874BED3502 /* MBBlinkIDSerializationUtils.h */; }; + 4B8243E78FECFD542A4CC7A1 /* MBBlinkIdOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = EA9B40F9954509AFBC6579A9 /* MBBlinkIdOverlaySettingsSerialization.h */; }; + 4C0D4A908C52BD8DDBE788C5 /* MBRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 4CFF464E81237A1ADFDD4C83 /* MBRecognizerWrapper.h */; }; + 5B914698A70B6405C7AE0B64 /* MBDocumentOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 87FE41AA9AF76194BE81BE58 /* MBDocumentOverlaySettingsSerialization.m */; }; + 5D5E4014A8498F5E9704CC32 /* MBOverlayViewControllerDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 11874CE88BBAF4BE61B63CAD /* MBOverlayViewControllerDelegate.h */; }; + 626B496084A7F76374CBA493 /* MBOverlaySerializationUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 85144A7FBCEDFAB521F67EF0 /* MBOverlaySerializationUtils.h */; }; + 6A3844079D59A34E730A0BD5 /* MBBlinkIdRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B9B421396C11A0036F6CE2B /* MBBlinkIdRecognizerWrapper.m */; }; + 6A88420F8E07FE8D8DDFA07B /* MBDocumentFaceRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C4DE485C9A3B0DD1A9DB3C49 /* MBDocumentFaceRecognizerWrapper.m */; }; + 88FD40EBBF30821E6C79D3D0 /* MBDocumentVerificationOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 079B40C7944365C8D07F15F0 /* MBDocumentVerificationOverlaySettingsSerialization.h */; }; + 947D4C4E9AAD454961239FFB /* MBRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = FC714BC8BFE8903333CBE0A6 /* MBRecognizerWrapper.m */; }; + 951C497EA3D3FE7CA62FF23E /* MBDocumentVerificationOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = AE53498A92BEFCBB025689C9 /* MBDocumentVerificationOverlaySettingsSerialization.m */; }; + 959845AA9E8C8FBB613B7A3A /* MBBlinkIdRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 3140419C9B83A1E97EEB0C8A /* MBBlinkIdRecognizerWrapper.h */; }; + 96DF42FD82E45B848A6B3FC2 /* MBSerializationUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B474A33BCEBDCA9A58BD8DA /* MBSerializationUtils.h */; }; + 9BC04874BB093B9D037A472C /* MBPassportRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = B190437EAABCD2CCF3220CE1 /* MBPassportRecognizerWrapper.m */; }; A27CCA401E9E5D8D00BED675 /* Accelerate.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A27CCA3A1E9E57CF00BED675 /* Accelerate.framework */; }; A27CCA421E9E5D9400BED675 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A27CCA411E9E5D9400BED675 /* CoreFoundation.framework */; }; A27CCA431E9E5D9900BED675 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A27CCA381E9E57C900BED675 /* AudioToolbox.framework */; }; A27CCA441E9E5DAE00BED675 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A27CCA3E1E9E57DA00BED675 /* CoreMedia.framework */; }; - A2D54098A319B6B40FAF28F3 /* MBMicroblinkModule.m in Sources */ = {isa = PBXBuildFile; fileRef = AD5F486DBC0694D44A05988A /* MBMicroblinkModule.m */; }; - A3D24DD0B9651B1115A68AED /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = EAAA48A493E9850C9F38E25D /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.h */; }; - A52C4FAE872C93D6CB19451F /* MBGermanyDlBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = BF0041AAB18B2570BD568777 /* MBGermanyDlBackRecognizerWrapper.h */; }; - A7FB4B7DA29B2C3D043B17E3 /* MBBlinkCardRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = AEE848C7BFA26E10842BB413 /* MBBlinkCardRecognizerWrapper.m */; }; - A8124D728864B4B4D1F14AC1 /* MBOverlaySettingsSerializers.m in Sources */ = {isa = PBXBuildFile; fileRef = DC7148648CBD4C6405C0147C /* MBOverlaySettingsSerializers.m */; }; - A9D241339A409632D1F17E18 /* MBEgyptIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 013841C0947007BC26FCBE90 /* MBEgyptIdFrontRecognizerWrapper.m */; }; - A9ED4104BE297CE15832F816 /* MBBarcodeOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 9C414C8EB965EE5CE5D24E74 /* MBBarcodeOverlaySettingsSerialization.h */; }; - ABEE4A209D5B745EE3C2EE60 /* MBNewZealandDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D0BB4B09926D4CD45D5B8254 /* MBNewZealandDlFrontRecognizerWrapper.h */; }; - AE124DF2A5B0AC17FA49D939 /* MBCyprusIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 269A4B6EA92C75A8B71EED6B /* MBCyprusIdBackRecognizerWrapper.m */; }; - AED64E83B8FA5EF84608CFA7 /* MBCyprusOldIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 685F4903A74273FC641FAFA0 /* MBCyprusOldIdFrontRecognizerWrapper.h */; }; - B0A147A3B59C507235183F67 /* MBHongKongIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D1C445B98737F83078D47B7 /* MBHongKongIdFrontRecognizerWrapper.h */; }; - B0B44810BB185E38ED112208 /* MBBruneiResidencePermitFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A94A4C209E836BC11FAE1E77 /* MBBruneiResidencePermitFrontRecognizerWrapper.m */; }; - B0E84923904F8F8753D52B81 /* MBPolandIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A1E84C9E9CF8725B637D3B66 /* MBPolandIdFrontRecognizerWrapper.m */; }; - B35B43CCA60254FEC75B53F6 /* MBIrelandDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 711045F79EAF72909D404844 /* MBIrelandDlFrontRecognizerWrapper.m */; }; - B3AA4D43BB400DFE9912A357 /* MBMalaysiaMyTenteraFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D28249B29D85D47CEFDB3011 /* MBMalaysiaMyTenteraFrontRecognizerWrapper.h */; }; - B3FC48CC89EEAC3CBB4AB478 /* MBAustraliaDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = E7744F47A8A8B23424AEBD1A /* MBAustraliaDlFrontRecognizerWrapper.m */; }; - B4204FF68CED9E5CDF5A00CE /* MBRomaniaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 96824827AAF1E009FF51C68B /* MBRomaniaIdFrontRecognizerWrapper.h */; }; - B4E6428DADC25FF2B11E2F71 /* MBPolandIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D8D3462A83939FDB8D004186 /* MBPolandIdBackRecognizerWrapper.h */; }; - B4F4449B8A055AB0A6FB190B /* MBOverlayVCCreator.h in Headers */ = {isa = PBXBuildFile; fileRef = ACFB4043ACD03F4F56F5BF89 /* MBOverlayVCCreator.h */; }; - B6604279B8F4B5D697E7659F /* MBBlinkCardOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 172E4549BF23D7279C9F5AC4 /* MBBlinkCardOverlaySettingsSerialization.h */; }; - B83B4AEE9120930EF00312CA /* MBSloveniaCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4A464C76A5C1FF496148DAC7 /* MBSloveniaCombinedRecognizerWrapper.m */; }; - BAA64E0CBF1FAB162022B88F /* MBKuwaitIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 62954762BE7AA43CDF4BD66F /* MBKuwaitIdBackRecognizerWrapper.h */; }; - BACD4B118677B75AAD05A91A /* MBBelgiumIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 2ECB4E38930A110246124E5A /* MBBelgiumIdFrontRecognizerWrapper.m */; }; - BB0E4BF3810EBB250A09B658 /* MBSerializationUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 1DD9424689EE1B07EA87FA37 /* MBSerializationUtils.h */; }; - BBF241908F82912419CC424D /* MBBlinkIdOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = 01774F659767954A2681C75F /* MBBlinkIdOverlaySettingsSerialization.h */; }; - BE134074A2B4F8CC6F499A0F /* MBMrtdCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C07A4968BC1EE61FEB30D792 /* MBMrtdCombinedRecognizerWrapper.m */; }; - BE424A44A5D36BD03E6FE5DF /* MBCyprusOldIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C174004B910B9BD5437161E /* MBCyprusOldIdFrontRecognizerWrapper.m */; }; - BEA542759F03CC551ED47CFF /* MBRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D4DA454E92AE573343DFD328 /* MBRecognizerWrapper.h */; }; - C16549CC989772B4D2E75616 /* MBColombiaIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = A60C4335A431F5C4A9520060 /* MBColombiaIdBackRecognizerWrapper.m */; }; - C25442BF88EB85C8F13FB32D /* MBHongKongIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 038B410BA73D6CC6D38B294E /* MBHongKongIdFrontRecognizerWrapper.m */; }; - C2E94DA4AF324E51581AD051 /* MBCyprusIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = B0484CF8A09BFA6F82A2203A /* MBCyprusIdFrontRecognizerWrapper.h */; }; - C6E34826B882356050944B8D /* MBJordanIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = BA8A4941AD6C60EC9F497C80 /* MBJordanIdFrontRecognizerWrapper.m */; }; - C74E4CC9BCBF15C97753E089 /* MBKuwaitIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 9F9F4A40B5606D254519C6EC /* MBKuwaitIdFrontRecognizerWrapper.h */; }; - C77E4CCB920031CD1FA1844A /* MBSloveniaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = B3BF4A33AAB40A077E189E5F /* MBSloveniaIdFrontRecognizerWrapper.h */; }; - C9C040FB8A169A0943AACB1A /* MBSlovakiaIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 54BC45238AF46B5C62F67551 /* MBSlovakiaIdBackRecognizerWrapper.h */; }; - CBB446B6A8FC82F88733431D /* MBSingaporeIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D7242B596BF8750EFC239B1 /* MBSingaporeIdFrontRecognizerWrapper.m */; }; - CE3E45B7A2D955E5E8A83AF8 /* MBSpainDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 10994F44BA93FB89654394B4 /* MBSpainDlFrontRecognizerWrapper.m */; }; - CEC744C4818A0A2D37431279 /* MBMalaysiaMyKadFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 1BF5462CAE68463ACE17E0ED /* MBMalaysiaMyKadFrontRecognizerWrapper.h */; }; - CF574A4DAB84A5D402A187AC /* MBCzechiaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DAD94CCE80FF92CE71BE3FEF /* MBCzechiaIdFrontRecognizerWrapper.h */; }; - D07B43CE91B6C8654936B7D4 /* MBBelgiumIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 5B4143CDA0C3F3615428E301 /* MBBelgiumIdBackRecognizerWrapper.h */; }; - D13C4324B3CD684A0132ACAF /* MBGermanyCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C37D4951AE24842DC8DFE5F5 /* MBGermanyCombinedRecognizerWrapper.m */; }; - D20C4F3788237A78099E8758 /* MBUnitedArabEmiratesIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = D3334BD7B5D088765769C8AD /* MBUnitedArabEmiratesIdBackRecognizerWrapper.m */; }; - D4334A76A64044831F8586C1 /* MBSwitzerlandIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 60D043598DABA1E0478076BF /* MBSwitzerlandIdFrontRecognizerWrapper.m */; }; - D44048D683C2AD507831290C /* MBMrtdRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = FEE84875B70BF64B1E2BC7E1 /* MBMrtdRecognizerWrapper.h */; }; - D4A44788AB4C84F983CBE4FF /* MBAustraliaDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DBF749EC858E4A1B7C7A7671 /* MBAustraliaDlFrontRecognizerWrapper.h */; }; - D4BF49248B97B7320C81DB01 /* MBCroatiaIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 334242BFAC517B21E96C8DF0 /* MBCroatiaIdFrontRecognizerWrapper.h */; }; - D5274E49B057EB6FC2CA61D5 /* MBCyprusIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 65AF49F5A646AEA495B9D662 /* MBCyprusIdFrontRecognizerWrapper.m */; }; - D9514933A703CE2F82FA5DB5 /* MBSwitzerlandIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = DCF048F39C88018512A4CC3A /* MBSwitzerlandIdFrontRecognizerWrapper.h */; }; - DA9745B39CEADC2837B23193 /* MBPolandIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 8FC4494F8B910E388AAA3A4E /* MBPolandIdFrontRecognizerWrapper.h */; }; - DAA14B19BA5DD0A636D53E04 /* MBIndonesiaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D9E4402BFFC7A330291DAF3 /* MBIndonesiaIdFrontRecognizerWrapper.m */; }; - DB1C4B43B6DD8799E5A2E0F2 /* MBPdf417RecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 9C3E4DAA976C9DDB30914E75 /* MBPdf417RecognizerWrapper.h */; }; - DBB74DC2B4492E29589C939C /* MBDocumentVerificationOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = B1844F3FB558B3C87526CF7F /* MBDocumentVerificationOverlaySettingsSerialization.h */; }; - DC41437ABB3A234817E9E050 /* MBBarcodeRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A3F46DF83E39B9DC75011C8 /* MBBarcodeRecognizerWrapper.h */; }; - DD7240B7815463DBAE1AFBC5 /* MBMrtdRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 3C054A80850DDF07E50FCF09 /* MBMrtdRecognizerWrapper.m */; }; - DDCD4BB68FB5D301C084A91A /* MBBarcodeOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = A84743879C1E9880FF96B773 /* MBBarcodeOverlaySettingsSerialization.m */; }; - DECD4F9B8EDD0575BF445623 /* MBGermanyCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D3E841468C97F57DD7D81F9B /* MBGermanyCombinedRecognizerWrapper.h */; }; - DF104E5AB87D196AB1D4CE05 /* MBNewZealandDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = FBB142C58420113A336F3AB0 /* MBNewZealandDlFrontRecognizerWrapper.m */; }; - E28F44ADA17D4988DD8BA129 /* MBDocumentVerificationOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 84BC4B16902372B7DDF8F350 /* MBDocumentVerificationOverlaySettingsSerialization.m */; }; - E73E4051851E0095CF659722 /* MBEudlRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C2BD4C7CB294E8AA0BB9E201 /* MBEudlRecognizerWrapper.m */; }; - E76F4C69850BD91F4F0EF973 /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = C836421CA205470FEDC7ADFC /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m */; }; - E8EE4CFCA1ECB5062E1F23BA /* MBAustriaCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 8D25400096DEF499C366F70F /* MBAustriaCombinedRecognizerWrapper.h */; }; - E9C7433E9D41C2BE76C7D18E /* MBBlinkIdCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 93F3447599E7B88253B2237C /* MBBlinkIdCombinedRecognizerWrapper.h */; }; - EA9147EDAEC4FE986840B405 /* MBGermanyIdOldRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 833943E59B7E2A8B9096FCE9 /* MBGermanyIdOldRecognizerWrapper.m */; }; - EAC247A082AAC96BC187DFBD /* MBItalyDlFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 53D0460CA575DAC4B179D345 /* MBItalyDlFrontRecognizerWrapper.h */; }; - ED9740568F860DEBA716D30F /* MBBruneiResidencePermitBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 3278448B91F3CF1E7D33D445 /* MBBruneiResidencePermitBackRecognizerWrapper.h */; }; - EE284B1B881AC48DB5D43FF0 /* MBUsdlCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A044344809A7861D67E813A /* MBUsdlCombinedRecognizerWrapper.m */; }; - F1964B28AE68D6EAE4F88295 /* MBColombiaIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = DE6E479F8F0590CFF5A32DC0 /* MBColombiaIdFrontRecognizerWrapper.m */; }; - F2B245009FF974C015838002 /* MBSingaporeIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 3ECE4A5693FB4377603F1881 /* MBSingaporeIdBackRecognizerWrapper.m */; }; - F4334DFDB54849D6C94D2A4D /* MBBlinkIdRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = F7704D188C88BC2761E05342 /* MBBlinkIdRecognizerWrapper.m */; }; - F4964277BFCC7B0D6512E4FB /* MBSuccessFrameGrabberRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 898343FFAD8A8DCAA061E166 /* MBSuccessFrameGrabberRecognizerWrapper.h */; }; - F5704DF89290529A07837B39 /* MBCroatiaCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7C2949D09045E1B6D352EB64 /* MBCroatiaCombinedRecognizerWrapper.m */; }; - F6734D739F4FFDF9366DB313 /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 721248D5B46E3E24928CC17A /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.h */; }; - F8524DE3BFA56B225A7861F1 /* MBSwedenDlFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 83EC446D8B8FF2D6A3C375DB /* MBSwedenDlFrontRecognizerWrapper.m */; }; - FA6648C2ACB6C29609DC900F /* MBAustriaCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = DFEE4D0BAFB948B8939ADB29 /* MBAustriaCombinedRecognizerWrapper.m */; }; - FA9044069DADA94B9CEB9269 /* MBMalaysiaMyKadFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 13C442B5AD86403B7165CEE9 /* MBMalaysiaMyKadFrontRecognizerWrapper.m */; }; - FAEF4C04A9AB56E550478118 /* MBGermanyPassportRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 61094CD7A081D923F4423663 /* MBGermanyPassportRecognizerWrapper.h */; }; - FB894635AFA71186AC958DC4 /* MBOverlaySettingsSerializers.h in Headers */ = {isa = PBXBuildFile; fileRef = 870343B0B780E3BB29DCA27F /* MBOverlaySettingsSerializers.h */; }; - FBD24ABC8825C651D0C4B67F /* MBNigeriaVoterIdBackRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = CB9A43E99FBD235357986BCF /* MBNigeriaVoterIdBackRecognizerWrapper.m */; }; - FC2E4FD2AD79D459625C8E73 /* MBCroatiaCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 17AB428AA788CB38662473F2 /* MBCroatiaCombinedRecognizerWrapper.h */; }; - FD5A4D5FA562A1AE09C6D408 /* MBBlinkIDSerializationUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 484B43178C6D1E83339C24C2 /* MBBlinkIDSerializationUtils.m */; }; - FE3648469C0F1768A65A0518 /* MBMoroccoIdFrontRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C294A1EA7F449FF205C3E93 /* MBMoroccoIdFrontRecognizerWrapper.m */; }; - FFD7496B995BFF0B7AEB43D9 /* MBNigeriaVoterIdBackRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A594B1FAF9265D660AE2DF4 /* MBNigeriaVoterIdBackRecognizerWrapper.h */; }; + A517429980E93824DA567BC5 /* MBOverlayVCCreator.h in Headers */ = {isa = PBXBuildFile; fileRef = 27684B3E8A5942BEE882A87E /* MBOverlayVCCreator.h */; }; + A7664AA89FE7F7F8055CC046 /* MBDocumentOverlaySettingsSerialization.h in Headers */ = {isa = PBXBuildFile; fileRef = E42343F79A504DD52BBDE579 /* MBDocumentOverlaySettingsSerialization.h */; }; + B5A043F1B03AF197227B8A01 /* MBBlinkIdCombinedRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 2B23429D816F8B811CC978DA /* MBBlinkIdCombinedRecognizerWrapper.h */; }; + C01042F89A826C94C448C24C /* MBMrtdCombinedRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C2D47AA8D7DD99AA2611442 /* MBMrtdCombinedRecognizerWrapper.m */; }; + D3F2403EA807EBCABA3E9144 /* MBDocumentFaceRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = CD7B41EE9817CDE1784A5503 /* MBDocumentFaceRecognizerWrapper.h */; }; + DADE470A8AB442061F78B64C /* MBMrtdRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = A9ED4234A6060F41AFFE17C0 /* MBMrtdRecognizerWrapper.h */; }; + DD194FD48740B3914BEEBF26 /* MBUsdlRecognizerWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B2496D87203F09656B0239 /* MBUsdlRecognizerWrapper.m */; }; + E23C460C9D7D3F6DE26FE365 /* MBOverlaySerializationUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = F2A14323B8717250A0915742 /* MBOverlaySerializationUtils.m */; }; + E27F4922ADD48B267F6EAAE9 /* MBMicroblinkModule.h in Headers */ = {isa = PBXBuildFile; fileRef = F6114CD090C93C1276A7246A /* MBMicroblinkModule.h */; }; + EE064E03A12DF46640BAD1B0 /* MBSuccessFrameGrabberRecognizerWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = F1D94DECA876F42556271E9F /* MBSuccessFrameGrabberRecognizerWrapper.h */; }; + FEA945B48A41EE4C50925785 /* MBBlinkIdOverlaySettingsSerialization.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C9E43D1965D6B57A0E86014 /* MBBlinkIdOverlaySettingsSerialization.m */; }; + FFD248F8A1C4003A7445B8C1 /* MBBlinkIDSerializationUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 8A6A439FB32DB00F6AB1BEC5 /* MBBlinkIDSerializationUtils.m */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -254,240 +69,55 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 013841C0947007BC26FCBE90 /* MBEgyptIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBEgyptIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 01774F659767954A2681C75F /* MBBlinkIdOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIdOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; - 01BB4364A918056E0503D007 /* MBVinRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBVinRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 038A449084417A9066DCAC5B /* MBBelgiumIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBelgiumIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 038B410BA73D6CC6D38B294E /* MBHongKongIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBHongKongIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 04E040C89248D52645024CBC /* MBMexicoVoterIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMexicoVoterIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 06734E88B3EE809C942F8EB9 /* MBSingaporeChangiEmployeeIdRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSingaporeChangiEmployeeIdRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 076046D78D64EA9BDFDD1CC9 /* MBAustriaPassportRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBAustriaPassportRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 08234C219192F8960ACF20DC /* MBMalaysiaMyKasFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMalaysiaMyKasFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 092040F691FEA5EC822CC1F0 /* MBUsdlRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBUsdlRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 09C54EF1AC84CCC066FACE37 /* MBRecognizerSerializers.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBRecognizerSerializers.m; path = MicroblinkModule/Recognizers/MBRecognizerSerializers.m; sourceTree = SOURCE_ROOT; }; - 0A044344809A7861D67E813A /* MBUsdlCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBUsdlCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 0A77496188FCB0C7E64B5546 /* MBSingaporeDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSingaporeDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 0B0E4B96AE1BE95F3B1B8F93 /* MBDocumentOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBDocumentOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; - 0EC94A07AE78EFB52A001C6B /* MBSlovakiaIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSlovakiaIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 0F99479991912400D32991F8 /* MBAustraliaDlBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBAustraliaDlBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 0FAB4126BFF1C38BDE251FCC /* MBBlinkIdCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIdCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 0FE74454BD0C76B6670A412E /* MBGermanyPassportRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBGermanyPassportRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 102C445B94A37905874FA1A7 /* MBMoroccoIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMoroccoIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 10994F44BA93FB89654394B4 /* MBSpainDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSpainDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 116F48EDB57672A977F937C2 /* MBSimNumberRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSimNumberRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 11F04DF2BE506DAE13898F38 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 123246749645A7E5672F4BC9 /* MBCzechiaIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCzechiaIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 13C442B5AD86403B7165CEE9 /* MBMalaysiaMyKadFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMalaysiaMyKadFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 141A4C4BB758880FE0C485BB /* MBGermanyIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBGermanyIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 156D4E5DAFD84D63041D1D06 /* MBJordanCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBJordanCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 172E4549BF23D7279C9F5AC4 /* MBBlinkCardOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkCardOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; - 17AB428AA788CB38662473F2 /* MBCroatiaCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCroatiaCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 19A34800978C386D30449F37 /* MBMalaysiaMyPrFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMalaysiaMyPrFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 1A2F4A028AAEEE6A6F27411C /* MBPolandCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBPolandCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 1A594B1FAF9265D660AE2DF4 /* MBNigeriaVoterIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBNigeriaVoterIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 1BF5462CAE68463ACE17E0ED /* MBMalaysiaMyKadFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMalaysiaMyKadFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 1C42491986D1306170F09A90 /* MBCzechiaCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCzechiaCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 1C7645ACB76B6E0420902DEF /* MBMalaysiaMyTenteraFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMalaysiaMyTenteraFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 1C894647B1B83ED97A9D14A7 /* MBAustriaDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBAustriaDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 1D4045799E4EF5AD6DC3CAE0 /* MBGermanyIdOldRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBGermanyIdOldRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 1D7242B596BF8750EFC239B1 /* MBSingaporeIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSingaporeIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 1DCE4248A61D7F50519A7AF3 /* MBBlinkCardRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkCardRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 1DD9424689EE1B07EA87FA37 /* MBSerializationUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSerializationUtils.h; path = MicroblinkModule/MBSerializationUtils.h; sourceTree = SOURCE_ROOT; }; - 1F2A423597889599D5E3C434 /* MBVinRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBVinRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 1F3A4764BF19EDA85CE5D6F1 /* MBBlinkCardEliteRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkCardEliteRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 220C4BC2BAD5C67A17FFC3AF /* MBJordanIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBJordanIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 23A04F38BAD44668F5BB5670 /* MBGermanyIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBGermanyIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 26554978ACC28D579C21AFE2 /* MBMoroccoIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMoroccoIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 269A4B6EA92C75A8B71EED6B /* MBCyprusIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCyprusIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 282F4779AD9FCF2C541F8C04 /* MBMalaysiaMyKasFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMalaysiaMyKasFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 2ECB4E38930A110246124E5A /* MBBelgiumIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBelgiumIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 301F4AFFA9C026717E3335D0 /* MBCzechiaCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCzechiaCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 311249479CA7FEC55E0069A7 /* MBBruneiIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 3278448B91F3CF1E7D33D445 /* MBBruneiResidencePermitBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiResidencePermitBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 330E4FC7A8D4EBF83FD28A65 /* MBBruneiIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 334242BFAC517B21E96C8DF0 /* MBCroatiaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCroatiaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 3436457AB6504D84E5C4B187 /* MBMalaysiaMyKadBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMalaysiaMyKadBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 36664015BDFBA320513CFCE0 /* MBBruneiMilitaryIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiMilitaryIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 36724C3C8275090D00B6E035 /* MBBruneiIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 374849D782EA3FB56ED35C7B /* MBMalaysiaDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMalaysiaDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 3A954A9899D8906294FEA8EE /* MBOverlaySerializationUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBOverlaySerializationUtils.m; path = MicroblinkModule/Overlays/MBOverlaySerializationUtils.m; sourceTree = SOURCE_ROOT; }; - 3AF04B8FB9E8E66C74265864 /* MBSloveniaIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSloveniaIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 3B7A47BAAAA6C9480EF5C57D /* MBMoroccoIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMoroccoIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 3BEB4078AFBC49055BAF16E9 /* MBEudlRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBEudlRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 3C054A80850DDF07E50FCF09 /* MBMrtdRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMrtdRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 3D8747F48A8F2B29970B268B /* MBPassportRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBPassportRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBPassportRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 3DB14CF8A4E6242CB0B7909E /* MBBruneiMilitaryIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiMilitaryIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 3ECE4A5693FB4377603F1881 /* MBSingaporeIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSingaporeIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 43BC4D54B75360D4AE40043D /* MBOverlayViewControllerDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlayViewControllerDelegate.h; path = MicroblinkModule/Overlays/MBOverlayViewControllerDelegate.h; sourceTree = SOURCE_ROOT; }; - 45984B3FA6322D8EA74CDCF2 /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBUnitedArabEmiratesDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 45A8415B8CA30FEDE61AC3F4 /* MBBlinkIDSerializationUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIDSerializationUtils.h; path = MicroblinkModule/MBBlinkIDSerializationUtils.h; sourceTree = SOURCE_ROOT; }; - 484B43178C6D1E83339C24C2 /* MBBlinkIDSerializationUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIDSerializationUtils.m; path = MicroblinkModule/MBBlinkIDSerializationUtils.m; sourceTree = SOURCE_ROOT; }; - 4A464C76A5C1FF496148DAC7 /* MBSloveniaCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSloveniaCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 4AF64A97913065F0681F9299 /* MBMexicoVoterIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMexicoVoterIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 4C174004B910B9BD5437161E /* MBCyprusOldIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCyprusOldIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 4C294A1EA7F449FF205C3E93 /* MBMoroccoIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMoroccoIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 4C8A4362B86CE245885A23E5 /* MBPolandCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBPolandCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 4DEA4B8EB2D40CE9C73A178E /* MBRecognizerSerializers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBRecognizerSerializers.h; path = MicroblinkModule/Recognizers/MBRecognizerSerializers.h; sourceTree = SOURCE_ROOT; }; - 4EC745EE9A2620BD21DA475A /* MBRomaniaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBRomaniaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 4F3142A2BD22DBADEEBB461E /* MBMrtdCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMrtdCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 51B846A9ACE0D23FA7C9D309 /* MBCzechiaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCzechiaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 529E4043B26E991E67937002 /* MBGermanyIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBGermanyIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 52AA40D0AD30DD5BD5B0AC79 /* MBMicroblinkModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMicroblinkModule.h; path = MicroblinkModule/MBMicroblinkModule.h; sourceTree = SOURCE_ROOT; }; - 53D0460CA575DAC4B179D345 /* MBItalyDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBItalyDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 54BC45238AF46B5C62F67551 /* MBSlovakiaIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSlovakiaIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 55FD4A519CC95C0439350F2F /* MBMalaysiaMyKadBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMalaysiaMyKadBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 56154101A553ED10A92CEE71 /* MBPolandIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBPolandIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 56804C22910487ADBD93F2BA /* MBPassportRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBPassportRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBPassportRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 57A04B36B9C6DBA3C792271B /* MBJordanIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBJordanIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 57FA4AE1BB394BC3861C145A /* MBBruneiResidencePermitBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiResidencePermitBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 59794EAABAD296E48B93C5BD /* MBBlinkIdRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIdRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 59AD4F54B92DA898CC749057 /* MBColombiaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBColombiaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 5B4143CDA0C3F3615428E301 /* MBBelgiumIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBelgiumIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 5DCE49BEB4FBF61562518A3F /* MBCroatiaIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCroatiaIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 5EB244B78546A8754DA6371F /* MBCroatiaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCroatiaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 5FE343B59B732C611750186B /* MBSuccessFrameGrabberRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSuccessFrameGrabberRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 60D043598DABA1E0478076BF /* MBSwitzerlandIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSwitzerlandIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 61094CD7A081D923F4423663 /* MBGermanyPassportRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBGermanyPassportRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 61D949B29B2C03633524BD18 /* MBDocumentOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBDocumentOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; - 62954762BE7AA43CDF4BD66F /* MBKuwaitIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBKuwaitIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 62C1463684C3631C2F9542E2 /* MBAustriaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBAustriaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 637A48AAAB8B5C30F6DEDB0D /* MBMalaysiaMyPrFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMalaysiaMyPrFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 645D4680AB34F4DB1E561963 /* MBCzechiaIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCzechiaIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 65AF49F5A646AEA495B9D662 /* MBCyprusIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCyprusIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 685F4903A74273FC641FAFA0 /* MBCyprusOldIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCyprusOldIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 6A754EACBFA3AA16653BECE5 /* MBAustraliaDlBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBAustraliaDlBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 6D3B48A0BEC27CCE90A1B093 /* MBAustriaIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBAustriaIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 6D4A4533A3C9A1501E112131 /* MBAustriaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBAustriaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 6D9E4402BFFC7A330291DAF3 /* MBIndonesiaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBIndonesiaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 6FB0483C90160BDEC464F941 /* MBVisaRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBVisaRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBVisaRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 711045F79EAF72909D404844 /* MBIrelandDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBIrelandDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 721248D5B46E3E24928CC17A /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBUnitedArabEmiratesIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 73FA473FA529F094AB8F56F1 /* MBDocumentFaceRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBDocumentFaceRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 752042AC90E743313F2C8767 /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBUnitedArabEmiratesIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 76FA4D3C807D7299ADCB1564 /* MBSerializationUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSerializationUtils.m; path = MicroblinkModule/MBSerializationUtils.m; sourceTree = SOURCE_ROOT; }; - 77D04ACD8DB78CF08BC4DE81 /* MBUnitedArabEmiratesIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBUnitedArabEmiratesIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 78934AB5AD7DDCC1E99F0FE9 /* MBGermanyDlBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBGermanyDlBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 78C5453FB28886508E2103B2 /* MBSwedenDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSwedenDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 78D64B6D987E64521D5CF735 /* MBBruneiIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 79FC4AD49877F2B2FE6C45EF /* MBUsdlRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBUsdlRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 7A10491FB7CD875302724772 /* MBColombiaDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBColombiaDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 7C2949D09045E1B6D352EB64 /* MBCroatiaCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCroatiaCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 7C374D2E93513A6C6DFDD031 /* MBVisaRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBVisaRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBVisaRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 7D99498B827D9D444A360D21 /* MBSingaporeIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSingaporeIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 7FE94450B7B1CC6447386225 /* MBSwitzerlandIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSwitzerlandIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 809B4CB8901C05162E5D8265 /* MBSwitzerlandPassportRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSwitzerlandPassportRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 833943E59B7E2A8B9096FCE9 /* MBGermanyIdOldRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBGermanyIdOldRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 83EC446D8B8FF2D6A3C375DB /* MBSwedenDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSwedenDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 84BC4B16902372B7DDF8F350 /* MBDocumentVerificationOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBDocumentVerificationOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; - 870343B0B780E3BB29DCA27F /* MBOverlaySettingsSerializers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlaySettingsSerializers.h; path = MicroblinkModule/Overlays/MBOverlaySettingsSerializers.h; sourceTree = SOURCE_ROOT; }; - 898343FFAD8A8DCAA061E166 /* MBSuccessFrameGrabberRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSuccessFrameGrabberRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 8AE0420ABFA5B9CEF8C82AA6 /* MBSingaporeDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSingaporeDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 8C35447D829EF8F08FFC3CA3 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 8D25400096DEF499C366F70F /* MBAustriaCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBAustriaCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 8FC4494F8B910E388AAA3A4E /* MBPolandIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBPolandIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 9136461E9F0304591D6505E9 /* MBGermanyIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBGermanyIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 93884F2E90B2B1A83E212340 /* MBSingaporeIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSingaporeIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 93954C64B18ACE1964B80012 /* MBSlovakiaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSlovakiaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 93F3447599E7B88253B2237C /* MBBlinkIdCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIdCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 96824827AAF1E009FF51C68B /* MBRomaniaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBRomaniaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 9A3F46DF83E39B9DC75011C8 /* MBBarcodeRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBarcodeRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 9B294E4A84949648AA3BBB58 /* MBRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBRecognizerWrapper.m; path = MicroblinkModule/Recognizers/MBRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - 9C3E4DAA976C9DDB30914E75 /* MBPdf417RecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBPdf417RecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 9C414C8EB965EE5CE5D24E74 /* MBBarcodeOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBarcodeOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; - 9D1C445B98737F83078D47B7 /* MBHongKongIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBHongKongIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 9E0F4B169B11F71AB8B96F41 /* MBBruneiResidencePermitFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiResidencePermitFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - 9F954BC59A441F2BB66C7EFB /* MBBlinkCardOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkCardOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; - 9F9F4A40B5606D254519C6EC /* MBKuwaitIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBKuwaitIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - A084429190E2ACA0B2A44180 /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - A1E84C9E9CF8725B637D3B66 /* MBPolandIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBPolandIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + 079B40C7944365C8D07F15F0 /* MBDocumentVerificationOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBDocumentVerificationOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; + 0B9B421396C11A0036F6CE2B /* MBBlinkIdRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIdRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + 11874CE88BBAF4BE61B63CAD /* MBOverlayViewControllerDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlayViewControllerDelegate.h; path = MicroblinkModule/Overlays/MBOverlayViewControllerDelegate.h; sourceTree = SOURCE_ROOT; }; + 15EC4FF2BC9AA4874BED3502 /* MBBlinkIDSerializationUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIDSerializationUtils.h; path = MicroblinkModule/MBBlinkIDSerializationUtils.h; sourceTree = SOURCE_ROOT; }; + 27684B3E8A5942BEE882A87E /* MBOverlayVCCreator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlayVCCreator.h; path = MicroblinkModule/Overlays/MBOverlayVCCreator.h; sourceTree = SOURCE_ROOT; }; + 2B23429D816F8B811CC978DA /* MBBlinkIdCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIdCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + 2C2D47AA8D7DD99AA2611442 /* MBMrtdCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMrtdCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + 3140419C9B83A1E97EEB0C8A /* MBBlinkIdRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIdRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + 32B64604A25996AE9EC1BF1D /* MBRecognizerSerializers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBRecognizerSerializers.h; path = MicroblinkModule/Recognizers/MBRecognizerSerializers.h; sourceTree = SOURCE_ROOT; }; + 38024202A7E3074E49F6E1FC /* MBOverlaySettingsSerializers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlaySettingsSerializers.h; path = MicroblinkModule/Overlays/MBOverlaySettingsSerializers.h; sourceTree = SOURCE_ROOT; }; + 4B474A33BCEBDCA9A58BD8DA /* MBSerializationUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSerializationUtils.h; path = MicroblinkModule/MBSerializationUtils.h; sourceTree = SOURCE_ROOT; }; + 4CFF464E81237A1ADFDD4C83 /* MBRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBRecognizerWrapper.h; path = MicroblinkModule/Recognizers/MBRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + 53FE42D9BF07D81893573ACE /* MBVisaRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBVisaRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBVisaRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + 709E4F91AE7A6823479F3522 /* MBPassportRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBPassportRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBPassportRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + 7C6442248A78CF313028F14D /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; name = .gitignore; path = MicroblinkModule/Overlays/Serialization/.gitignore; sourceTree = SOURCE_ROOT; }; + 841B4F3183A2B13B87FB42CF /* MBMicroblinkModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMicroblinkModule.m; path = MicroblinkModule/MBMicroblinkModule.m; sourceTree = SOURCE_ROOT; }; + 85144A7FBCEDFAB521F67EF0 /* MBOverlaySerializationUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlaySerializationUtils.h; path = MicroblinkModule/Overlays/MBOverlaySerializationUtils.h; sourceTree = SOURCE_ROOT; }; + 87FE41AA9AF76194BE81BE58 /* MBDocumentOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBDocumentOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; + 8A6A439FB32DB00F6AB1BEC5 /* MBBlinkIDSerializationUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIDSerializationUtils.m; path = MicroblinkModule/MBBlinkIDSerializationUtils.m; sourceTree = SOURCE_ROOT; }; + 9C9E43D1965D6B57A0E86014 /* MBBlinkIdOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIdOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; A27CCA2B1E9E57A500BED675 /* libMicroblinkModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMicroblinkModule.a; sourceTree = BUILT_PRODUCTS_DIR; }; A27CCA381E9E57C900BED675 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; }; A27CCA3A1E9E57CF00BED675 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; }; A27CCA3C1E9E57D600BED675 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; A27CCA3E1E9E57DA00BED675 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; A27CCA411E9E5D9400BED675 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; - A3FA4BF6BA522C0DF4C0CA74 /* MBMalaysiaDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMalaysiaDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - A5EB4EBFA7809B52882C816B /* MBColombiaDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBColombiaDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - A60C4335A431F5C4A9520060 /* MBColombiaIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBColombiaIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - A6154455A57595B6083FF6E5 /* MBAustriaPassportRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBAustriaPassportRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - A632499791FF3A6DCE77C3B5 /* MBSwitzerlandDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSwitzerlandDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - A6D946A7BF1C3BDFBB727673 /* MBSpainDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSpainDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - A77941899BF2C2AF05D1A876 /* MBIndonesiaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBIndonesiaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - A84743879C1E9880FF96B773 /* MBBarcodeOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBarcodeOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; - A85C4E629018AB1171002417 /* MBBarcodeRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBarcodeRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - A94A4C209E836BC11FAE1E77 /* MBBruneiResidencePermitFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiResidencePermitFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - A9CB4839BA804C9FB89B7CE2 /* MBSimNumberRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSimNumberRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - ACFB4043ACD03F4F56F5BF89 /* MBOverlayVCCreator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlayVCCreator.h; path = MicroblinkModule/Overlays/MBOverlayVCCreator.h; sourceTree = SOURCE_ROOT; }; - AD5F486DBC0694D44A05988A /* MBMicroblinkModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMicroblinkModule.m; path = MicroblinkModule/MBMicroblinkModule.m; sourceTree = SOURCE_ROOT; }; - AEE848C7BFA26E10842BB413 /* MBBlinkCardRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkCardRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - B0484CF8A09BFA6F82A2203A /* MBCyprusIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCyprusIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - B1844F3FB558B3C87526CF7F /* MBDocumentVerificationOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBDocumentVerificationOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; - B23949E9AFDBE9C41675807A /* MBGermanyDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBGermanyDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - B3884FF5BD9E8691F5406D7A /* MBItalyDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBItalyDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - B3BF4A33AAB40A077E189E5F /* MBSloveniaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSloveniaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - B628414E9EFA438ACECFF1E2 /* MBKuwaitIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBKuwaitIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - B7E84CE8881AE877AEEECFA0 /* MBBlinkIdOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIdOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; - BA8A4941AD6C60EC9F497C80 /* MBJordanIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBJordanIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - BAA94E7EAA4C9B166B12C424 /* MBCyprusOldIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCyprusOldIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - BB2641FCAB7874190F7AA131 /* MBBelgiumIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBelgiumIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - BEC445C1A3D1CDFC58ABDAC0 /* MBGermanyDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBGermanyDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - BF0041AAB18B2570BD568777 /* MBGermanyDlBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBGermanyDlBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - C0034A148D5C84789D974267 /* MBBruneiMilitaryIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiMilitaryIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - C07A4968BC1EE61FEB30D792 /* MBMrtdCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMrtdCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - C11A478F9031B2D22DB3CBC4 /* MBKuwaitIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBKuwaitIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - C2BD4C7CB294E8AA0BB9E201 /* MBEudlRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBEudlRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - C37D4951AE24842DC8DFE5F5 /* MBGermanyCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBGermanyCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - C4C34E51A9F6A5A0959A4AC0 /* MBSlovakiaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSlovakiaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - C4EC4E1E9959CD34A461CD14 /* MBSlovakiaCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSlovakiaCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - C5794157A1A1F895E0547425 /* MBOverlaySerializationUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBOverlaySerializationUtils.h; path = MicroblinkModule/Overlays/MBOverlaySerializationUtils.h; sourceTree = SOURCE_ROOT; }; - C6074FE380FF6770C0D90732 /* MBAustriaDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBAustriaDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - C618484C96142FD9B9764A32 /* MBBlinkCardEliteRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkCardEliteRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - C836421CA205470FEDC7ADFC /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - CB9A43E99FBD235357986BCF /* MBNigeriaVoterIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBNigeriaVoterIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - CE554B6A8FAF31F22F8C82B7 /* MBMalaysiaIkadFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMalaysiaIkadFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D0BB4B09926D4CD45D5B8254 /* MBNewZealandDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBNewZealandDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D28249B29D85D47CEFDB3011 /* MBMalaysiaMyTenteraFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMalaysiaMyTenteraFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D31642A9A2E7BB7090BFE877 /* MBEgyptIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBEgyptIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D3334BD7B5D088765769C8AD /* MBUnitedArabEmiratesIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBUnitedArabEmiratesIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - D3A04994BD9ECD6A309D26B9 /* MBAustriaIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBAustriaIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D3E841468C97F57DD7D81F9B /* MBGermanyCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBGermanyCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D40E40AFB80D7F1F12FF393F /* MBBruneiMilitaryIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBruneiMilitaryIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D4A543B0BE465305F7651A65 /* MBSwitzerlandIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSwitzerlandIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D4B846F5B1E1A4785F4689A2 /* MBIrelandDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBIrelandDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D4DA454E92AE573343DFD328 /* MBRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBRecognizerWrapper.h; path = MicroblinkModule/Recognizers/MBRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D8D3462A83939FDB8D004186 /* MBPolandIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBPolandIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - D98F469296433696FFDDE545 /* MBPdf417RecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBPdf417RecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - DAD94CCE80FF92CE71BE3FEF /* MBCzechiaIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCzechiaIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - DBF749EC858E4A1B7C7A7671 /* MBAustraliaDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBAustraliaDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - DC51425AB1345C3284ECA315 /* MBCroatiaIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBCroatiaIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - DC7148648CBD4C6405C0147C /* MBOverlaySettingsSerializers.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBOverlaySettingsSerializers.m; path = MicroblinkModule/Overlays/MBOverlaySettingsSerializers.m; sourceTree = SOURCE_ROOT; }; - DCF048F39C88018512A4CC3A /* MBSwitzerlandIdFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSwitzerlandIdFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - DE6E479F8F0590CFF5A32DC0 /* MBColombiaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBColombiaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - DE9143C587C9F86755553C04 /* MBUsdlCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBUsdlCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - DFA44B779CAFCFC2A4FE2F7E /* MBSingaporeCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSingaporeCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - DFC94E90935ECBD7B863F312 /* MBSlovakiaCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSlovakiaCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - DFEE4D0BAFB948B8939ADB29 /* MBAustriaCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBAustriaCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - DFFB4687ABFCF87A0DD57857 /* MBCyprusOldIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCyprusOldIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - E0504591AE4DF3522607544C /* MBBelgiumCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBelgiumCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - E06D4615B3B30EB498B3F53F /* MBDocumentFaceRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBDocumentFaceRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - E2284FB0AB3ECFB0D5FDDBF6 /* MBColombiaIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBColombiaIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - E36443508009A1788229BAA4 /* MBSingaporeCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSingaporeCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - E7744F47A8A8B23424AEBD1A /* MBAustraliaDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBAustraliaDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - E8D2450DABEF99AF6EAF1615 /* MBJordanCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBJordanCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - EAAA48A493E9850C9F38E25D /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBUnitedArabEmiratesDlFrontRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - EE59460D93084248E6D7002B /* MBSwitzerlandPassportRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSwitzerlandPassportRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - EFFE476AB0EEF6494E13A727 /* MBSloveniaIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSloveniaIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - F0C0497284F980D708F276D1 /* MBSwitzerlandDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSwitzerlandDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - F11D480B8058E79F9F2E953D /* MBCyprusIdBackRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBCyprusIdBackRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - F7704D188C88BC2761E05342 /* MBBlinkIdRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIdRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - F80843E0BF02C592AFA88C7B /* MBJordanIdBackRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBJordanIdBackRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - F8154B0FB2E0E404547D0335 /* MBSloveniaCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSloveniaCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - FAFE42D3824CDCB634F143F7 /* MBSloveniaIdFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSloveniaIdFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - FAFE443B88507C04F0F94A8E /* MBSingaporeChangiEmployeeIdRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSingaporeChangiEmployeeIdRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - FB424AA9B5FB0EB5042FA08C /* MBMalaysiaIkadFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMalaysiaIkadFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - FBB142C58420113A336F3AB0 /* MBNewZealandDlFrontRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBNewZealandDlFrontRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; - FDA64717B795098024784248 /* MBBelgiumCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBelgiumCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; - FEE84875B70BF64B1E2BC7E1 /* MBMrtdRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMrtdRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + A9ED4234A6060F41AFFE17C0 /* MBMrtdRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMrtdRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + ACD042F8858DE5CE1209AA43 /* MBSuccessFrameGrabberRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSuccessFrameGrabberRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + AE53498A92BEFCBB025689C9 /* MBDocumentVerificationOverlaySettingsSerialization.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBDocumentVerificationOverlaySettingsSerialization.m; path = MicroblinkModule/Overlays/Serialization/MBDocumentVerificationOverlaySettingsSerialization.m; sourceTree = SOURCE_ROOT; }; + B190437EAABCD2CCF3220CE1 /* MBPassportRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBPassportRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBPassportRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + BD254E0DAD6B2432CFB3812D /* MBMrtdCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMrtdCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + C4DE485C9A3B0DD1A9DB3C49 /* MBDocumentFaceRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBDocumentFaceRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + CAFF4B9C9BCDD1D4825B0C6A /* MBUsdlCombinedRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBUsdlCombinedRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + CCF9420689AB44BD8707E7FA /* MBMrtdRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBMrtdRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + CD7B41EE9817CDE1784A5503 /* MBDocumentFaceRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBDocumentFaceRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + D09E47D5B8857FF8DF573ECF /* MBUsdlCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBUsdlCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + DB60478C86E84B3E0AEEDF6D /* MBBlinkIdCombinedRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBBlinkIdCombinedRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + DD6B4209B9EF8C2AD22FD07B /* MBUsdlRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBUsdlRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + E2B2496D87203F09656B0239 /* MBUsdlRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBUsdlRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBUsdlRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + E42343F79A504DD52BBDE579 /* MBDocumentOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBDocumentOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBDocumentOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; + E5284ED7914ECEBC7CD111E0 /* MBSerializationUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBSerializationUtils.m; path = MicroblinkModule/MBSerializationUtils.m; sourceTree = SOURCE_ROOT; }; + EA6741B8B0E278F5FE506F53 /* MBRecognizerSerializers.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBRecognizerSerializers.m; path = MicroblinkModule/Recognizers/MBRecognizerSerializers.m; sourceTree = SOURCE_ROOT; }; + EA9B40F9954509AFBC6579A9 /* MBBlinkIdOverlaySettingsSerialization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBBlinkIdOverlaySettingsSerialization.h; path = MicroblinkModule/Overlays/Serialization/MBBlinkIdOverlaySettingsSerialization.h; sourceTree = SOURCE_ROOT; }; + F1D94DECA876F42556271E9F /* MBSuccessFrameGrabberRecognizerWrapper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBSuccessFrameGrabberRecognizerWrapper.h; path = MicroblinkModule/Recognizers/Wrappers/MBSuccessFrameGrabberRecognizerWrapper.h; sourceTree = SOURCE_ROOT; }; + F2A14323B8717250A0915742 /* MBOverlaySerializationUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBOverlaySerializationUtils.m; path = MicroblinkModule/Overlays/MBOverlaySerializationUtils.m; sourceTree = SOURCE_ROOT; }; + F34B44A0B91320E0AA916151 /* MBOverlaySettingsSerializers.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBOverlaySettingsSerializers.m; path = MicroblinkModule/Overlays/MBOverlaySettingsSerializers.m; sourceTree = SOURCE_ROOT; }; + F6114CD090C93C1276A7246A /* MBMicroblinkModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MBMicroblinkModule.h; path = MicroblinkModule/MBMicroblinkModule.h; sourceTree = SOURCE_ROOT; }; + FB2046A1BFA5623819EEB18F /* MBVisaRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBVisaRecognizerWrapper.m; path = MicroblinkModule/Recognizers/Wrappers/MBVisaRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; + FC714BC8BFE8903333CBE0A6 /* MBRecognizerWrapper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MBRecognizerWrapper.m; path = MicroblinkModule/Recognizers/MBRecognizerWrapper.m; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -505,66 +135,75 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 04994640813DD063A7C80297 /* Recognizers */ = { + 56254B84BF3A8A6805322130 /* Overlays */ = { isa = PBXGroup; children = ( - D4DA454E92AE573343DFD328 /* MBRecognizerWrapper.h */, - ADC14A6B9FE8216C2A0CBFA5 /* Wrappers */, - 4DEA4B8EB2D40CE9C73A178E /* MBRecognizerSerializers.h */, - 9B294E4A84949648AA3BBB58 /* MBRecognizerWrapper.m */, - 09C54EF1AC84CCC066FACE37 /* MBRecognizerSerializers.m */, + F2A14323B8717250A0915742 /* MBOverlaySerializationUtils.m */, + 9A5F47139CFB810DD0FCA58B /* Serialization */, + 27684B3E8A5942BEE882A87E /* MBOverlayVCCreator.h */, + F34B44A0B91320E0AA916151 /* MBOverlaySettingsSerializers.m */, + 85144A7FBCEDFAB521F67EF0 /* MBOverlaySerializationUtils.h */, + 11874CE88BBAF4BE61B63CAD /* MBOverlayViewControllerDelegate.h */, + 38024202A7E3074E49F6E1FC /* MBOverlaySettingsSerializers.h */, ); - name = Recognizers; - path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers"; + name = Overlays; + path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays"; sourceTree = ""; }; - 08E34DD9AE8F45479DAD20E9 /* Serialization */ = { + 68DF494D9E34867C010B46A2 /* Recognizers */ = { isa = PBXGroup; children = ( - 61D949B29B2C03633524BD18 /* MBDocumentOverlaySettingsSerialization.h */, - 9C414C8EB965EE5CE5D24E74 /* MBBarcodeOverlaySettingsSerialization.h */, - 84BC4B16902372B7DDF8F350 /* MBDocumentVerificationOverlaySettingsSerialization.m */, - B7E84CE8881AE877AEEECFA0 /* MBBlinkIdOverlaySettingsSerialization.m */, - 172E4549BF23D7279C9F5AC4 /* MBBlinkCardOverlaySettingsSerialization.h */, - 0B0E4B96AE1BE95F3B1B8F93 /* MBDocumentOverlaySettingsSerialization.m */, - B1844F3FB558B3C87526CF7F /* MBDocumentVerificationOverlaySettingsSerialization.h */, - A84743879C1E9880FF96B773 /* MBBarcodeOverlaySettingsSerialization.m */, - 9F954BC59A441F2BB66C7EFB /* MBBlinkCardOverlaySettingsSerialization.m */, - 01774F659767954A2681C75F /* MBBlinkIdOverlaySettingsSerialization.h */, + 4CFF464E81237A1ADFDD4C83 /* MBRecognizerWrapper.h */, + 6CDF4C46BC822BBF1A6CE66A /* Wrappers */, + 32B64604A25996AE9EC1BF1D /* MBRecognizerSerializers.h */, + FC714BC8BFE8903333CBE0A6 /* MBRecognizerWrapper.m */, + EA6741B8B0E278F5FE506F53 /* MBRecognizerSerializers.m */, ); - name = Serialization; - path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization"; + name = Recognizers; + path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers"; sourceTree = ""; }; - 75504719AB9A3FB278C12F3A /* Overlays */ = { + 6CDF4C46BC822BBF1A6CE66A /* Wrappers */ = { isa = PBXGroup; children = ( - 3A954A9899D8906294FEA8EE /* MBOverlaySerializationUtils.m */, - 08E34DD9AE8F45479DAD20E9 /* Serialization */, - ACFB4043ACD03F4F56F5BF89 /* MBOverlayVCCreator.h */, - DC7148648CBD4C6405C0147C /* MBOverlaySettingsSerializers.m */, - C5794157A1A1F895E0547425 /* MBOverlaySerializationUtils.h */, - 43BC4D54B75360D4AE40043D /* MBOverlayViewControllerDelegate.h */, - 870343B0B780E3BB29DCA27F /* MBOverlaySettingsSerializers.h */, + C4DE485C9A3B0DD1A9DB3C49 /* MBDocumentFaceRecognizerWrapper.m */, + FB2046A1BFA5623819EEB18F /* MBVisaRecognizerWrapper.m */, + 2B23429D816F8B811CC978DA /* MBBlinkIdCombinedRecognizerWrapper.h */, + F1D94DECA876F42556271E9F /* MBSuccessFrameGrabberRecognizerWrapper.h */, + CCF9420689AB44BD8707E7FA /* MBMrtdRecognizerWrapper.m */, + DD6B4209B9EF8C2AD22FD07B /* MBUsdlRecognizerWrapper.h */, + 2C2D47AA8D7DD99AA2611442 /* MBMrtdCombinedRecognizerWrapper.m */, + B190437EAABCD2CCF3220CE1 /* MBPassportRecognizerWrapper.m */, + D09E47D5B8857FF8DF573ECF /* MBUsdlCombinedRecognizerWrapper.m */, + 3140419C9B83A1E97EEB0C8A /* MBBlinkIdRecognizerWrapper.h */, + 53FE42D9BF07D81893573ACE /* MBVisaRecognizerWrapper.h */, + CD7B41EE9817CDE1784A5503 /* MBDocumentFaceRecognizerWrapper.h */, + BD254E0DAD6B2432CFB3812D /* MBMrtdCombinedRecognizerWrapper.h */, + E2B2496D87203F09656B0239 /* MBUsdlRecognizerWrapper.m */, + DB60478C86E84B3E0AEEDF6D /* MBBlinkIdCombinedRecognizerWrapper.m */, + ACD042F8858DE5CE1209AA43 /* MBSuccessFrameGrabberRecognizerWrapper.m */, + A9ED4234A6060F41AFFE17C0 /* MBMrtdRecognizerWrapper.h */, + 0B9B421396C11A0036F6CE2B /* MBBlinkIdRecognizerWrapper.m */, + CAFF4B9C9BCDD1D4825B0C6A /* MBUsdlCombinedRecognizerWrapper.h */, + 709E4F91AE7A6823479F3522 /* MBPassportRecognizerWrapper.h */, ); - name = Overlays; - path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays"; + name = Wrappers; + path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers"; sourceTree = ""; }; - 899443A681CD12DF77E1E6EE /* MicroblinkModule */ = { + 9A5F47139CFB810DD0FCA58B /* Serialization */ = { isa = PBXGroup; children = ( - 484B43178C6D1E83339C24C2 /* MBBlinkIDSerializationUtils.m */, - 75504719AB9A3FB278C12F3A /* Overlays */, - 76FA4D3C807D7299ADCB1564 /* MBSerializationUtils.m */, - AD5F486DBC0694D44A05988A /* MBMicroblinkModule.m */, - 45A8415B8CA30FEDE61AC3F4 /* MBBlinkIDSerializationUtils.h */, - 04994640813DD063A7C80297 /* Recognizers */, - 52AA40D0AD30DD5BD5B0AC79 /* MBMicroblinkModule.h */, - 1DD9424689EE1B07EA87FA37 /* MBSerializationUtils.h */, + E42343F79A504DD52BBDE579 /* MBDocumentOverlaySettingsSerialization.h */, + AE53498A92BEFCBB025689C9 /* MBDocumentVerificationOverlaySettingsSerialization.m */, + 9C9E43D1965D6B57A0E86014 /* MBBlinkIdOverlaySettingsSerialization.m */, + 87FE41AA9AF76194BE81BE58 /* MBDocumentOverlaySettingsSerialization.m */, + 7C6442248A78CF313028F14D /* .gitignore */, + 079B40C7944365C8D07F15F0 /* MBDocumentVerificationOverlaySettingsSerialization.h */, + EA9B40F9954509AFBC6579A9 /* MBBlinkIdOverlaySettingsSerialization.h */, ); - name = MicroblinkModule; - path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule"; + name = Serialization; + path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization"; sourceTree = ""; }; A27CCA221E9E57A500BED675 = { @@ -572,7 +211,7 @@ children = ( A27CCA2C1E9E57A500BED675 /* Products */, A27CCA371E9E57C900BED675 /* Frameworks */, - 899443A681CD12DF77E1E6EE /* MicroblinkModule */, + FECB42808D00E593423354D3 /* MicroblinkModule */, ); sourceTree = ""; }; @@ -596,338 +235,51 @@ name = Frameworks; sourceTree = ""; }; - ADC14A6B9FE8216C2A0CBFA5 /* Wrappers */ = { + FECB42808D00E593423354D3 /* MicroblinkModule */ = { isa = PBXGroup; children = ( - 1D4045799E4EF5AD6DC3CAE0 /* MBGermanyIdOldRecognizerWrapper.h */, - 0F99479991912400D32991F8 /* MBAustraliaDlBackRecognizerWrapper.m */, - F8154B0FB2E0E404547D0335 /* MBSloveniaCombinedRecognizerWrapper.h */, - 5DCE49BEB4FBF61562518A3F /* MBCroatiaIdBackRecognizerWrapper.h */, - FBB142C58420113A336F3AB0 /* MBNewZealandDlFrontRecognizerWrapper.m */, - C4EC4E1E9959CD34A461CD14 /* MBSlovakiaCombinedRecognizerWrapper.m */, - 123246749645A7E5672F4BC9 /* MBCzechiaIdBackRecognizerWrapper.h */, - 1A594B1FAF9265D660AE2DF4 /* MBNigeriaVoterIdBackRecognizerWrapper.h */, - A084429190E2ACA0B2A44180 /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h */, - 78C5453FB28886508E2103B2 /* MBSwedenDlFrontRecognizerWrapper.h */, - 529E4043B26E991E67937002 /* MBGermanyIdBackRecognizerWrapper.m */, - DE6E479F8F0590CFF5A32DC0 /* MBColombiaIdFrontRecognizerWrapper.m */, - FAFE443B88507C04F0F94A8E /* MBSingaporeChangiEmployeeIdRecognizerWrapper.m */, - 4C174004B910B9BD5437161E /* MBCyprusOldIdFrontRecognizerWrapper.m */, - 77D04ACD8DB78CF08BC4DE81 /* MBUnitedArabEmiratesIdBackRecognizerWrapper.h */, - A9CB4839BA804C9FB89B7CE2 /* MBSimNumberRecognizerWrapper.m */, - 45984B3FA6322D8EA74CDCF2 /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.m */, - 5B4143CDA0C3F3615428E301 /* MBBelgiumIdBackRecognizerWrapper.h */, - DCF048F39C88018512A4CC3A /* MBSwitzerlandIdFrontRecognizerWrapper.h */, - E7744F47A8A8B23424AEBD1A /* MBAustraliaDlFrontRecognizerWrapper.m */, - 8AE0420ABFA5B9CEF8C82AA6 /* MBSingaporeDlFrontRecognizerWrapper.h */, - BF0041AAB18B2570BD568777 /* MBGermanyDlBackRecognizerWrapper.h */, - 3BEB4078AFBC49055BAF16E9 /* MBEudlRecognizerWrapper.h */, - 9C3E4DAA976C9DDB30914E75 /* MBPdf417RecognizerWrapper.h */, - 311249479CA7FEC55E0069A7 /* MBBruneiIdFrontRecognizerWrapper.h */, - FB424AA9B5FB0EB5042FA08C /* MBMalaysiaIkadFrontRecognizerWrapper.m */, - 6D9E4402BFFC7A330291DAF3 /* MBIndonesiaIdFrontRecognizerWrapper.m */, - 711045F79EAF72909D404844 /* MBIrelandDlFrontRecognizerWrapper.m */, - 53D0460CA575DAC4B179D345 /* MBItalyDlFrontRecognizerWrapper.h */, - BAA94E7EAA4C9B166B12C424 /* MBCyprusOldIdBackRecognizerWrapper.m */, - 9E0F4B169B11F71AB8B96F41 /* MBBruneiResidencePermitFrontRecognizerWrapper.h */, - E36443508009A1788229BAA4 /* MBSingaporeCombinedRecognizerWrapper.m */, - 1C42491986D1306170F09A90 /* MBCzechiaCombinedRecognizerWrapper.m */, - E8D2450DABEF99AF6EAF1615 /* MBJordanCombinedRecognizerWrapper.m */, - 17AB428AA788CB38662473F2 /* MBCroatiaCombinedRecognizerWrapper.h */, - 7A10491FB7CD875302724772 /* MBColombiaDlFrontRecognizerWrapper.m */, - 73FA473FA529F094AB8F56F1 /* MBDocumentFaceRecognizerWrapper.m */, - 61094CD7A081D923F4423663 /* MBGermanyPassportRecognizerWrapper.h */, - 4C294A1EA7F449FF205C3E93 /* MBMoroccoIdFrontRecognizerWrapper.m */, - 10994F44BA93FB89654394B4 /* MBSpainDlFrontRecognizerWrapper.m */, - 752042AC90E743313F2C8767 /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.m */, - A6154455A57595B6083FF6E5 /* MBAustriaPassportRecognizerWrapper.m */, - 269A4B6EA92C75A8B71EED6B /* MBCyprusIdBackRecognizerWrapper.m */, - 04E040C89248D52645024CBC /* MBMexicoVoterIdFrontRecognizerWrapper.m */, - 7D99498B827D9D444A360D21 /* MBSingaporeIdFrontRecognizerWrapper.h */, - A632499791FF3A6DCE77C3B5 /* MBSwitzerlandDlFrontRecognizerWrapper.h */, - 282F4779AD9FCF2C541F8C04 /* MBMalaysiaMyKasFrontRecognizerWrapper.h */, - 4EC745EE9A2620BD21DA475A /* MBRomaniaIdFrontRecognizerWrapper.m */, - 3436457AB6504D84E5C4B187 /* MBMalaysiaMyKadBackRecognizerWrapper.h */, - 7C374D2E93513A6C6DFDD031 /* MBVisaRecognizerWrapper.m */, - C618484C96142FD9B9764A32 /* MBBlinkCardEliteRecognizerWrapper.m */, - 1C894647B1B83ED97A9D14A7 /* MBAustriaDlFrontRecognizerWrapper.m */, - F80843E0BF02C592AFA88C7B /* MBJordanIdBackRecognizerWrapper.m */, - 2ECB4E38930A110246124E5A /* MBBelgiumIdFrontRecognizerWrapper.m */, - 9A3F46DF83E39B9DC75011C8 /* MBBarcodeRecognizerWrapper.h */, - 93F3447599E7B88253B2237C /* MBBlinkIdCombinedRecognizerWrapper.h */, - 334242BFAC517B21E96C8DF0 /* MBCroatiaIdFrontRecognizerWrapper.h */, - 898343FFAD8A8DCAA061E166 /* MBSuccessFrameGrabberRecognizerWrapper.h */, - 3C054A80850DDF07E50FCF09 /* MBMrtdRecognizerWrapper.m */, - 1C7645ACB76B6E0420902DEF /* MBMalaysiaMyTenteraFrontRecognizerWrapper.m */, - BA8A4941AD6C60EC9F497C80 /* MBJordanIdFrontRecognizerWrapper.m */, - A3FA4BF6BA522C0DF4C0CA74 /* MBMalaysiaDlFrontRecognizerWrapper.m */, - B0484CF8A09BFA6F82A2203A /* MBCyprusIdFrontRecognizerWrapper.h */, - A60C4335A431F5C4A9520060 /* MBColombiaIdBackRecognizerWrapper.m */, - 1DCE4248A61D7F50519A7AF3 /* MBBlinkCardRecognizerWrapper.h */, - 7FE94450B7B1CC6447386225 /* MBSwitzerlandIdBackRecognizerWrapper.m */, - 79FC4AD49877F2B2FE6C45EF /* MBUsdlRecognizerWrapper.h */, - D8D3462A83939FDB8D004186 /* MBPolandIdBackRecognizerWrapper.h */, - 330E4FC7A8D4EBF83FD28A65 /* MBBruneiIdBackRecognizerWrapper.m */, - 01BB4364A918056E0503D007 /* MBVinRecognizerWrapper.m */, - FDA64717B795098024784248 /* MBBelgiumCombinedRecognizerWrapper.h */, - 19A34800978C386D30449F37 /* MBMalaysiaMyPrFrontRecognizerWrapper.m */, - 13C442B5AD86403B7165CEE9 /* MBMalaysiaMyKadFrontRecognizerWrapper.m */, - 3ECE4A5693FB4377603F1881 /* MBSingaporeIdBackRecognizerWrapper.m */, - D3A04994BD9ECD6A309D26B9 /* MBAustriaIdBackRecognizerWrapper.h */, - 36664015BDFBA320513CFCE0 /* MBBruneiMilitaryIdBackRecognizerWrapper.h */, - 141A4C4BB758880FE0C485BB /* MBGermanyIdFrontRecognizerWrapper.h */, - C07A4968BC1EE61FEB30D792 /* MBMrtdCombinedRecognizerWrapper.m */, - B3BF4A33AAB40A077E189E5F /* MBSloveniaIdFrontRecognizerWrapper.h */, - 4C8A4362B86CE245885A23E5 /* MBPolandCombinedRecognizerWrapper.m */, - 0EC94A07AE78EFB52A001C6B /* MBSlovakiaIdBackRecognizerWrapper.m */, - 56804C22910487ADBD93F2BA /* MBPassportRecognizerWrapper.m */, - 62C1463684C3631C2F9542E2 /* MBAustriaIdFrontRecognizerWrapper.m */, - 93954C64B18ACE1964B80012 /* MBSlovakiaIdFrontRecognizerWrapper.m */, - 809B4CB8901C05162E5D8265 /* MBSwitzerlandPassportRecognizerWrapper.m */, - 51B846A9ACE0D23FA7C9D309 /* MBCzechiaIdFrontRecognizerWrapper.m */, - D31642A9A2E7BB7090BFE877 /* MBEgyptIdFrontRecognizerWrapper.h */, - 0A044344809A7861D67E813A /* MBUsdlCombinedRecognizerWrapper.m */, - C37D4951AE24842DC8DFE5F5 /* MBGermanyCombinedRecognizerWrapper.m */, - B628414E9EFA438ACECFF1E2 /* MBKuwaitIdFrontRecognizerWrapper.m */, - A1E84C9E9CF8725B637D3B66 /* MBPolandIdFrontRecognizerWrapper.m */, - 8C35447D829EF8F08FFC3CA3 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m */, - 8D25400096DEF499C366F70F /* MBAustriaCombinedRecognizerWrapper.h */, - C11A478F9031B2D22DB3CBC4 /* MBKuwaitIdBackRecognizerWrapper.m */, - 3AF04B8FB9E8E66C74265864 /* MBSloveniaIdBackRecognizerWrapper.h */, - 57FA4AE1BB394BC3861C145A /* MBBruneiResidencePermitBackRecognizerWrapper.m */, - BEC445C1A3D1CDFC58ABDAC0 /* MBGermanyDlFrontRecognizerWrapper.h */, - 102C445B94A37905874FA1A7 /* MBMoroccoIdBackRecognizerWrapper.m */, - 9D1C445B98737F83078D47B7 /* MBHongKongIdFrontRecognizerWrapper.h */, - C0034A148D5C84789D974267 /* MBBruneiMilitaryIdFrontRecognizerWrapper.m */, - 59794EAABAD296E48B93C5BD /* MBBlinkIdRecognizerWrapper.h */, - 78934AB5AD7DDCC1E99F0FE9 /* MBGermanyDlBackRecognizerWrapper.m */, - 60D043598DABA1E0478076BF /* MBSwitzerlandIdFrontRecognizerWrapper.m */, - DBF749EC858E4A1B7C7A7671 /* MBAustraliaDlFrontRecognizerWrapper.h */, - 0A77496188FCB0C7E64B5546 /* MBSingaporeDlFrontRecognizerWrapper.m */, - 038A449084417A9066DCAC5B /* MBBelgiumIdBackRecognizerWrapper.m */, - D3334BD7B5D088765769C8AD /* MBUnitedArabEmiratesIdBackRecognizerWrapper.m */, - 685F4903A74273FC641FAFA0 /* MBCyprusOldIdFrontRecognizerWrapper.h */, - 116F48EDB57672A977F937C2 /* MBSimNumberRecognizerWrapper.h */, - EAAA48A493E9850C9F38E25D /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.h */, - 06734E88B3EE809C942F8EB9 /* MBSingaporeChangiEmployeeIdRecognizerWrapper.h */, - 59AD4F54B92DA898CC749057 /* MBColombiaIdFrontRecognizerWrapper.h */, - 9136461E9F0304591D6505E9 /* MBGermanyIdBackRecognizerWrapper.h */, - C836421CA205470FEDC7ADFC /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m */, - 83EC446D8B8FF2D6A3C375DB /* MBSwedenDlFrontRecognizerWrapper.m */, - CB9A43E99FBD235357986BCF /* MBNigeriaVoterIdBackRecognizerWrapper.m */, - DFC94E90935ECBD7B863F312 /* MBSlovakiaCombinedRecognizerWrapper.h */, - 645D4680AB34F4DB1E561963 /* MBCzechiaIdBackRecognizerWrapper.m */, - D0BB4B09926D4CD45D5B8254 /* MBNewZealandDlFrontRecognizerWrapper.h */, - DC51425AB1345C3284ECA315 /* MBCroatiaIdBackRecognizerWrapper.m */, - 833943E59B7E2A8B9096FCE9 /* MBGermanyIdOldRecognizerWrapper.m */, - 6A754EACBFA3AA16653BECE5 /* MBAustraliaDlBackRecognizerWrapper.h */, - 4A464C76A5C1FF496148DAC7 /* MBSloveniaCombinedRecognizerWrapper.m */, - 6FB0483C90160BDEC464F941 /* MBVisaRecognizerWrapper.h */, - 96824827AAF1E009FF51C68B /* MBRomaniaIdFrontRecognizerWrapper.h */, - 08234C219192F8960ACF20DC /* MBMalaysiaMyKasFrontRecognizerWrapper.m */, - 55FD4A519CC95C0439350F2F /* MBMalaysiaMyKadBackRecognizerWrapper.m */, - 1D7242B596BF8750EFC239B1 /* MBSingaporeIdFrontRecognizerWrapper.m */, - F0C0497284F980D708F276D1 /* MBSwitzerlandDlFrontRecognizerWrapper.m */, - 4AF64A97913065F0681F9299 /* MBMexicoVoterIdFrontRecognizerWrapper.h */, - 721248D5B46E3E24928CC17A /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.h */, - A6D946A7BF1C3BDFBB727673 /* MBSpainDlFrontRecognizerWrapper.h */, - 076046D78D64EA9BDFDD1CC9 /* MBAustriaPassportRecognizerWrapper.h */, - F11D480B8058E79F9F2E953D /* MBCyprusIdBackRecognizerWrapper.h */, - 0FE74454BD0C76B6670A412E /* MBGermanyPassportRecognizerWrapper.m */, - 26554978ACC28D579C21AFE2 /* MBMoroccoIdFrontRecognizerWrapper.h */, - 7C2949D09045E1B6D352EB64 /* MBCroatiaCombinedRecognizerWrapper.m */, - A5EB4EBFA7809B52882C816B /* MBColombiaDlFrontRecognizerWrapper.h */, - E06D4615B3B30EB498B3F53F /* MBDocumentFaceRecognizerWrapper.h */, - 156D4E5DAFD84D63041D1D06 /* MBJordanCombinedRecognizerWrapper.h */, - DFA44B779CAFCFC2A4FE2F7E /* MBSingaporeCombinedRecognizerWrapper.h */, - 301F4AFFA9C026717E3335D0 /* MBCzechiaCombinedRecognizerWrapper.h */, - A94A4C209E836BC11FAE1E77 /* MBBruneiResidencePermitFrontRecognizerWrapper.m */, - B3884FF5BD9E8691F5406D7A /* MBItalyDlFrontRecognizerWrapper.m */, - DFFB4687ABFCF87A0DD57857 /* MBCyprusOldIdBackRecognizerWrapper.h */, - A77941899BF2C2AF05D1A876 /* MBIndonesiaIdFrontRecognizerWrapper.h */, - D4B846F5B1E1A4785F4689A2 /* MBIrelandDlFrontRecognizerWrapper.h */, - CE554B6A8FAF31F22F8C82B7 /* MBMalaysiaIkadFrontRecognizerWrapper.h */, - 78D64B6D987E64521D5CF735 /* MBBruneiIdFrontRecognizerWrapper.m */, - D98F469296433696FFDDE545 /* MBPdf417RecognizerWrapper.m */, - C2BD4C7CB294E8AA0BB9E201 /* MBEudlRecognizerWrapper.m */, - 54BC45238AF46B5C62F67551 /* MBSlovakiaIdBackRecognizerWrapper.h */, - FAFE42D3824CDCB634F143F7 /* MBSloveniaIdFrontRecognizerWrapper.m */, - 1A2F4A028AAEEE6A6F27411C /* MBPolandCombinedRecognizerWrapper.h */, - 4F3142A2BD22DBADEEBB461E /* MBMrtdCombinedRecognizerWrapper.h */, - 3DB14CF8A4E6242CB0B7909E /* MBBruneiMilitaryIdBackRecognizerWrapper.m */, - 6D3B48A0BEC27CCE90A1B093 /* MBAustriaIdBackRecognizerWrapper.m */, - 23A04F38BAD44668F5BB5670 /* MBGermanyIdFrontRecognizerWrapper.m */, - 93884F2E90B2B1A83E212340 /* MBSingaporeIdBackRecognizerWrapper.h */, - 1BF5462CAE68463ACE17E0ED /* MBMalaysiaMyKadFrontRecognizerWrapper.h */, - 637A48AAAB8B5C30F6DEDB0D /* MBMalaysiaMyPrFrontRecognizerWrapper.h */, - E0504591AE4DF3522607544C /* MBBelgiumCombinedRecognizerWrapper.m */, - 092040F691FEA5EC822CC1F0 /* MBUsdlRecognizerWrapper.m */, - 56154101A553ED10A92CEE71 /* MBPolandIdBackRecognizerWrapper.m */, - 1F2A423597889599D5E3C434 /* MBVinRecognizerWrapper.h */, - 36724C3C8275090D00B6E035 /* MBBruneiIdBackRecognizerWrapper.h */, - AEE848C7BFA26E10842BB413 /* MBBlinkCardRecognizerWrapper.m */, - D4A543B0BE465305F7651A65 /* MBSwitzerlandIdBackRecognizerWrapper.h */, - 220C4BC2BAD5C67A17FFC3AF /* MBJordanIdFrontRecognizerWrapper.h */, - D28249B29D85D47CEFDB3011 /* MBMalaysiaMyTenteraFrontRecognizerWrapper.h */, - 65AF49F5A646AEA495B9D662 /* MBCyprusIdFrontRecognizerWrapper.m */, - E2284FB0AB3ECFB0D5FDDBF6 /* MBColombiaIdBackRecognizerWrapper.h */, - 374849D782EA3FB56ED35C7B /* MBMalaysiaDlFrontRecognizerWrapper.h */, - 0FAB4126BFF1C38BDE251FCC /* MBBlinkIdCombinedRecognizerWrapper.m */, - 5FE343B59B732C611750186B /* MBSuccessFrameGrabberRecognizerWrapper.m */, - 5EB244B78546A8754DA6371F /* MBCroatiaIdFrontRecognizerWrapper.m */, - FEE84875B70BF64B1E2BC7E1 /* MBMrtdRecognizerWrapper.h */, - BB2641FCAB7874190F7AA131 /* MBBelgiumIdFrontRecognizerWrapper.h */, - A85C4E629018AB1171002417 /* MBBarcodeRecognizerWrapper.m */, - 57A04B36B9C6DBA3C792271B /* MBJordanIdBackRecognizerWrapper.h */, - C6074FE380FF6770C0D90732 /* MBAustriaDlFrontRecognizerWrapper.h */, - 1F3A4764BF19EDA85CE5D6F1 /* MBBlinkCardEliteRecognizerWrapper.h */, - F7704D188C88BC2761E05342 /* MBBlinkIdRecognizerWrapper.m */, - D40E40AFB80D7F1F12FF393F /* MBBruneiMilitaryIdFrontRecognizerWrapper.h */, - 038B410BA73D6CC6D38B294E /* MBHongKongIdFrontRecognizerWrapper.m */, - 3B7A47BAAAA6C9480EF5C57D /* MBMoroccoIdBackRecognizerWrapper.h */, - B23949E9AFDBE9C41675807A /* MBGermanyDlFrontRecognizerWrapper.m */, - EFFE476AB0EEF6494E13A727 /* MBSloveniaIdBackRecognizerWrapper.m */, - 3278448B91F3CF1E7D33D445 /* MBBruneiResidencePermitBackRecognizerWrapper.h */, - 62954762BE7AA43CDF4BD66F /* MBKuwaitIdBackRecognizerWrapper.h */, - DFEE4D0BAFB948B8939ADB29 /* MBAustriaCombinedRecognizerWrapper.m */, - 11F04DF2BE506DAE13898F38 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h */, - 9F9F4A40B5606D254519C6EC /* MBKuwaitIdFrontRecognizerWrapper.h */, - 8FC4494F8B910E388AAA3A4E /* MBPolandIdFrontRecognizerWrapper.h */, - DE9143C587C9F86755553C04 /* MBUsdlCombinedRecognizerWrapper.h */, - D3E841468C97F57DD7D81F9B /* MBGermanyCombinedRecognizerWrapper.h */, - 013841C0947007BC26FCBE90 /* MBEgyptIdFrontRecognizerWrapper.m */, - DAD94CCE80FF92CE71BE3FEF /* MBCzechiaIdFrontRecognizerWrapper.h */, - 6D4A4533A3C9A1501E112131 /* MBAustriaIdFrontRecognizerWrapper.h */, - C4C34E51A9F6A5A0959A4AC0 /* MBSlovakiaIdFrontRecognizerWrapper.h */, - EE59460D93084248E6D7002B /* MBSwitzerlandPassportRecognizerWrapper.h */, - 3D8747F48A8F2B29970B268B /* MBPassportRecognizerWrapper.h */, + 8A6A439FB32DB00F6AB1BEC5 /* MBBlinkIDSerializationUtils.m */, + 56254B84BF3A8A6805322130 /* Overlays */, + E5284ED7914ECEBC7CD111E0 /* MBSerializationUtils.m */, + 841B4F3183A2B13B87FB42CF /* MBMicroblinkModule.m */, + 15EC4FF2BC9AA4874BED3502 /* MBBlinkIDSerializationUtils.h */, + 68DF494D9E34867C010B46A2 /* Recognizers */, + F6114CD090C93C1276A7246A /* MBMicroblinkModule.h */, + 4B474A33BCEBDCA9A58BD8DA /* MBSerializationUtils.h */, ); - name = Wrappers; - path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers"; + name = MicroblinkModule; + path = "/Users/juraskrlec/Documents/projects/blinkid-react-native/BlinkID/src/ios/MicroblinkModule/MicroblinkModule"; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 59664131A4B5092DB1B1BD2D /* Headers */ = { + 35244B1D9A02DEC1C1095574 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 46F943719B67D496D3D205BE /* MBDocumentOverlaySettingsSerialization.h in Headers */, - A9ED4104BE297CE15832F816 /* MBBarcodeOverlaySettingsSerialization.h in Headers */, - B6604279B8F4B5D697E7659F /* MBBlinkCardOverlaySettingsSerialization.h in Headers */, - DBB74DC2B4492E29589C939C /* MBDocumentVerificationOverlaySettingsSerialization.h in Headers */, - BBF241908F82912419CC424D /* MBBlinkIdOverlaySettingsSerialization.h in Headers */, - B4F4449B8A055AB0A6FB190B /* MBOverlayVCCreator.h in Headers */, - 90E747EC951E07CFF3D708EC /* MBOverlaySerializationUtils.h in Headers */, - 1F7D49ECB53C928285F72B78 /* MBOverlayViewControllerDelegate.h in Headers */, - FB894635AFA71186AC958DC4 /* MBOverlaySettingsSerializers.h in Headers */, - 9A554CE5BAD4F52102C19740 /* MBBlinkIDSerializationUtils.h in Headers */, - BEA542759F03CC551ED47CFF /* MBRecognizerWrapper.h in Headers */, - 08AA4603829F7AEDA97217BF /* MBGermanyIdOldRecognizerWrapper.h in Headers */, - 38BC441A9DFCAF7FFA01EC2C /* MBSloveniaCombinedRecognizerWrapper.h in Headers */, - 54B1448088EE271A18654DCD /* MBCroatiaIdBackRecognizerWrapper.h in Headers */, - 9DAC4CE3A8ECEBD488FBC549 /* MBCzechiaIdBackRecognizerWrapper.h in Headers */, - FFD7496B995BFF0B7AEB43D9 /* MBNigeriaVoterIdBackRecognizerWrapper.h in Headers */, - 56774CFCA930410B7FF3A2F1 /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h in Headers */, - 2E134C2BB209DFE5C85B0F61 /* MBSwedenDlFrontRecognizerWrapper.h in Headers */, - 7D1741B5BB371FB4A9847AA3 /* MBUnitedArabEmiratesIdBackRecognizerWrapper.h in Headers */, - D07B43CE91B6C8654936B7D4 /* MBBelgiumIdBackRecognizerWrapper.h in Headers */, - D9514933A703CE2F82FA5DB5 /* MBSwitzerlandIdFrontRecognizerWrapper.h in Headers */, - 7F6B45AAACBE9AF135AE5202 /* MBSingaporeDlFrontRecognizerWrapper.h in Headers */, - A52C4FAE872C93D6CB19451F /* MBGermanyDlBackRecognizerWrapper.h in Headers */, - 6D424539945F646BCF57EE91 /* MBEudlRecognizerWrapper.h in Headers */, - DB1C4B43B6DD8799E5A2E0F2 /* MBPdf417RecognizerWrapper.h in Headers */, - 3EF24CDB995211727D133721 /* MBBruneiIdFrontRecognizerWrapper.h in Headers */, - EAC247A082AAC96BC187DFBD /* MBItalyDlFrontRecognizerWrapper.h in Headers */, - 4A90482DB2DEB5E1DCB97404 /* MBBruneiResidencePermitFrontRecognizerWrapper.h in Headers */, - FC2E4FD2AD79D459625C8E73 /* MBCroatiaCombinedRecognizerWrapper.h in Headers */, - FAEF4C04A9AB56E550478118 /* MBGermanyPassportRecognizerWrapper.h in Headers */, - 0731404F911CD715F19367AB /* MBSingaporeIdFrontRecognizerWrapper.h in Headers */, - 4EBD444D83DFC8541B91F7FB /* MBSwitzerlandDlFrontRecognizerWrapper.h in Headers */, - 5CCC4971A02D3FA573F729A5 /* MBMalaysiaMyKasFrontRecognizerWrapper.h in Headers */, - 078A4F708E28F9AEC89CDBF0 /* MBMalaysiaMyKadBackRecognizerWrapper.h in Headers */, - DC41437ABB3A234817E9E050 /* MBBarcodeRecognizerWrapper.h in Headers */, - E9C7433E9D41C2BE76C7D18E /* MBBlinkIdCombinedRecognizerWrapper.h in Headers */, - D4BF49248B97B7320C81DB01 /* MBCroatiaIdFrontRecognizerWrapper.h in Headers */, - F4964277BFCC7B0D6512E4FB /* MBSuccessFrameGrabberRecognizerWrapper.h in Headers */, - C2E94DA4AF324E51581AD051 /* MBCyprusIdFrontRecognizerWrapper.h in Headers */, - 112B418582C5A7EE0AE022CA /* MBBlinkCardRecognizerWrapper.h in Headers */, - 59D94038AB11699C9427E8CD /* MBUsdlRecognizerWrapper.h in Headers */, - B4E6428DADC25FF2B11E2F71 /* MBPolandIdBackRecognizerWrapper.h in Headers */, - 48354A7FA7DF2ED298883A06 /* MBBelgiumCombinedRecognizerWrapper.h in Headers */, - 0EBB405DB716D9CCDCB6D5A4 /* MBAustriaIdBackRecognizerWrapper.h in Headers */, - 84BD460EB7E08CDF4AB99C50 /* MBBruneiMilitaryIdBackRecognizerWrapper.h in Headers */, - 417A49B2A2E6C355FA506320 /* MBGermanyIdFrontRecognizerWrapper.h in Headers */, - C77E4CCB920031CD1FA1844A /* MBSloveniaIdFrontRecognizerWrapper.h in Headers */, - 28D849EB95C00B1850F1D8F2 /* MBEgyptIdFrontRecognizerWrapper.h in Headers */, - E8EE4CFCA1ECB5062E1F23BA /* MBAustriaCombinedRecognizerWrapper.h in Headers */, - 7D394E41950773ED41C952EF /* MBSloveniaIdBackRecognizerWrapper.h in Headers */, - 7F344A87B37E77A470359F47 /* MBGermanyDlFrontRecognizerWrapper.h in Headers */, - B0A147A3B59C507235183F67 /* MBHongKongIdFrontRecognizerWrapper.h in Headers */, - 77A4488685695605D9BCEA50 /* MBBlinkIdRecognizerWrapper.h in Headers */, - D4A44788AB4C84F983CBE4FF /* MBAustraliaDlFrontRecognizerWrapper.h in Headers */, - AED64E83B8FA5EF84608CFA7 /* MBCyprusOldIdFrontRecognizerWrapper.h in Headers */, - A1E647B0915124ECA9BD14DA /* MBSimNumberRecognizerWrapper.h in Headers */, - A3D24DD0B9651B1115A68AED /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.h in Headers */, - 5F294A81ABCB5DF563E00625 /* MBSingaporeChangiEmployeeIdRecognizerWrapper.h in Headers */, - 55464DD5BBE5D917786C6683 /* MBColombiaIdFrontRecognizerWrapper.h in Headers */, - 889E4BD091B614E71461E48E /* MBGermanyIdBackRecognizerWrapper.h in Headers */, - 410D4602A6583DBB0BAC26E8 /* MBSlovakiaCombinedRecognizerWrapper.h in Headers */, - ABEE4A209D5B745EE3C2EE60 /* MBNewZealandDlFrontRecognizerWrapper.h in Headers */, - 2C954431BC01B66C4501611C /* MBAustraliaDlBackRecognizerWrapper.h in Headers */, - 13254AADB7349644DB232D56 /* MBVisaRecognizerWrapper.h in Headers */, - B4204FF68CED9E5CDF5A00CE /* MBRomaniaIdFrontRecognizerWrapper.h in Headers */, - 33C64BE599A8AEC8C8FE1462 /* MBMexicoVoterIdFrontRecognizerWrapper.h in Headers */, - F6734D739F4FFDF9366DB313 /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.h in Headers */, - 25DF46FD97B5DACFF7EE9EBA /* MBSpainDlFrontRecognizerWrapper.h in Headers */, - 5ADB45D5BC91F193384DAFC8 /* MBAustriaPassportRecognizerWrapper.h in Headers */, - 6F464E4B8DA9F580AEC519FF /* MBCyprusIdBackRecognizerWrapper.h in Headers */, - 1B0D4EED953D46DD334D58D3 /* MBMoroccoIdFrontRecognizerWrapper.h in Headers */, - 59594CD69B5364BD92D50DB3 /* MBColombiaDlFrontRecognizerWrapper.h in Headers */, - 1D934B8E9318041B2EBC7E5F /* MBDocumentFaceRecognizerWrapper.h in Headers */, - 4D354913A76782098A75856F /* MBJordanCombinedRecognizerWrapper.h in Headers */, - 8E534579B08D92018C5D31B4 /* MBSingaporeCombinedRecognizerWrapper.h in Headers */, - 14F54524B3A46E13BE494B73 /* MBCzechiaCombinedRecognizerWrapper.h in Headers */, - 5C7F4733ADE758D5D72AF92B /* MBCyprusOldIdBackRecognizerWrapper.h in Headers */, - 5A4B4968AF2AEEF0CFF55931 /* MBIndonesiaIdFrontRecognizerWrapper.h in Headers */, - 364B427E964F2DFC2CD18136 /* MBIrelandDlFrontRecognizerWrapper.h in Headers */, - 46C9422DB3870BF0F9A1EE99 /* MBMalaysiaIkadFrontRecognizerWrapper.h in Headers */, - C9C040FB8A169A0943AACB1A /* MBSlovakiaIdBackRecognizerWrapper.h in Headers */, - 16FF4E2C94177D08BFAF5E48 /* MBPolandCombinedRecognizerWrapper.h in Headers */, - 6C8844049572E229242A22FD /* MBMrtdCombinedRecognizerWrapper.h in Headers */, - 4FC84845A57AF783918FE24B /* MBSingaporeIdBackRecognizerWrapper.h in Headers */, - CEC744C4818A0A2D37431279 /* MBMalaysiaMyKadFrontRecognizerWrapper.h in Headers */, - 7C2D4232B28982E99CD45CD1 /* MBMalaysiaMyPrFrontRecognizerWrapper.h in Headers */, - 042C4DF4820FF8BAF95DF5F3 /* MBVinRecognizerWrapper.h in Headers */, - 90434D35983231801B372C0E /* MBBruneiIdBackRecognizerWrapper.h in Headers */, - 206D4AE0A8256898037D541D /* MBSwitzerlandIdBackRecognizerWrapper.h in Headers */, - 5F494AF8B8DBEA3C13DC1C53 /* MBJordanIdFrontRecognizerWrapper.h in Headers */, - B3AA4D43BB400DFE9912A357 /* MBMalaysiaMyTenteraFrontRecognizerWrapper.h in Headers */, - 89694C36BB7B96D50B9C64C8 /* MBColombiaIdBackRecognizerWrapper.h in Headers */, - 1AE14DB0AB88F71AAC42E56A /* MBMalaysiaDlFrontRecognizerWrapper.h in Headers */, - D44048D683C2AD507831290C /* MBMrtdRecognizerWrapper.h in Headers */, - 258D46D995CBE28979FC167B /* MBBelgiumIdFrontRecognizerWrapper.h in Headers */, - 38034F2E955068219AFA2D59 /* MBJordanIdBackRecognizerWrapper.h in Headers */, - 4850478EAE114B4D68EB4A5A /* MBAustriaDlFrontRecognizerWrapper.h in Headers */, - 56FE49AE9A4143CA9CFA7ECB /* MBBlinkCardEliteRecognizerWrapper.h in Headers */, - 836640A58B7A7A4402A81698 /* MBBruneiMilitaryIdFrontRecognizerWrapper.h in Headers */, - 43C34FE4BFAC1E2846E479F8 /* MBMoroccoIdBackRecognizerWrapper.h in Headers */, - ED9740568F860DEBA716D30F /* MBBruneiResidencePermitBackRecognizerWrapper.h in Headers */, - BAA64E0CBF1FAB162022B88F /* MBKuwaitIdBackRecognizerWrapper.h in Headers */, - A1A54A42B9324925EFE7BAC8 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h in Headers */, - C74E4CC9BCBF15C97753E089 /* MBKuwaitIdFrontRecognizerWrapper.h in Headers */, - DA9745B39CEADC2837B23193 /* MBPolandIdFrontRecognizerWrapper.h in Headers */, - 90AD4D05B9124E2AEA1AF3EE /* MBUsdlCombinedRecognizerWrapper.h in Headers */, - DECD4F9B8EDD0575BF445623 /* MBGermanyCombinedRecognizerWrapper.h in Headers */, - CF574A4DAB84A5D402A187AC /* MBCzechiaIdFrontRecognizerWrapper.h in Headers */, - 11F44079B26BC079EDED83CF /* MBAustriaIdFrontRecognizerWrapper.h in Headers */, - 615E420BA1DB5983A3E2B5E1 /* MBSlovakiaIdFrontRecognizerWrapper.h in Headers */, - 02254778B7C10A8CFB7EF5F2 /* MBSwitzerlandPassportRecognizerWrapper.h in Headers */, - 1F9443768F9A2082044AF8F6 /* MBPassportRecognizerWrapper.h in Headers */, - 1DF94C64895E70C66545D384 /* MBRecognizerSerializers.h in Headers */, - 435D442DA17A429878470B76 /* MBMicroblinkModule.h in Headers */, - BB0E4BF3810EBB250A09B658 /* MBSerializationUtils.h in Headers */, + A7664AA89FE7F7F8055CC046 /* MBDocumentOverlaySettingsSerialization.h in Headers */, + 88FD40EBBF30821E6C79D3D0 /* MBDocumentVerificationOverlaySettingsSerialization.h in Headers */, + 4B8243E78FECFD542A4CC7A1 /* MBBlinkIdOverlaySettingsSerialization.h in Headers */, + A517429980E93824DA567BC5 /* MBOverlayVCCreator.h in Headers */, + 626B496084A7F76374CBA493 /* MBOverlaySerializationUtils.h in Headers */, + 5D5E4014A8498F5E9704CC32 /* MBOverlayViewControllerDelegate.h in Headers */, + 22EB4C199BAF99B7BF6226D6 /* MBOverlaySettingsSerializers.h in Headers */, + 49CB4815B6FC3CEAE424F261 /* MBBlinkIDSerializationUtils.h in Headers */, + 4C0D4A908C52BD8DDBE788C5 /* MBRecognizerWrapper.h in Headers */, + B5A043F1B03AF197227B8A01 /* MBBlinkIdCombinedRecognizerWrapper.h in Headers */, + EE064E03A12DF46640BAD1B0 /* MBSuccessFrameGrabberRecognizerWrapper.h in Headers */, + 11D4452F9C37B52603C634A5 /* MBUsdlRecognizerWrapper.h in Headers */, + 959845AA9E8C8FBB613B7A3A /* MBBlinkIdRecognizerWrapper.h in Headers */, + 36A546EE8837B75BC9F7F827 /* MBVisaRecognizerWrapper.h in Headers */, + D3F2403EA807EBCABA3E9144 /* MBDocumentFaceRecognizerWrapper.h in Headers */, + 1A8344D7867A127FFBDF701B /* MBMrtdCombinedRecognizerWrapper.h in Headers */, + DADE470A8AB442061F78B64C /* MBMrtdRecognizerWrapper.h in Headers */, + 41E54F5C87EDAF2AE457B608 /* MBUsdlCombinedRecognizerWrapper.h in Headers */, + 2B604D3DAA96F1987B6734E3 /* MBPassportRecognizerWrapper.h in Headers */, + 3E1C45A29350E5FB17D562C3 /* MBRecognizerSerializers.h in Headers */, + E27F4922ADD48B267F6EAAE9 /* MBMicroblinkModule.h in Headers */, + 96DF42FD82E45B848A6B3FC2 /* MBSerializationUtils.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -941,7 +293,8 @@ A27CCA271E9E57A500BED675 /* Sources */, A27CCA281E9E57A500BED675 /* Frameworks */, A27CCA291E9E57A500BED675 /* CopyFiles */, - 59664131A4B5092DB1B1BD2D /* Headers */, + 35244B1D9A02DEC1C1095574 /* Headers */, + 1A5E44C191C194A762CC6F34 /* Resources */, ); buildRules = ( ); @@ -985,124 +338,42 @@ }; /* End PBXProject section */ +/* Begin PBXResourcesBuildPhase section */ + 1A5E44C191C194A762CC6F34 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 401F494EAFF7532D33CB6D4C /* .gitignore in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ A27CCA271E9E57A500BED675 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - FD5A4D5FA562A1AE09C6D408 /* MBBlinkIDSerializationUtils.m in Sources */, - 9B3C413189BD740BCC313A6B /* MBOverlaySerializationUtils.m in Sources */, - E28F44ADA17D4988DD8BA129 /* MBDocumentVerificationOverlaySettingsSerialization.m in Sources */, - 4835445AA817B0F8CBB99422 /* MBBlinkIdOverlaySettingsSerialization.m in Sources */, - 07C14B53B865E9AC613EED37 /* MBDocumentOverlaySettingsSerialization.m in Sources */, - DDCD4BB68FB5D301C084A91A /* MBBarcodeOverlaySettingsSerialization.m in Sources */, - 153F4996A87A7B0FA09B52DE /* MBBlinkCardOverlaySettingsSerialization.m in Sources */, - A8124D728864B4B4D1F14AC1 /* MBOverlaySettingsSerializers.m in Sources */, - 420447FB9435B54E7F488017 /* MBSerializationUtils.m in Sources */, - A2D54098A319B6B40FAF28F3 /* MBMicroblinkModule.m in Sources */, - 4BC74994AB011E25E49B7A40 /* MBAustraliaDlBackRecognizerWrapper.m in Sources */, - DF104E5AB87D196AB1D4CE05 /* MBNewZealandDlFrontRecognizerWrapper.m in Sources */, - 24964CBAB781666ECEEE7D28 /* MBSlovakiaCombinedRecognizerWrapper.m in Sources */, - 02EB41C797315F0650C1468F /* MBGermanyIdBackRecognizerWrapper.m in Sources */, - F1964B28AE68D6EAE4F88295 /* MBColombiaIdFrontRecognizerWrapper.m in Sources */, - 19DB4C32BC7CBAB68B2F799D /* MBSingaporeChangiEmployeeIdRecognizerWrapper.m in Sources */, - BE424A44A5D36BD03E6FE5DF /* MBCyprusOldIdFrontRecognizerWrapper.m in Sources */, - 84BC41C4B10B1F4084D4B1E9 /* MBSimNumberRecognizerWrapper.m in Sources */, - 81B04923AA2ADA95F050F8A5 /* MBUnitedArabEmiratesDlFrontRecognizerWrapper.m in Sources */, - B3FC48CC89EEAC3CBB4AB478 /* MBAustraliaDlFrontRecognizerWrapper.m in Sources */, - 982B49EBB0751DB5D2AFD5C1 /* MBMalaysiaIkadFrontRecognizerWrapper.m in Sources */, - DAA14B19BA5DD0A636D53E04 /* MBIndonesiaIdFrontRecognizerWrapper.m in Sources */, - B35B43CCA60254FEC75B53F6 /* MBIrelandDlFrontRecognizerWrapper.m in Sources */, - 427A4144BA5667EBD62A4A91 /* MBCyprusOldIdBackRecognizerWrapper.m in Sources */, - 4B0D4AEF99272E2AB19D2DE3 /* MBSingaporeCombinedRecognizerWrapper.m in Sources */, - 5BB2418DB74476DA07EE918C /* MBCzechiaCombinedRecognizerWrapper.m in Sources */, - 27E14B978DF1A8AB7A2D1A25 /* MBJordanCombinedRecognizerWrapper.m in Sources */, - 4C5847AF8C0B20F017DB45A5 /* MBColombiaDlFrontRecognizerWrapper.m in Sources */, - 970A432B8FC2F8832E551250 /* MBDocumentFaceRecognizerWrapper.m in Sources */, - FE3648469C0F1768A65A0518 /* MBMoroccoIdFrontRecognizerWrapper.m in Sources */, - CE3E45B7A2D955E5E8A83AF8 /* MBSpainDlFrontRecognizerWrapper.m in Sources */, - 77734B4082383004EF0E3F2E /* MBUnitedArabEmiratesIdFrontRecognizerWrapper.m in Sources */, - 67A14DF4B5F4DF0880F8F93A /* MBAustriaPassportRecognizerWrapper.m in Sources */, - AE124DF2A5B0AC17FA49D939 /* MBCyprusIdBackRecognizerWrapper.m in Sources */, - 77C9409196F6E02F0531B450 /* MBMexicoVoterIdFrontRecognizerWrapper.m in Sources */, - 6DE34A69A3DB4A73A4DB6184 /* MBRomaniaIdFrontRecognizerWrapper.m in Sources */, - 4F3B417F9241943B7B651C80 /* MBVisaRecognizerWrapper.m in Sources */, - 51C94021B7940E85D34B2836 /* MBBlinkCardEliteRecognizerWrapper.m in Sources */, - 292A446D9F6885834E9C1E82 /* MBAustriaDlFrontRecognizerWrapper.m in Sources */, - 93AD410DA03A85C9253D8FBD /* MBJordanIdBackRecognizerWrapper.m in Sources */, - BACD4B118677B75AAD05A91A /* MBBelgiumIdFrontRecognizerWrapper.m in Sources */, - DD7240B7815463DBAE1AFBC5 /* MBMrtdRecognizerWrapper.m in Sources */, - 8A4B423C972D47F6D0C45731 /* MBMalaysiaMyTenteraFrontRecognizerWrapper.m in Sources */, - C6E34826B882356050944B8D /* MBJordanIdFrontRecognizerWrapper.m in Sources */, - A14945BC9DAE05B39BD05BFB /* MBMalaysiaDlFrontRecognizerWrapper.m in Sources */, - C16549CC989772B4D2E75616 /* MBColombiaIdBackRecognizerWrapper.m in Sources */, - 7F7D474B9ED24B3076674237 /* MBSwitzerlandIdBackRecognizerWrapper.m in Sources */, - 8C014E5D8071446B14A6451D /* MBBruneiIdBackRecognizerWrapper.m in Sources */, - 24CA4E1C904D7FC528B93D74 /* MBVinRecognizerWrapper.m in Sources */, - 178A471B956D2CB795AC5175 /* MBMalaysiaMyPrFrontRecognizerWrapper.m in Sources */, - FA9044069DADA94B9CEB9269 /* MBMalaysiaMyKadFrontRecognizerWrapper.m in Sources */, - F2B245009FF974C015838002 /* MBSingaporeIdBackRecognizerWrapper.m in Sources */, - BE134074A2B4F8CC6F499A0F /* MBMrtdCombinedRecognizerWrapper.m in Sources */, - 60484B9EB4D34820DC8B1A99 /* MBPolandCombinedRecognizerWrapper.m in Sources */, - 7510430B84075B6DD60D41F7 /* MBSlovakiaIdBackRecognizerWrapper.m in Sources */, - 243F491386815FB17E2C1C2B /* MBPassportRecognizerWrapper.m in Sources */, - 722544F6BC4E77131B4BFAE9 /* MBAustriaIdFrontRecognizerWrapper.m in Sources */, - 7D5844CEA4326EB5166745D5 /* MBSlovakiaIdFrontRecognizerWrapper.m in Sources */, - 5949407CBE580CDFB07A6FA8 /* MBSwitzerlandPassportRecognizerWrapper.m in Sources */, - 6E9F4647BE462E7321E00AD2 /* MBCzechiaIdFrontRecognizerWrapper.m in Sources */, - EE284B1B881AC48DB5D43FF0 /* MBUsdlCombinedRecognizerWrapper.m in Sources */, - D13C4324B3CD684A0132ACAF /* MBGermanyCombinedRecognizerWrapper.m in Sources */, - 015246BE9A518C7CD755342B /* MBKuwaitIdFrontRecognizerWrapper.m in Sources */, - B0E84923904F8F8753D52B81 /* MBPolandIdFrontRecognizerWrapper.m in Sources */, - 86B14BDF80CE5B0F5BE991B7 /* MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m in Sources */, - 4B024D74AC83C50E3F5AD838 /* MBKuwaitIdBackRecognizerWrapper.m in Sources */, - 49F943949AE0694812ABFB00 /* MBBruneiResidencePermitBackRecognizerWrapper.m in Sources */, - 54094379A3F04374767D204B /* MBMoroccoIdBackRecognizerWrapper.m in Sources */, - 92EA4C9FBDEC41D77FFF02E7 /* MBBruneiMilitaryIdFrontRecognizerWrapper.m in Sources */, - 56D345F493DFC2991FD94562 /* MBGermanyDlBackRecognizerWrapper.m in Sources */, - D4334A76A64044831F8586C1 /* MBSwitzerlandIdFrontRecognizerWrapper.m in Sources */, - 3C9545EEB0108A74C134D254 /* MBSingaporeDlFrontRecognizerWrapper.m in Sources */, - 0CBA4CF1BC81C3968FF415C7 /* MBBelgiumIdBackRecognizerWrapper.m in Sources */, - D20C4F3788237A78099E8758 /* MBUnitedArabEmiratesIdBackRecognizerWrapper.m in Sources */, - E76F4C69850BD91F4F0EF973 /* MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m in Sources */, - F8524DE3BFA56B225A7861F1 /* MBSwedenDlFrontRecognizerWrapper.m in Sources */, - FBD24ABC8825C651D0C4B67F /* MBNigeriaVoterIdBackRecognizerWrapper.m in Sources */, - 18E446BAB2D5175C5E16D8F8 /* MBCzechiaIdBackRecognizerWrapper.m in Sources */, - 75314A2DB2A0A7E469A5C6B9 /* MBCroatiaIdBackRecognizerWrapper.m in Sources */, - EA9147EDAEC4FE986840B405 /* MBGermanyIdOldRecognizerWrapper.m in Sources */, - B83B4AEE9120930EF00312CA /* MBSloveniaCombinedRecognizerWrapper.m in Sources */, - 7BB5498A9BBD95EF226B5040 /* MBMalaysiaMyKasFrontRecognizerWrapper.m in Sources */, - 8CED4983A4FBFE30ED4124FD /* MBMalaysiaMyKadBackRecognizerWrapper.m in Sources */, - CBB446B6A8FC82F88733431D /* MBSingaporeIdFrontRecognizerWrapper.m in Sources */, - 6B2F4D60B8703942B8C14D97 /* MBSwitzerlandDlFrontRecognizerWrapper.m in Sources */, - 3A054D378D690FC656BB5723 /* MBGermanyPassportRecognizerWrapper.m in Sources */, - F5704DF89290529A07837B39 /* MBCroatiaCombinedRecognizerWrapper.m in Sources */, - B0B44810BB185E38ED112208 /* MBBruneiResidencePermitFrontRecognizerWrapper.m in Sources */, - 47D644A2BAB9981E745F5AB2 /* MBItalyDlFrontRecognizerWrapper.m in Sources */, - 690A44A5BBB35A2CB6A75B90 /* MBBruneiIdFrontRecognizerWrapper.m in Sources */, - 3BD5408C9017DBFC2CB18A96 /* MBPdf417RecognizerWrapper.m in Sources */, - E73E4051851E0095CF659722 /* MBEudlRecognizerWrapper.m in Sources */, - 5F674CA0B095B8959F246BDD /* MBSloveniaIdFrontRecognizerWrapper.m in Sources */, - 993F466C8961D5DEED4F89F9 /* MBBruneiMilitaryIdBackRecognizerWrapper.m in Sources */, - 63C54BC1B6D6741C87303D1C /* MBAustriaIdBackRecognizerWrapper.m in Sources */, - 4C1346E5BFD0720B06C80F41 /* MBGermanyIdFrontRecognizerWrapper.m in Sources */, - 297B4C3F8CB48669B4FC4A6D /* MBBelgiumCombinedRecognizerWrapper.m in Sources */, - 2C4A45E18CE8D04C8E77904C /* MBUsdlRecognizerWrapper.m in Sources */, - 8F404E7DA50A44CBC894E480 /* MBPolandIdBackRecognizerWrapper.m in Sources */, - A7FB4B7DA29B2C3D043B17E3 /* MBBlinkCardRecognizerWrapper.m in Sources */, - D5274E49B057EB6FC2CA61D5 /* MBCyprusIdFrontRecognizerWrapper.m in Sources */, - 86EF403797BEFFB4C1BE0CEC /* MBBlinkIdCombinedRecognizerWrapper.m in Sources */, - 47F744ED85E7995D9B0EA700 /* MBSuccessFrameGrabberRecognizerWrapper.m in Sources */, - 77304DD4A32D3BA4B9D5E9D4 /* MBCroatiaIdFrontRecognizerWrapper.m in Sources */, - 7B104511976AB20AB5932274 /* MBBarcodeRecognizerWrapper.m in Sources */, - F4334DFDB54849D6C94D2A4D /* MBBlinkIdRecognizerWrapper.m in Sources */, - C25442BF88EB85C8F13FB32D /* MBHongKongIdFrontRecognizerWrapper.m in Sources */, - 7E304532938774DC2E5C8446 /* MBGermanyDlFrontRecognizerWrapper.m in Sources */, - 56494B67AD730B61595B6DA2 /* MBSloveniaIdBackRecognizerWrapper.m in Sources */, - FA6648C2ACB6C29609DC900F /* MBAustriaCombinedRecognizerWrapper.m in Sources */, - A9D241339A409632D1F17E18 /* MBEgyptIdFrontRecognizerWrapper.m in Sources */, - 0E084F339F0E7C8EE2619E07 /* MBRecognizerWrapper.m in Sources */, - 006846F687A2CE8277516BD8 /* MBRecognizerSerializers.m in Sources */, + FFD248F8A1C4003A7445B8C1 /* MBBlinkIDSerializationUtils.m in Sources */, + E23C460C9D7D3F6DE26FE365 /* MBOverlaySerializationUtils.m in Sources */, + 951C497EA3D3FE7CA62FF23E /* MBDocumentVerificationOverlaySettingsSerialization.m in Sources */, + FEA945B48A41EE4C50925785 /* MBBlinkIdOverlaySettingsSerialization.m in Sources */, + 5B914698A70B6405C7AE0B64 /* MBDocumentOverlaySettingsSerialization.m in Sources */, + 165043C588AEE7D4CD7D4C3A /* MBOverlaySettingsSerializers.m in Sources */, + 47F542B5B4CE00C2E299BFD1 /* MBSerializationUtils.m in Sources */, + 32C44C31945529EB76EAB228 /* MBMicroblinkModule.m in Sources */, + 6A88420F8E07FE8D8DDFA07B /* MBDocumentFaceRecognizerWrapper.m in Sources */, + 135E420D9D89F1067E9695C4 /* MBVisaRecognizerWrapper.m in Sources */, + 1AA74851B7F5DF1301126B5D /* MBMrtdRecognizerWrapper.m in Sources */, + C01042F89A826C94C448C24C /* MBMrtdCombinedRecognizerWrapper.m in Sources */, + 9BC04874BB093B9D037A472C /* MBPassportRecognizerWrapper.m in Sources */, + 1E674699B8CC40D54780687F /* MBUsdlCombinedRecognizerWrapper.m in Sources */, + DD194FD48740B3914BEEBF26 /* MBUsdlRecognizerWrapper.m in Sources */, + 309C4354A576906748A10980 /* MBBlinkIdCombinedRecognizerWrapper.m in Sources */, + 1CF74EFCAE13300CEB40044F /* MBSuccessFrameGrabberRecognizerWrapper.m in Sources */, + 6A3844079D59A34E730A0BD5 /* MBBlinkIdRecognizerWrapper.m in Sources */, + 947D4C4E9AAD454961239FFB /* MBRecognizerWrapper.m in Sources */, + 26F546BC9F4DCD183FDAD401 /* MBRecognizerSerializers.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1300,3 +571,4 @@ }; rootObject = A27CCA231E9E57A500BED675 /* Project object */; } + diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/MBOverlaySettingsSerializers.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/MBOverlaySettingsSerializers.m index 3db2475..31da910 100644 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/MBOverlaySettingsSerializers.m +++ b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/MBOverlaySettingsSerializers.m @@ -8,9 +8,6 @@ #import "MBOverlaySettingsSerializers.h" #import "MBOverlayVCCreator.h" - -#import "MBBarcodeOverlaySettingsSerialization.h" -#import "MBBlinkCardOverlaySettingsSerialization.h" #import "MBDocumentOverlaySettingsSerialization.h" #import "MBDocumentVerificationOverlaySettingsSerialization.h" #import "MBBlinkIdOverlaySettingsSerialization.h" @@ -31,9 +28,6 @@ - (instancetype)init { self = [super init]; if (self) { _overlayCreators = [[NSMutableDictionary alloc] init]; - - [self registerMapping:[[MBBarcodeOverlaySettingsSerialization alloc] init]]; - [self registerMapping:[[MBBlinkCardOverlaySettingsSerialization alloc] init]]; [self registerMapping:[[MBDocumentOverlaySettingsSerialization alloc] init]]; [self registerMapping:[[MBDocumentVerificationOverlaySettingsSerialization alloc] init]]; [self registerMapping:[[MBBlinkIdOverlaySettingsSerialization alloc] init]]; diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/.gitignore b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.h deleted file mode 100644 index 35abdb5..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// MBBarcodeOverlaySettingsSerialization.h -// BlinkIdDevDemo -// -// Created by DoDo on 04/06/2018. -// - -#import "MBOverlayVCCreator.h" - -#import - -@interface MBBarcodeOverlaySettingsSerialization : NSObject - -@end diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.m deleted file mode 100644 index d5ab8ac..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBarcodeOverlaySettingsSerialization.m +++ /dev/null @@ -1,45 +0,0 @@ -// -// MBBarcodeOverlaySettingsSerialization.m -// BlinkIdDevDemo -// -// Created by DoDo on 04/06/2018. -// - -#import "MBBarcodeOverlaySettingsSerialization.h" -#import "MBOverlaySerializationUtils.h" - -@interface MBBarcodeOverlaySettingsSerialization () - -@property (nonatomic, weak) id delegate; - -@end - -@implementation MBBarcodeOverlaySettingsSerialization - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BarcodeOverlaySettings"; - } - return self; -} - --(MBOverlayViewController *) createOverlayViewController:(NSDictionary *)jsonOverlaySettings recognizerCollection:(MBRecognizerCollection*)recognizerCollection delegate:(id) delegate { - // no settings deserialized at the moment - MBBarcodeOverlaySettings *sett = [[MBBarcodeOverlaySettings alloc] init]; - self.delegate = delegate; - [MBOverlaySerializationUtils extractCommonOverlaySettings:jsonOverlaySettings overlaySettings:sett]; - return [[MBBarcodeOverlayViewController alloc] initWithSettings:sett recognizerCollection:recognizerCollection delegate:self]; -} - -- (void)barcodeOverlayViewControllerDidFinishScanning:(nonnull MBBarcodeOverlayViewController *)barcodeOverlayViewController state:(MBRecognizerResultState)state { - [self.delegate overlayViewControllerDidFinishScanning:barcodeOverlayViewController state:state]; -} - -- (void)barcodeOverlayViewControllerDidTapClose:(nonnull MBBarcodeOverlayViewController *)barcodeOverlayViewController { - [self.delegate overlayDidTapClose:barcodeOverlayViewController]; -} - -@end diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.h deleted file mode 100644 index 967cd3b..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// MBBlinkCardOverlaySettingsSerialization.h -// BlinkIdDevDemo -// -// Created by DoDo on 04/06/2018. -// - -#import "MBOverlayVCCreator.h" - -#import - -@interface MBBlinkCardOverlaySettingsSerialization : NSObject - -@end diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.m deleted file mode 100644 index b6e800d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Overlays/Serialization/MBBlinkCardOverlaySettingsSerialization.m +++ /dev/null @@ -1,52 +0,0 @@ -// -// MBBlinkCardOverlaySettingsSerialization.m -// BlinkIdDevDemo -// -// Created by DoDo on 04/06/2018. -// - -#import "MBBlinkCardOverlaySettingsSerialization.h" - -@interface MBBlinkCardOverlaySettingsSerialization () - -@property (nonatomic, weak) id delegate; - -@end - -@implementation MBBlinkCardOverlaySettingsSerialization - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BlinkCardOverlaySettings"; - } - return self; -} - --(MBOverlayViewController *) createOverlayViewController:(NSDictionary *)jsonOverlaySettings recognizerCollection:(MBRecognizerCollection*)recognizerCollection delegate:(id) delegate { - // no settings deserialized at the moment - MBBlinkCardOverlaySettings *sett = [[MBBlinkCardOverlaySettings alloc] init]; - self.delegate = delegate; - - { - id glareMessage = [jsonOverlaySettings valueForKey:@"glareMessage"]; - if (glareMessage != nil) { - sett.glareStatusMessage = (NSString *)glareMessage; - } - } - - return [[MBBlinkCardOverlayViewController alloc] initWithSettings:sett recognizerCollection:recognizerCollection delegate:self]; -} - - -- (void)blinkCardOverlayViewControllerDidFinishScanning:(nonnull MBBlinkCardOverlayViewController *)blinkCardOverlayViewController state:(MBRecognizerResultState)state { - [self.delegate overlayViewControllerDidFinishScanning:blinkCardOverlayViewController state:state]; -} - -- (void)blinkCardOverlayViewControllerDidTapClose:(nonnull MBBlinkCardOverlayViewController *)blinkCardOverlayViewController { - [self.delegate overlayDidTapClose:blinkCardOverlayViewController]; -} - -@end diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/MBRecognizerSerializers.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/MBRecognizerSerializers.m index 3287de1..d67dcc6 100644 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/MBRecognizerSerializers.m +++ b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/MBRecognizerSerializers.m @@ -2,103 +2,12 @@ #import "MBRecognizerWrapper.h" #import "MBSuccessFrameGrabberRecognizerWrapper.h" -#import "MBAustraliaDlBackRecognizerWrapper.h" -#import "MBAustraliaDlFrontRecognizerWrapper.h" -#import "MBAustriaCombinedRecognizerWrapper.h" -#import "MBAustriaDlFrontRecognizerWrapper.h" -#import "MBAustriaIdBackRecognizerWrapper.h" -#import "MBAustriaIdFrontRecognizerWrapper.h" -#import "MBAustriaPassportRecognizerWrapper.h" -#import "MBBarcodeRecognizerWrapper.h" -#import "MBBelgiumCombinedRecognizerWrapper.h" -#import "MBBelgiumIdBackRecognizerWrapper.h" -#import "MBBelgiumIdFrontRecognizerWrapper.h" -#import "MBBlinkCardEliteRecognizerWrapper.h" -#import "MBBlinkCardRecognizerWrapper.h" #import "MBBlinkIdCombinedRecognizerWrapper.h" #import "MBBlinkIdRecognizerWrapper.h" -#import "MBBruneiIdBackRecognizerWrapper.h" -#import "MBBruneiIdFrontRecognizerWrapper.h" -#import "MBBruneiMilitaryIdBackRecognizerWrapper.h" -#import "MBBruneiMilitaryIdFrontRecognizerWrapper.h" -#import "MBBruneiResidencePermitBackRecognizerWrapper.h" -#import "MBBruneiResidencePermitFrontRecognizerWrapper.h" -#import "MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h" -#import "MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h" -#import "MBColombiaDlFrontRecognizerWrapper.h" -#import "MBColombiaIdBackRecognizerWrapper.h" -#import "MBColombiaIdFrontRecognizerWrapper.h" -#import "MBCroatiaCombinedRecognizerWrapper.h" -#import "MBCroatiaIdBackRecognizerWrapper.h" -#import "MBCroatiaIdFrontRecognizerWrapper.h" -#import "MBCyprusIdBackRecognizerWrapper.h" -#import "MBCyprusIdFrontRecognizerWrapper.h" -#import "MBCyprusOldIdBackRecognizerWrapper.h" -#import "MBCyprusOldIdFrontRecognizerWrapper.h" -#import "MBCzechiaCombinedRecognizerWrapper.h" -#import "MBCzechiaIdBackRecognizerWrapper.h" -#import "MBCzechiaIdFrontRecognizerWrapper.h" #import "MBDocumentFaceRecognizerWrapper.h" -#import "MBEgyptIdFrontRecognizerWrapper.h" -#import "MBEudlRecognizerWrapper.h" -#import "MBGermanyCombinedRecognizerWrapper.h" -#import "MBGermanyDlBackRecognizerWrapper.h" -#import "MBGermanyDlFrontRecognizerWrapper.h" -#import "MBGermanyIdBackRecognizerWrapper.h" -#import "MBGermanyIdFrontRecognizerWrapper.h" -#import "MBGermanyIdOldRecognizerWrapper.h" -#import "MBGermanyPassportRecognizerWrapper.h" -#import "MBHongKongIdFrontRecognizerWrapper.h" -#import "MBIndonesiaIdFrontRecognizerWrapper.h" -#import "MBIrelandDlFrontRecognizerWrapper.h" -#import "MBItalyDlFrontRecognizerWrapper.h" -#import "MBJordanCombinedRecognizerWrapper.h" -#import "MBJordanIdBackRecognizerWrapper.h" -#import "MBJordanIdFrontRecognizerWrapper.h" -#import "MBKuwaitIdBackRecognizerWrapper.h" -#import "MBKuwaitIdFrontRecognizerWrapper.h" -#import "MBMalaysiaDlFrontRecognizerWrapper.h" -#import "MBMalaysiaIkadFrontRecognizerWrapper.h" -#import "MBMalaysiaMyKadBackRecognizerWrapper.h" -#import "MBMalaysiaMyKadFrontRecognizerWrapper.h" -#import "MBMalaysiaMyKasFrontRecognizerWrapper.h" -#import "MBMalaysiaMyPrFrontRecognizerWrapper.h" -#import "MBMalaysiaMyTenteraFrontRecognizerWrapper.h" -#import "MBMexicoVoterIdFrontRecognizerWrapper.h" -#import "MBMoroccoIdBackRecognizerWrapper.h" -#import "MBMoroccoIdFrontRecognizerWrapper.h" #import "MBMrtdCombinedRecognizerWrapper.h" #import "MBMrtdRecognizerWrapper.h" -#import "MBNewZealandDlFrontRecognizerWrapper.h" -#import "MBNigeriaVoterIdBackRecognizerWrapper.h" #import "MBPassportRecognizerWrapper.h" -#import "MBPdf417RecognizerWrapper.h" -#import "MBPolandCombinedRecognizerWrapper.h" -#import "MBPolandIdBackRecognizerWrapper.h" -#import "MBPolandIdFrontRecognizerWrapper.h" -#import "MBRomaniaIdFrontRecognizerWrapper.h" -#import "MBSimNumberRecognizerWrapper.h" -#import "MBSingaporeChangiEmployeeIdRecognizerWrapper.h" -#import "MBSingaporeCombinedRecognizerWrapper.h" -#import "MBSingaporeDlFrontRecognizerWrapper.h" -#import "MBSingaporeIdBackRecognizerWrapper.h" -#import "MBSingaporeIdFrontRecognizerWrapper.h" -#import "MBSlovakiaCombinedRecognizerWrapper.h" -#import "MBSlovakiaIdBackRecognizerWrapper.h" -#import "MBSlovakiaIdFrontRecognizerWrapper.h" -#import "MBSloveniaCombinedRecognizerWrapper.h" -#import "MBSloveniaIdBackRecognizerWrapper.h" -#import "MBSloveniaIdFrontRecognizerWrapper.h" -#import "MBSpainDlFrontRecognizerWrapper.h" -#import "MBSwedenDlFrontRecognizerWrapper.h" -#import "MBSwitzerlandDlFrontRecognizerWrapper.h" -#import "MBSwitzerlandIdBackRecognizerWrapper.h" -#import "MBSwitzerlandIdFrontRecognizerWrapper.h" -#import "MBSwitzerlandPassportRecognizerWrapper.h" -#import "MBUnitedArabEmiratesDlFrontRecognizerWrapper.h" -#import "MBUnitedArabEmiratesIdBackRecognizerWrapper.h" -#import "MBUnitedArabEmiratesIdFrontRecognizerWrapper.h" -#import "MBVinRecognizerWrapper.h" #import "MBVisaRecognizerWrapper.h" #import "MBUsdlRecognizerWrapper.h" #import "MBUsdlCombinedRecognizerWrapper.h" @@ -121,103 +30,12 @@ - (instancetype)init { if (self) { _recognizerSerializers = [[NSMutableDictionary alloc] init]; [self registerCreator:[[MBSuccessFrameGrabberRecognizerCreator alloc] init]]; - [self registerCreator:[[MBAustraliaDlBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBAustraliaDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBAustriaCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBAustriaDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBAustriaIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBAustriaIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBAustriaPassportRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBarcodeRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBelgiumCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBelgiumIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBelgiumIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBlinkCardEliteRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBlinkCardRecognizerCreator alloc] init]]; [self registerCreator:[[MBBlinkIdCombinedRecognizerCreator alloc] init]]; [self registerCreator:[[MBBlinkIdRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiMilitaryIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiMilitaryIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiResidencePermitBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiResidencePermitFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiTemporaryResidencePermitBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBBruneiTemporaryResidencePermitFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBColombiaDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBColombiaIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBColombiaIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCroatiaCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCroatiaIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCroatiaIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCyprusIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCyprusIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCyprusOldIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCyprusOldIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCzechiaCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCzechiaIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBCzechiaIdFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBDocumentFaceRecognizerCreator alloc] init]]; - [self registerCreator:[[MBEgyptIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBEudlRecognizerCreator alloc] init]]; - [self registerCreator:[[MBGermanyCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBGermanyDlBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBGermanyDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBGermanyIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBGermanyIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBGermanyIdOldRecognizerCreator alloc] init]]; - [self registerCreator:[[MBGermanyPassportRecognizerCreator alloc] init]]; - [self registerCreator:[[MBHongKongIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBIndonesiaIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBIrelandDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBItalyDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBJordanCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBJordanIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBJordanIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBKuwaitIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBKuwaitIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMalaysiaDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMalaysiaIkadFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMalaysiaMyKadBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMalaysiaMyKadFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMalaysiaMyKasFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMalaysiaMyPrFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMalaysiaMyTenteraFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMexicoVoterIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMoroccoIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBMoroccoIdFrontRecognizerCreator alloc] init]]; [self registerCreator:[[MBMrtdCombinedRecognizerCreator alloc] init]]; [self registerCreator:[[MBMrtdRecognizerCreator alloc] init]]; - [self registerCreator:[[MBNewZealandDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBNigeriaVoterIdBackRecognizerCreator alloc] init]]; [self registerCreator:[[MBPassportRecognizerCreator alloc] init]]; - [self registerCreator:[[MBPdf417RecognizerCreator alloc] init]]; - [self registerCreator:[[MBPolandCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBPolandIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBPolandIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBRomaniaIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSimNumberRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSingaporeChangiEmployeeIdRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSingaporeCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSingaporeDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSingaporeIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSingaporeIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSlovakiaCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSlovakiaIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSlovakiaIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSloveniaCombinedRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSloveniaIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSloveniaIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSpainDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSwedenDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSwitzerlandDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSwitzerlandIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSwitzerlandIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBSwitzerlandPassportRecognizerCreator alloc] init]]; - [self registerCreator:[[MBUnitedArabEmiratesDlFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBUnitedArabEmiratesIdBackRecognizerCreator alloc] init]]; - [self registerCreator:[[MBUnitedArabEmiratesIdFrontRecognizerCreator alloc] init]]; - [self registerCreator:[[MBVinRecognizerCreator alloc] init]]; [self registerCreator:[[MBVisaRecognizerCreator alloc] init]]; [self registerCreator:[[MBUsdlRecognizerCreator alloc] init]]; [self registerCreator:[[MBUsdlCombinedRecognizerCreator alloc] init]]; diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.h deleted file mode 100644 index a4133ae..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBAustraliaDlBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.m deleted file mode 100644 index ad28cd1..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlBackRecognizerWrapper.m +++ /dev/null @@ -1,89 +0,0 @@ -#import "MBAustraliaDlBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBAustraliaDlBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"AustraliaDlBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBAustraliaDlBackRecognizer *recognizer = [[MBAustraliaDlBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id extractLicenceNumber = [jsonRecognizer valueForKey:@"extractLicenceNumber"]; - if (extractLicenceNumber != nil) { - recognizer.extractLicenceNumber = [(NSNumber *)extractLicenceNumber boolValue]; - } - } - { - id extractLicenseExpiry = [jsonRecognizer valueForKey:@"extractLicenseExpiry"]; - if (extractLicenseExpiry != nil) { - recognizer.extractLicenseExpiry = [(NSNumber *)extractLicenseExpiry boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBAustraliaDlBackRecognizer (JsonSerialization) -@end - -@implementation MBAustraliaDlBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.licenceExpiry] forKey:@"licenceExpiry"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.h deleted file mode 100644 index cd9494e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBAustraliaDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.m deleted file mode 100644 index 0478046..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustraliaDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,117 +0,0 @@ -#import "MBAustraliaDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBAustraliaDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"AustraliaDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBAustraliaDlFrontRecognizer *recognizer = [[MBAustraliaDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id extractLicenseExpiry = [jsonRecognizer valueForKey:@"extractLicenseExpiry"]; - if (extractLicenseExpiry != nil) { - recognizer.extractLicenseExpiry = [(NSNumber *)extractLicenseExpiry boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBAustraliaDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBAustraliaDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.licenceExpiry] forKey:@"licenceExpiry"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.licenceType forKey:@"licenceType"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.h deleted file mode 100644 index ac7f642..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBAustriaCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.m deleted file mode 100644 index 1126ee1..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaCombinedRecognizerWrapper.m +++ /dev/null @@ -1,190 +0,0 @@ -#import "MBAustriaCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBAustriaCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"AustriaCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBAustriaCombinedRecognizer *recognizer = [[MBAustriaCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssuance = [jsonRecognizer valueForKey:@"extractDateOfIssuance"]; - if (extractDateOfIssuance != nil) { - recognizer.extractDateOfIssuance = [(NSNumber *)extractDateOfIssuance boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractHeight = [jsonRecognizer valueForKey:@"extractHeight"]; - if (extractHeight != nil) { - recognizer.extractHeight = [(NSNumber *)extractHeight boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPassportNumber = [jsonRecognizer valueForKey:@"extractPassportNumber"]; - if (extractPassportNumber != nil) { - recognizer.extractPassportNumber = [(NSNumber *)extractPassportNumber boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractPrincipalResidence = [jsonRecognizer valueForKey:@"extractPrincipalResidence"]; - if (extractPrincipalResidence != nil) { - recognizer.extractPrincipalResidence = [(NSNumber *)extractPrincipalResidence boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBAustriaCombinedRecognizer (JsonSerialization) -@end - -@implementation MBAustriaCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssuance] forKey:@"dateOfIssuance"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:self.result.eyeColour forKey:@"eyeColour"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.givenName forKey:@"givenName"]; - [jsonResult setValue:self.result.height forKey:@"height"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrtdVerified] forKey:@"mrtdVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.principalResidence forKey:@"principalResidence"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.h deleted file mode 100644 index f293e68..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBAustriaDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.m deleted file mode 100644 index 84da0cc..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,144 +0,0 @@ -#import "MBAustriaDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBAustriaDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"AustriaDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBAustriaDlFrontRecognizer *recognizer = [[MBAustriaDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractVehicleCategories = [jsonRecognizer valueForKey:@"extractVehicleCategories"]; - if (extractVehicleCategories != nil) { - recognizer.extractVehicleCategories = [(NSNumber *)extractVehicleCategories boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBAustriaDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBAustriaDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.vehicleCategories forKey:@"vehicleCategories"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.h deleted file mode 100644 index c3ffa2e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBAustriaIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.m deleted file mode 100644 index 36f5cf3..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdBackRecognizerWrapper.m +++ /dev/null @@ -1,99 +0,0 @@ -#import "MBAustriaIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBAustriaIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"AustriaIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBAustriaIdBackRecognizer *recognizer = [[MBAustriaIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfIssuance = [jsonRecognizer valueForKey:@"extractDateOfIssuance"]; - if (extractDateOfIssuance != nil) { - recognizer.extractDateOfIssuance = [(NSNumber *)extractDateOfIssuance boolValue]; - } - } - { - id extractHeight = [jsonRecognizer valueForKey:@"extractHeight"]; - if (extractHeight != nil) { - recognizer.extractHeight = [(NSNumber *)extractHeight boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractPrincipalResidence = [jsonRecognizer valueForKey:@"extractPrincipalResidence"]; - if (extractPrincipalResidence != nil) { - recognizer.extractPrincipalResidence = [(NSNumber *)extractPrincipalResidence boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBAustriaIdBackRecognizer (JsonSerialization) -@end - -@implementation MBAustriaIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssuance] forKey:@"dateOfIssuance"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:self.result.eyeColour forKey:@"eyeColour"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.height forKey:@"height"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.principalResidence forKey:@"principalResidence"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.h deleted file mode 100644 index 404c7cf..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBAustriaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.m deleted file mode 100644 index bf1d1b0..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,116 +0,0 @@ -#import "MBAustriaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBAustriaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"AustriaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBAustriaIdFrontRecognizer *recognizer = [[MBAustriaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBAustriaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBAustriaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenName forKey:@"givenName"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.h deleted file mode 100644 index b3a3e7e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBAustriaPassportRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.m deleted file mode 100644 index d4c1bfd..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBAustriaPassportRecognizerWrapper.m +++ /dev/null @@ -1,165 +0,0 @@ -#import "MBAustriaPassportRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBAustriaPassportRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"AustriaPassportRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBAustriaPassportRecognizer *recognizer = [[MBAustriaPassportRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractHeight = [jsonRecognizer valueForKey:@"extractHeight"]; - if (extractHeight != nil) { - recognizer.extractHeight = [(NSNumber *)extractHeight boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPassportNumber = [jsonRecognizer valueForKey:@"extractPassportNumber"]; - if (extractPassportNumber != nil) { - recognizer.extractPassportNumber = [(NSNumber *)extractPassportNumber boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBAustriaPassportRecognizer (JsonSerialization) -@end - -@implementation MBAustriaPassportRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenName forKey:@"givenName"]; - [jsonResult setValue:self.result.height forKey:@"height"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.passportNumber forKey:@"passportNumber"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.h deleted file mode 100644 index cdba3eb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBarcodeRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.m deleted file mode 100644 index e29cc33..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBarcodeRecognizerWrapper.m +++ /dev/null @@ -1,142 +0,0 @@ -#import "MBBarcodeRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBarcodeRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BarcodeRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBarcodeRecognizer *recognizer = [[MBBarcodeRecognizer alloc] init]; - { - id autoScaleDetection = [jsonRecognizer valueForKey:@"autoScaleDetection"]; - if (autoScaleDetection != nil) { - recognizer.autoScaleDetection = [(NSNumber *)autoScaleDetection boolValue]; - } - } - { - id nullQuietZoneAllowed = [jsonRecognizer valueForKey:@"nullQuietZoneAllowed"]; - if (nullQuietZoneAllowed != nil) { - recognizer.nullQuietZoneAllowed = [(NSNumber *)nullQuietZoneAllowed boolValue]; - } - } - { - id readCode39AsExtendedData = [jsonRecognizer valueForKey:@"readCode39AsExtendedData"]; - if (readCode39AsExtendedData != nil) { - recognizer.readCode39AsExtendedData = [(NSNumber *)readCode39AsExtendedData boolValue]; - } - } - { - id scanAztecCode = [jsonRecognizer valueForKey:@"scanAztecCode"]; - if (scanAztecCode != nil) { - recognizer.scanAztecCode = [(NSNumber *)scanAztecCode boolValue]; - } - } - { - id scanCode128 = [jsonRecognizer valueForKey:@"scanCode128"]; - if (scanCode128 != nil) { - recognizer.scanCode128 = [(NSNumber *)scanCode128 boolValue]; - } - } - { - id scanCode39 = [jsonRecognizer valueForKey:@"scanCode39"]; - if (scanCode39 != nil) { - recognizer.scanCode39 = [(NSNumber *)scanCode39 boolValue]; - } - } - { - id scanDataMatrix = [jsonRecognizer valueForKey:@"scanDataMatrix"]; - if (scanDataMatrix != nil) { - recognizer.scanDataMatrix = [(NSNumber *)scanDataMatrix boolValue]; - } - } - { - id scanEan13 = [jsonRecognizer valueForKey:@"scanEan13"]; - if (scanEan13 != nil) { - recognizer.scanEan13 = [(NSNumber *)scanEan13 boolValue]; - } - } - { - id scanEan8 = [jsonRecognizer valueForKey:@"scanEan8"]; - if (scanEan8 != nil) { - recognizer.scanEan8 = [(NSNumber *)scanEan8 boolValue]; - } - } - { - id scanInverse = [jsonRecognizer valueForKey:@"scanInverse"]; - if (scanInverse != nil) { - recognizer.scanInverse = [(NSNumber *)scanInverse boolValue]; - } - } - { - id scanItf = [jsonRecognizer valueForKey:@"scanItf"]; - if (scanItf != nil) { - recognizer.scanItf = [(NSNumber *)scanItf boolValue]; - } - } - { - id scanPdf417 = [jsonRecognizer valueForKey:@"scanPdf417"]; - if (scanPdf417 != nil) { - recognizer.scanPdf417 = [(NSNumber *)scanPdf417 boolValue]; - } - } - { - id scanQrCode = [jsonRecognizer valueForKey:@"scanQrCode"]; - if (scanQrCode != nil) { - recognizer.scanQrCode = [(NSNumber *)scanQrCode boolValue]; - } - } - { - id scanUncertain = [jsonRecognizer valueForKey:@"scanUncertain"]; - if (scanUncertain != nil) { - recognizer.scanUncertain = [(NSNumber *)scanUncertain boolValue]; - } - } - { - id scanUpca = [jsonRecognizer valueForKey:@"scanUpca"]; - if (scanUpca != nil) { - recognizer.scanUpca = [(NSNumber *)scanUpca boolValue]; - } - } - { - id scanUpce = [jsonRecognizer valueForKey:@"scanUpce"]; - if (scanUpce != nil) { - recognizer.scanUpce = [(NSNumber *)scanUpce boolValue]; - } - } - { - id slowerThoroughScan = [jsonRecognizer valueForKey:@"slowerThoroughScan"]; - if (slowerThoroughScan != nil) { - recognizer.slowerThoroughScan = [(NSNumber *)slowerThoroughScan boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBarcodeRecognizer (JsonSerialization) -@end - -@implementation MBBarcodeRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[NSNumber numberWithInteger:(self.result.barcodeType + 1)] forKey:@"barcodeType"]; - [jsonResult setValue:[self.result.rawData base64EncodedStringWithOptions:0] forKey:@"rawData"]; - [jsonResult setValue:self.result.stringData forKey:@"stringData"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.uncertain] forKey:@"uncertain"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.h deleted file mode 100644 index 38db895..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBelgiumCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.m deleted file mode 100644 index 09a37d2..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumCombinedRecognizerWrapper.m +++ /dev/null @@ -1,94 +0,0 @@ -#import "MBBelgiumCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBelgiumCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BelgiumCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBelgiumCombinedRecognizer *recognizer = [[MBBelgiumCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBelgiumCombinedRecognizer (JsonSerialization) -@end - -@implementation MBBelgiumCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.cardNumber forKey:@"cardNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.h deleted file mode 100644 index ab58bac..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBelgiumIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.m deleted file mode 100644 index 04a2cab..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdBackRecognizerWrapper.m +++ /dev/null @@ -1,62 +0,0 @@ -#import "MBBelgiumIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBelgiumIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BelgiumIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBelgiumIdBackRecognizer *recognizer = [[MBBelgiumIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBelgiumIdBackRecognizer (JsonSerialization) -@end - -@implementation MBBelgiumIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.h deleted file mode 100644 index ce5ead5..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBelgiumIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.m deleted file mode 100644 index 041499f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBelgiumIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,75 +0,0 @@ -#import "MBBelgiumIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBelgiumIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BelgiumIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBelgiumIdFrontRecognizer *recognizer = [[MBBelgiumIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBelgiumIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBBelgiumIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.cardNumber forKey:@"cardNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.h deleted file mode 100644 index ea2a3ab..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBlinkCardEliteRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.m deleted file mode 100644 index 9b57a15..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardEliteRecognizerWrapper.m +++ /dev/null @@ -1,113 +0,0 @@ -#import "MBBlinkCardEliteRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBlinkCardEliteRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BlinkCardEliteRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBlinkCardEliteRecognizer *recognizer = [[MBBlinkCardEliteRecognizer alloc] init]; - { - id anonymizeCardNumber = [jsonRecognizer valueForKey:@"anonymizeCardNumber"]; - if (anonymizeCardNumber != nil) { - recognizer.anonymizeCardNumber = [(NSNumber *)anonymizeCardNumber boolValue]; - } - } - { - id anonymizeCvv = [jsonRecognizer valueForKey:@"anonymizeCvv"]; - if (anonymizeCvv != nil) { - recognizer.anonymizeCvv = [(NSNumber *)anonymizeCvv boolValue]; - } - } - { - id anonymizeOwner = [jsonRecognizer valueForKey:@"anonymizeOwner"]; - if (anonymizeOwner != nil) { - recognizer.anonymizeOwner = [(NSNumber *)anonymizeOwner boolValue]; - } - } - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractInventoryNumber = [jsonRecognizer valueForKey:@"extractInventoryNumber"]; - if (extractInventoryNumber != nil) { - recognizer.extractInventoryNumber = [(NSNumber *)extractInventoryNumber boolValue]; - } - } - { - id extractOwner = [jsonRecognizer valueForKey:@"extractOwner"]; - if (extractOwner != nil) { - recognizer.extractOwner = [(NSNumber *)extractOwner boolValue]; - } - } - { - id extractValidThru = [jsonRecognizer valueForKey:@"extractValidThru"]; - if (extractValidThru != nil) { - recognizer.extractValidThru = [(NSNumber *)extractValidThru boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBlinkCardEliteRecognizer (JsonSerialization) -@end - -@implementation MBBlinkCardEliteRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.cardNumber forKey:@"cardNumber"]; - [jsonResult setValue:self.result.cvv forKey:@"cvv"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.inventoryNumber forKey:@"inventoryNumber"]; - [jsonResult setValue:self.result.owner forKey:@"owner"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validThru] forKey:@"validThru"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.h deleted file mode 100644 index 5b014ea..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBlinkCardRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.m deleted file mode 100644 index a0896dc..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkCardRecognizerWrapper.m +++ /dev/null @@ -1,120 +0,0 @@ -#import "MBBlinkCardRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBlinkCardRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BlinkCardRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBlinkCardRecognizer *recognizer = [[MBBlinkCardRecognizer alloc] init]; - { - id anonymizeCardNumber = [jsonRecognizer valueForKey:@"anonymizeCardNumber"]; - if (anonymizeCardNumber != nil) { - recognizer.anonymizeCardNumber = [(NSNumber *)anonymizeCardNumber boolValue]; - } - } - { - id anonymizeCvv = [jsonRecognizer valueForKey:@"anonymizeCvv"]; - if (anonymizeCvv != nil) { - recognizer.anonymizeCvv = [(NSNumber *)anonymizeCvv boolValue]; - } - } - { - id anonymizeOwner = [jsonRecognizer valueForKey:@"anonymizeOwner"]; - if (anonymizeOwner != nil) { - recognizer.anonymizeOwner = [(NSNumber *)anonymizeOwner boolValue]; - } - } - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractCvv = [jsonRecognizer valueForKey:@"extractCvv"]; - if (extractCvv != nil) { - recognizer.extractCvv = [(NSNumber *)extractCvv boolValue]; - } - } - { - id extractInventoryNumber = [jsonRecognizer valueForKey:@"extractInventoryNumber"]; - if (extractInventoryNumber != nil) { - recognizer.extractInventoryNumber = [(NSNumber *)extractInventoryNumber boolValue]; - } - } - { - id extractOwner = [jsonRecognizer valueForKey:@"extractOwner"]; - if (extractOwner != nil) { - recognizer.extractOwner = [(NSNumber *)extractOwner boolValue]; - } - } - { - id extractValidThru = [jsonRecognizer valueForKey:@"extractValidThru"]; - if (extractValidThru != nil) { - recognizer.extractValidThru = [(NSNumber *)extractValidThru boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBlinkCardRecognizer (JsonSerialization) -@end - -@implementation MBBlinkCardRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.cardNumber forKey:@"cardNumber"]; - [jsonResult setValue:self.result.cvv forKey:@"cvv"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.inventoryNumber forKey:@"inventoryNumber"]; - [jsonResult setValue:[NSNumber numberWithInteger:(self.result.issuer + 1)] forKey:@"issuer"]; - [jsonResult setValue:self.result.owner forKey:@"owner"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validThru] forKey:@"validThru"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m index 48eda6c..d32894d 100644 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m @@ -46,12 +46,6 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; } } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } return recognizer; } @@ -65,20 +59,34 @@ @implementation MBBlinkIdCombinedRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; + [jsonResult setValue:self.result.additionalAddressInformation forKey:@"additionalAddressInformation"]; + [jsonResult setValue:self.result.additionalNameInformation forKey:@"additionalNameInformation"]; [jsonResult setValue:self.result.address forKey:@"address"]; + [jsonResult setValue:self.result.conditions forKey:@"conditions"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; + [jsonResult setValue:self.result.documentAdditionalNumber forKey:@"documentAdditionalNumber"]; + [jsonResult setValue:[NSNumber numberWithInteger:(self.result.documentDataMatch + 1)] forKey:@"documentDataMatch"]; [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; [jsonResult setValue:[MBBlinkIDSerializationUtils serializeDriverLicenseDetailedInfo:self.result.driverLicenseDetailedInfo] forKey:@"driverLicenseDetailedInfo"]; + [jsonResult setValue:self.result.employer forKey:@"employer"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; + [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; + [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; [jsonResult setValue:self.result.fullName forKey:@"fullName"]; + [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; [jsonResult setValue:self.result.lastName forKey:@"lastName"]; + [jsonResult setValue:self.result.maritalStatus forKey:@"maritalStatus"]; + [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; + [jsonResult setValue:self.result.nationality forKey:@"nationality"]; + [jsonResult setValue:self.result.personalIdNumber forKey:@"personalIdNumber"]; + [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; + [jsonResult setValue:self.result.profession forKey:@"profession"]; + [jsonResult setValue:self.result.race forKey:@"race"]; + [jsonResult setValue:self.result.religion forKey:@"religion"]; + [jsonResult setValue:self.result.residentialStatus forKey:@"residentialStatus"]; [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; [jsonResult setValue:self.result.sex forKey:@"sex"]; diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m index 26931f6..06c94cc 100644 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m +++ b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m @@ -59,17 +59,32 @@ @implementation MBBlinkIdRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; + [jsonResult setValue:self.result.additionalAddressInformation forKey:@"additionalAddressInformation"]; + [jsonResult setValue:self.result.additionalNameInformation forKey:@"additionalNameInformation"]; [jsonResult setValue:self.result.address forKey:@"address"]; + [jsonResult setValue:self.result.conditions forKey:@"conditions"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; + [jsonResult setValue:self.result.documentAdditionalNumber forKey:@"documentAdditionalNumber"]; [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; [jsonResult setValue:[MBBlinkIDSerializationUtils serializeDriverLicenseDetailedInfo:self.result.driverLicenseDetailedInfo] forKey:@"driverLicenseDetailedInfo"]; + [jsonResult setValue:self.result.employer forKey:@"employer"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; [jsonResult setValue:self.result.firstName forKey:@"firstName"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; [jsonResult setValue:self.result.fullName forKey:@"fullName"]; + [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; [jsonResult setValue:self.result.lastName forKey:@"lastName"]; + [jsonResult setValue:self.result.maritalStatus forKey:@"maritalStatus"]; + [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; + [jsonResult setValue:self.result.nationality forKey:@"nationality"]; + [jsonResult setValue:self.result.personalIdNumber forKey:@"personalIdNumber"]; + [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; + [jsonResult setValue:self.result.profession forKey:@"profession"]; + [jsonResult setValue:self.result.race forKey:@"race"]; + [jsonResult setValue:self.result.religion forKey:@"religion"]; + [jsonResult setValue:self.result.residentialStatus forKey:@"residentialStatus"]; [jsonResult setValue:self.result.sex forKey:@"sex"]; return jsonResult; diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.h deleted file mode 100644 index bc61b80..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.m deleted file mode 100644 index 2149155..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdBackRecognizerWrapper.m +++ /dev/null @@ -1,83 +0,0 @@ -#import "MBBruneiIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiIdBackRecognizer *recognizer = [[MBBruneiIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractRace = [jsonRecognizer valueForKey:@"extractRace"]; - if (extractRace != nil) { - recognizer.extractRace = [(NSNumber *)extractRace boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiIdBackRecognizer (JsonSerialization) -@end - -@implementation MBBruneiIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.race forKey:@"race"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.h deleted file mode 100644 index 929fc7f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.m deleted file mode 100644 index 0557685..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,103 +0,0 @@ -#import "MBBruneiIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiIdFrontRecognizer *recognizer = [[MBBruneiIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBBruneiIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.h deleted file mode 100644 index 3f600a2..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiMilitaryIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.m deleted file mode 100644 index beefef2..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdBackRecognizerWrapper.m +++ /dev/null @@ -1,89 +0,0 @@ -#import "MBBruneiMilitaryIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiMilitaryIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiMilitaryIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiMilitaryIdBackRecognizer *recognizer = [[MBBruneiMilitaryIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiMilitaryIdBackRecognizer (JsonSerialization) -@end - -@implementation MBBruneiMilitaryIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.armyNumber forKey:@"armyNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.h deleted file mode 100644 index c88f9e9..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiMilitaryIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.m deleted file mode 100644 index d18fb32..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiMilitaryIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,89 +0,0 @@ -#import "MBBruneiMilitaryIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiMilitaryIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiMilitaryIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiMilitaryIdFrontRecognizer *recognizer = [[MBBruneiMilitaryIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id extractRank = [jsonRecognizer valueForKey:@"extractRank"]; - if (extractRank != nil) { - recognizer.extractRank = [(NSNumber *)extractRank boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiMilitaryIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBBruneiMilitaryIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.rank forKey:@"rank"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.h deleted file mode 100644 index b8b4d19..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiResidencePermitBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.m deleted file mode 100644 index 38d4bfe..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitBackRecognizerWrapper.m +++ /dev/null @@ -1,83 +0,0 @@ -#import "MBBruneiResidencePermitBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiResidencePermitBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiResidencePermitBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiResidencePermitBackRecognizer *recognizer = [[MBBruneiResidencePermitBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractRace = [jsonRecognizer valueForKey:@"extractRace"]; - if (extractRace != nil) { - recognizer.extractRace = [(NSNumber *)extractRace boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiResidencePermitBackRecognizer (JsonSerialization) -@end - -@implementation MBBruneiResidencePermitBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.race forKey:@"race"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.h deleted file mode 100644 index 0b840ae..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiResidencePermitFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.m deleted file mode 100644 index 6841ebe..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiResidencePermitFrontRecognizerWrapper.m +++ /dev/null @@ -1,103 +0,0 @@ -#import "MBBruneiResidencePermitFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiResidencePermitFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiResidencePermitFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiResidencePermitFrontRecognizer *recognizer = [[MBBruneiResidencePermitFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiResidencePermitFrontRecognizer (JsonSerialization) -@end - -@implementation MBBruneiResidencePermitFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h deleted file mode 100644 index 7171cc2..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiTemporaryResidencePermitBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m deleted file mode 100644 index bf6c874..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitBackRecognizerWrapper.m +++ /dev/null @@ -1,83 +0,0 @@ -#import "MBBruneiTemporaryResidencePermitBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiTemporaryResidencePermitBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiTemporaryResidencePermitBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiTemporaryResidencePermitBackRecognizer *recognizer = [[MBBruneiTemporaryResidencePermitBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractPassportNumber = [jsonRecognizer valueForKey:@"extractPassportNumber"]; - if (extractPassportNumber != nil) { - recognizer.extractPassportNumber = [(NSNumber *)extractPassportNumber boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiTemporaryResidencePermitBackRecognizer (JsonSerialization) -@end - -@implementation MBBruneiTemporaryResidencePermitBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.passportNumber forKey:@"passportNumber"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h deleted file mode 100644 index 7435929..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBBruneiTemporaryResidencePermitFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m deleted file mode 100644 index 430be43..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.m +++ /dev/null @@ -1,110 +0,0 @@ -#import "MBBruneiTemporaryResidencePermitFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBBruneiTemporaryResidencePermitFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"BruneiTemporaryResidencePermitFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBBruneiTemporaryResidencePermitFrontRecognizer *recognizer = [[MBBruneiTemporaryResidencePermitFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBBruneiTemporaryResidencePermitFrontRecognizer (JsonSerialization) -@end - -@implementation MBBruneiTemporaryResidencePermitFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.h deleted file mode 100644 index d320b36..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBColombiaDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.m deleted file mode 100644 index f6e11e3..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,104 +0,0 @@ -#import "MBColombiaDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBColombiaDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"ColombiaDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBColombiaDlFrontRecognizer *recognizer = [[MBColombiaDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDriverRestrictions = [jsonRecognizer valueForKey:@"extractDriverRestrictions"]; - if (extractDriverRestrictions != nil) { - recognizer.extractDriverRestrictions = [(NSNumber *)extractDriverRestrictions boolValue]; - } - } - { - id extractIssuingAgency = [jsonRecognizer valueForKey:@"extractIssuingAgency"]; - if (extractIssuingAgency != nil) { - recognizer.extractIssuingAgency = [(NSNumber *)extractIssuingAgency boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBColombiaDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBColombiaDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:self.result.driverRestrictions forKey:@"driverRestrictions"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuingAgency forKey:@"issuingAgency"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.h deleted file mode 100644 index e68f3da..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBColombiaIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.m deleted file mode 100644 index 8cfb491..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdBackRecognizerWrapper.m +++ /dev/null @@ -1,80 +0,0 @@ -#import "MBColombiaIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBColombiaIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"ColombiaIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBColombiaIdBackRecognizer *recognizer = [[MBColombiaIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id nullQuietZoneAllowed = [jsonRecognizer valueForKey:@"nullQuietZoneAllowed"]; - if (nullQuietZoneAllowed != nil) { - recognizer.nullQuietZoneAllowed = [(NSNumber *)nullQuietZoneAllowed boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id scanUncertain = [jsonRecognizer valueForKey:@"scanUncertain"]; - if (scanUncertain != nil) { - recognizer.scanUncertain = [(NSNumber *)scanUncertain boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBColombiaIdBackRecognizer (JsonSerialization) -@end - -@implementation MBColombiaIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.birthDate] forKey:@"birthDate"]; - [jsonResult setValue:self.result.bloodGroup forKey:@"bloodGroup"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[self.result.fingerprint base64EncodedStringWithOptions:0] forKey:@"fingerprint"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.h deleted file mode 100644 index a6ce97c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBColombiaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.m deleted file mode 100644 index 3dd8a90..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBColombiaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,102 +0,0 @@ -#import "MBColombiaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBColombiaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"ColombiaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBColombiaIdFrontRecognizer *recognizer = [[MBColombiaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBColombiaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBColombiaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.h deleted file mode 100644 index a79fbc9..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCroatiaCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.m deleted file mode 100644 index 09b527e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaCombinedRecognizerWrapper.m +++ /dev/null @@ -1,167 +0,0 @@ -#import "MBCroatiaCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCroatiaCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CroatiaCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCroatiaCombinedRecognizer *recognizer = [[MBCroatiaCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractCitizenship = [jsonRecognizer valueForKey:@"extractCitizenship"]; - if (extractCitizenship != nil) { - recognizer.extractCitizenship = [(NSNumber *)extractCitizenship boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuedBy = [jsonRecognizer valueForKey:@"extractIssuedBy"]; - if (extractIssuedBy != nil) { - recognizer.extractIssuedBy = [(NSNumber *)extractIssuedBy boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id extractResidence = [jsonRecognizer valueForKey:@"extractResidence"]; - if (extractResidence != nil) { - recognizer.extractResidence = [(NSNumber *)extractResidence boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCroatiaCombinedRecognizer (JsonSerialization) -@end - -@implementation MBCroatiaCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.citizenship forKey:@"citizenship"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfExpiryPermanent] forKey:@"dateOfExpiryPermanent"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentBilingual] forKey:@"documentBilingual"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentForNonResident] forKey:@"documentForNonResident"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.oib forKey:@"oib"]; - [jsonResult setValue:self.result.residence forKey:@"residence"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.h deleted file mode 100644 index 39e4d26..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCroatiaIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.m deleted file mode 100644 index ce4c88f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdBackRecognizerWrapper.m +++ /dev/null @@ -1,85 +0,0 @@ -#import "MBCroatiaIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCroatiaIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CroatiaIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCroatiaIdBackRecognizer *recognizer = [[MBCroatiaIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractIssuedBy = [jsonRecognizer valueForKey:@"extractIssuedBy"]; - if (extractIssuedBy != nil) { - recognizer.extractIssuedBy = [(NSNumber *)extractIssuedBy boolValue]; - } - } - { - id extractResidence = [jsonRecognizer valueForKey:@"extractResidence"]; - if (extractResidence != nil) { - recognizer.extractResidence = [(NSNumber *)extractResidence boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCroatiaIdBackRecognizer (JsonSerialization) -@end - -@implementation MBCroatiaIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfExpiryPermanent] forKey:@"dateOfExpiryPermanent"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentForNonResident] forKey:@"documentForNonResident"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.residence forKey:@"residence"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.h deleted file mode 100644 index 383a518..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCroatiaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.m deleted file mode 100644 index e7cfb6d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCroatiaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,132 +0,0 @@ -#import "MBCroatiaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCroatiaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CroatiaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCroatiaIdFrontRecognizer *recognizer = [[MBCroatiaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractCitizenship = [jsonRecognizer valueForKey:@"extractCitizenship"]; - if (extractCitizenship != nil) { - recognizer.extractCitizenship = [(NSNumber *)extractCitizenship boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCroatiaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBCroatiaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.citizenship forKey:@"citizenship"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfExpiryPermanent] forKey:@"dateOfExpiryPermanent"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentBilingual] forKey:@"documentBilingual"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.h deleted file mode 100644 index 64b94c7..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCyprusIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.m deleted file mode 100644 index 7141e30..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdBackRecognizerWrapper.m +++ /dev/null @@ -1,62 +0,0 @@ -#import "MBCyprusIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCyprusIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CyprusIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCyprusIdBackRecognizer *recognizer = [[MBCyprusIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCyprusIdBackRecognizer (JsonSerialization) -@end - -@implementation MBCyprusIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.h deleted file mode 100644 index 0d4f290..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCyprusIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.m deleted file mode 100644 index 208a320..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,88 +0,0 @@ -#import "MBCyprusIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCyprusIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CyprusIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCyprusIdFrontRecognizer *recognizer = [[MBCyprusIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCyprusIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBCyprusIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.idNumber forKey:@"idNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.h deleted file mode 100644 index 084e8b3..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCyprusOldIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.m deleted file mode 100644 index ef299ef..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdBackRecognizerWrapper.m +++ /dev/null @@ -1,76 +0,0 @@ -#import "MBCyprusOldIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCyprusOldIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CyprusOldIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCyprusOldIdBackRecognizer *recognizer = [[MBCyprusOldIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractExpiresOn = [jsonRecognizer valueForKey:@"extractExpiresOn"]; - if (extractExpiresOn != nil) { - recognizer.extractExpiresOn = [(NSNumber *)extractExpiresOn boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCyprusOldIdBackRecognizer (JsonSerialization) -@end - -@implementation MBCyprusOldIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.expiresOn] forKey:@"expiresOn"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.h deleted file mode 100644 index 15a50a2..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCyprusOldIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.m deleted file mode 100644 index f78176f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCyprusOldIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,96 +0,0 @@ -#import "MBCyprusOldIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCyprusOldIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CyprusOldIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCyprusOldIdFrontRecognizer *recognizer = [[MBCyprusOldIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDocumentNumber = [jsonRecognizer valueForKey:@"extractDocumentNumber"]; - if (extractDocumentNumber != nil) { - recognizer.extractDocumentNumber = [(NSNumber *)extractDocumentNumber boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCyprusOldIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBCyprusOldIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.idNumber forKey:@"idNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.h deleted file mode 100644 index 775f923..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCzechiaCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.m deleted file mode 100644 index f821dd8..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaCombinedRecognizerWrapper.m +++ /dev/null @@ -1,171 +0,0 @@ -#import "MBCzechiaCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCzechiaCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CzechiaCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCzechiaCombinedRecognizer *recognizer = [[MBCzechiaCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAuthority = [jsonRecognizer valueForKey:@"extractAuthority"]; - if (extractAuthority != nil) { - recognizer.extractAuthority = [(NSNumber *)extractAuthority boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractPermanentStay = [jsonRecognizer valueForKey:@"extractPermanentStay"]; - if (extractPermanentStay != nil) { - recognizer.extractPermanentStay = [(NSNumber *)extractPermanentStay boolValue]; - } - } - { - id extractPersonalNumber = [jsonRecognizer valueForKey:@"extractPersonalNumber"]; - if (extractPersonalNumber != nil) { - recognizer.extractPersonalNumber = [(NSNumber *)extractPersonalNumber boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCzechiaCombinedRecognizer (JsonSerialization) -@end - -@implementation MBCzechiaCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.authority forKey:@"authority"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.permanentStay forKey:@"permanentStay"]; - [jsonResult setValue:self.result.personalNumber forKey:@"personalNumber"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.h deleted file mode 100644 index fd716eb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCzechiaIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.m deleted file mode 100644 index 39d177d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdBackRecognizerWrapper.m +++ /dev/null @@ -1,83 +0,0 @@ -#import "MBCzechiaIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCzechiaIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CzechiaIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCzechiaIdBackRecognizer *recognizer = [[MBCzechiaIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAuthority = [jsonRecognizer valueForKey:@"extractAuthority"]; - if (extractAuthority != nil) { - recognizer.extractAuthority = [(NSNumber *)extractAuthority boolValue]; - } - } - { - id extractPermanentStay = [jsonRecognizer valueForKey:@"extractPermanentStay"]; - if (extractPermanentStay != nil) { - recognizer.extractPermanentStay = [(NSNumber *)extractPermanentStay boolValue]; - } - } - { - id extractPersonalNumber = [jsonRecognizer valueForKey:@"extractPersonalNumber"]; - if (extractPersonalNumber != nil) { - recognizer.extractPersonalNumber = [(NSNumber *)extractPersonalNumber boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCzechiaIdBackRecognizer (JsonSerialization) -@end - -@implementation MBCzechiaIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.authority forKey:@"authority"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.permanentStay forKey:@"permanentStay"]; - [jsonResult setValue:self.result.personalNumber forKey:@"personalNumber"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.h deleted file mode 100644 index f7c4dbf..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBCzechiaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.m deleted file mode 100644 index d5a9137..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBCzechiaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,137 +0,0 @@ -#import "MBCzechiaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBCzechiaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"CzechiaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBCzechiaIdFrontRecognizer *recognizer = [[MBCzechiaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBCzechiaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBCzechiaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.h deleted file mode 100644 index 4792fe6..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBEgyptIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.m deleted file mode 100644 index 10b4dde..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEgyptIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,82 +0,0 @@ -#import "MBEgyptIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBEgyptIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"EgyptIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBEgyptIdFrontRecognizer *recognizer = [[MBEgyptIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractNationalNumber = [jsonRecognizer valueForKey:@"extractNationalNumber"]; - if (extractNationalNumber != nil) { - recognizer.extractNationalNumber = [(NSNumber *)extractNationalNumber boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBEgyptIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBEgyptIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.nationalNumber forKey:@"nationalNumber"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.h deleted file mode 100644 index d439f55..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBEudlRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.m deleted file mode 100644 index 63a9c11..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBEudlRecognizerWrapper.m +++ /dev/null @@ -1,114 +0,0 @@ -#import "MBEudlRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBEudlRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"EudlRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBEudlRecognizer *recognizer = [[MBEudlRecognizer alloc] init]; - { - id country = [jsonRecognizer valueForKey:@"country"]; - if (country != nil) { - recognizer.country = (MBEudlCountry)([(NSNumber *)country unsignedIntegerValue] - 1); - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractPersonalNumber = [jsonRecognizer valueForKey:@"extractPersonalNumber"]; - if (extractPersonalNumber != nil) { - recognizer.extractPersonalNumber = [(NSNumber *)extractPersonalNumber boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBEudlRecognizer (JsonSerialization) -@end - -@implementation MBEudlRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.birthData forKey:@"birthData"]; - [jsonResult setValue:[NSNumber numberWithInteger:(self.result.country + 1)] forKey:@"country"]; - [jsonResult setValue:self.result.driverNumber forKey:@"driverNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.expiryDate] forKey:@"expiryDate"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.issueDate] forKey:@"issueDate"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:self.result.personalNumber forKey:@"personalNumber"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.h deleted file mode 100644 index 2b791ae..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBGermanyCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.m deleted file mode 100644 index e85e15c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyCombinedRecognizerWrapper.m +++ /dev/null @@ -1,192 +0,0 @@ -#import "MBGermanyCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBGermanyCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"GermanyCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBGermanyCombinedRecognizer *recognizer = [[MBGermanyCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractAuthority = [jsonRecognizer valueForKey:@"extractAuthority"]; - if (extractAuthority != nil) { - recognizer.extractAuthority = [(NSNumber *)extractAuthority boolValue]; - } - } - { - id extractCanNumber = [jsonRecognizer valueForKey:@"extractCanNumber"]; - if (extractCanNumber != nil) { - recognizer.extractCanNumber = [(NSNumber *)extractCanNumber boolValue]; - } - } - { - id extractColourOfEyes = [jsonRecognizer valueForKey:@"extractColourOfEyes"]; - if (extractColourOfEyes != nil) { - recognizer.extractColourOfEyes = [(NSNumber *)extractColourOfEyes boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractDocumentNumber = [jsonRecognizer valueForKey:@"extractDocumentNumber"]; - if (extractDocumentNumber != nil) { - recognizer.extractDocumentNumber = [(NSNumber *)extractDocumentNumber boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractHeight = [jsonRecognizer valueForKey:@"extractHeight"]; - if (extractHeight != nil) { - recognizer.extractHeight = [(NSNumber *)extractHeight boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBGermanyCombinedRecognizer (JsonSerialization) -@end - -@implementation MBGermanyCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.authority forKey:@"authority"]; - [jsonResult setValue:self.result.canNumber forKey:@"canNumber"]; - [jsonResult setValue:self.result.colourOfEyes forKey:@"colourOfEyes"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:self.result.height forKey:@"height"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.rawMrzString forKey:@"rawMrzString"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.h deleted file mode 100644 index f2d2651..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBGermanyDlBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.m deleted file mode 100644 index d584f04..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlBackRecognizerWrapper.m +++ /dev/null @@ -1,63 +0,0 @@ -#import "MBGermanyDlBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBGermanyDlBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"GermanyDlBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBGermanyDlBackRecognizer *recognizer = [[MBGermanyDlBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBGermanyDlBackRecognizer (JsonSerialization) -@end - -@implementation MBGermanyDlBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssueB10] forKey:@"dateOfIssueB10"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfIssueB10NotSpecified] forKey:@"dateOfIssueB10NotSpecified"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.h deleted file mode 100644 index bcbb743..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBGermanyDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.m deleted file mode 100644 index c3c9a3d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,144 +0,0 @@ -#import "MBGermanyDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBGermanyDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"GermanyDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBGermanyDlFrontRecognizer *recognizer = [[MBGermanyDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id extractLicenceCategories = [jsonRecognizer valueForKey:@"extractLicenceCategories"]; - if (extractLicenceCategories != nil) { - recognizer.extractLicenceCategories = [(NSNumber *)extractLicenceCategories boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBGermanyDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBGermanyDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:self.result.licenceCategories forKey:@"licenceCategories"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.h deleted file mode 100644 index 7bcacab..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBGermanyIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.m deleted file mode 100644 index 365d740..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdBackRecognizerWrapper.m +++ /dev/null @@ -1,101 +0,0 @@ -#import "MBGermanyIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBGermanyIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"GermanyIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBGermanyIdBackRecognizer *recognizer = [[MBGermanyIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractAuthority = [jsonRecognizer valueForKey:@"extractAuthority"]; - if (extractAuthority != nil) { - recognizer.extractAuthority = [(NSNumber *)extractAuthority boolValue]; - } - } - { - id extractColourOfEyes = [jsonRecognizer valueForKey:@"extractColourOfEyes"]; - if (extractColourOfEyes != nil) { - recognizer.extractColourOfEyes = [(NSNumber *)extractColourOfEyes boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractHeight = [jsonRecognizer valueForKey:@"extractHeight"]; - if (extractHeight != nil) { - recognizer.extractHeight = [(NSNumber *)extractHeight boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBGermanyIdBackRecognizer (JsonSerialization) -@end - -@implementation MBGermanyIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.addressCity forKey:@"addressCity"]; - [jsonResult setValue:self.result.addressHouseNumber forKey:@"addressHouseNumber"]; - [jsonResult setValue:self.result.addressStreet forKey:@"addressStreet"]; - [jsonResult setValue:self.result.addressZipCode forKey:@"addressZipCode"]; - [jsonResult setValue:self.result.authority forKey:@"authority"]; - [jsonResult setValue:self.result.colourOfEyes forKey:@"colourOfEyes"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:self.result.fullAddress forKey:@"fullAddress"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.height forKey:@"height"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.h deleted file mode 100644 index 9d56d4f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBGermanyIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.m deleted file mode 100644 index 84ff911..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,137 +0,0 @@ -#import "MBGermanyIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBGermanyIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"GermanyIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBGermanyIdFrontRecognizer *recognizer = [[MBGermanyIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractCanNumber = [jsonRecognizer valueForKey:@"extractCanNumber"]; - if (extractCanNumber != nil) { - recognizer.extractCanNumber = [(NSNumber *)extractCanNumber boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDocumentNumber = [jsonRecognizer valueForKey:@"extractDocumentNumber"]; - if (extractDocumentNumber != nil) { - recognizer.extractDocumentNumber = [(NSNumber *)extractDocumentNumber boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBGermanyIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBGermanyIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.canNumber forKey:@"canNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.h deleted file mode 100644 index 8602208..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBGermanyIdOldRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.m deleted file mode 100644 index e1badeb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyIdOldRecognizerWrapper.m +++ /dev/null @@ -1,95 +0,0 @@ -#import "MBGermanyIdOldRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBGermanyIdOldRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"GermanyIdOldRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBGermanyIdOldRecognizer *recognizer = [[MBGermanyIdOldRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBGermanyIdOldRecognizer (JsonSerialization) -@end - -@implementation MBGermanyIdOldRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.h deleted file mode 100644 index 2c3f5e1..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBGermanyPassportRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.m deleted file mode 100644 index 06797b6..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBGermanyPassportRecognizerWrapper.m +++ /dev/null @@ -1,130 +0,0 @@ -#import "MBGermanyPassportRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBGermanyPassportRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"GermanyPassportRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBGermanyPassportRecognizer *recognizer = [[MBGermanyPassportRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAuthority = [jsonRecognizer valueForKey:@"extractAuthority"]; - if (extractAuthority != nil) { - recognizer.extractAuthority = [(NSNumber *)extractAuthority boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBGermanyPassportRecognizer (JsonSerialization) -@end - -@implementation MBGermanyPassportRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.authority forKey:@"authority"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenName forKey:@"givenName"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.h deleted file mode 100644 index a54f5f4..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBHongKongIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.m deleted file mode 100644 index 87071f3..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBHongKongIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,117 +0,0 @@ -#import "MBHongKongIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBHongKongIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"HongKongIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBHongKongIdFrontRecognizer *recognizer = [[MBHongKongIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractCommercialCode = [jsonRecognizer valueForKey:@"extractCommercialCode"]; - if (extractCommercialCode != nil) { - recognizer.extractCommercialCode = [(NSNumber *)extractCommercialCode boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id extractResidentialStatus = [jsonRecognizer valueForKey:@"extractResidentialStatus"]; - if (extractResidentialStatus != nil) { - recognizer.extractResidentialStatus = [(NSNumber *)extractResidentialStatus boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBHongKongIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBHongKongIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.commercialCode forKey:@"commercialCode"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.residentialStatus forKey:@"residentialStatus"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.h deleted file mode 100644 index dd33be3..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBIndonesiaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.m deleted file mode 100644 index 85c57b8..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIndonesiaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,190 +0,0 @@ -#import "MBIndonesiaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBIndonesiaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"IndonesiaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBIndonesiaIdFrontRecognizer *recognizer = [[MBIndonesiaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractBloodType = [jsonRecognizer valueForKey:@"extractBloodType"]; - if (extractBloodType != nil) { - recognizer.extractBloodType = [(NSNumber *)extractBloodType boolValue]; - } - } - { - id extractCitizenship = [jsonRecognizer valueForKey:@"extractCitizenship"]; - if (extractCitizenship != nil) { - recognizer.extractCitizenship = [(NSNumber *)extractCitizenship boolValue]; - } - } - { - id extractCity = [jsonRecognizer valueForKey:@"extractCity"]; - if (extractCity != nil) { - recognizer.extractCity = [(NSNumber *)extractCity boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDistrict = [jsonRecognizer valueForKey:@"extractDistrict"]; - if (extractDistrict != nil) { - recognizer.extractDistrict = [(NSNumber *)extractDistrict boolValue]; - } - } - { - id extractKelDesa = [jsonRecognizer valueForKey:@"extractKelDesa"]; - if (extractKelDesa != nil) { - recognizer.extractKelDesa = [(NSNumber *)extractKelDesa boolValue]; - } - } - { - id extractMaritalStatus = [jsonRecognizer valueForKey:@"extractMaritalStatus"]; - if (extractMaritalStatus != nil) { - recognizer.extractMaritalStatus = [(NSNumber *)extractMaritalStatus boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractOccupation = [jsonRecognizer valueForKey:@"extractOccupation"]; - if (extractOccupation != nil) { - recognizer.extractOccupation = [(NSNumber *)extractOccupation boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractReligion = [jsonRecognizer valueForKey:@"extractReligion"]; - if (extractReligion != nil) { - recognizer.extractReligion = [(NSNumber *)extractReligion boolValue]; - } - } - { - id extractRt = [jsonRecognizer valueForKey:@"extractRt"]; - if (extractRt != nil) { - recognizer.extractRt = [(NSNumber *)extractRt boolValue]; - } - } - { - id extractRw = [jsonRecognizer valueForKey:@"extractRw"]; - if (extractRw != nil) { - recognizer.extractRw = [(NSNumber *)extractRw boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBIndonesiaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBIndonesiaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.bloodType forKey:@"bloodType"]; - [jsonResult setValue:self.result.citizenship forKey:@"citizenship"]; - [jsonResult setValue:self.result.city forKey:@"city"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfExpiryPermanent] forKey:@"dateOfExpiryPermanent"]; - [jsonResult setValue:self.result.district forKey:@"district"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.kelDesa forKey:@"kelDesa"]; - [jsonResult setValue:self.result.maritalStatus forKey:@"maritalStatus"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.occupation forKey:@"occupation"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.province forKey:@"province"]; - [jsonResult setValue:self.result.religion forKey:@"religion"]; - [jsonResult setValue:self.result.rt forKey:@"rt"]; - [jsonResult setValue:self.result.rw forKey:@"rw"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.h deleted file mode 100644 index 48fd28e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBIrelandDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.m deleted file mode 100644 index 7d2148a..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBIrelandDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,158 +0,0 @@ -#import "MBIrelandDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBIrelandDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"IrelandDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBIrelandDlFrontRecognizer *recognizer = [[MBIrelandDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuedBy = [jsonRecognizer valueForKey:@"extractIssuedBy"]; - if (extractIssuedBy != nil) { - recognizer.extractIssuedBy = [(NSNumber *)extractIssuedBy boolValue]; - } - } - { - id extractLicenceCategories = [jsonRecognizer valueForKey:@"extractLicenceCategories"]; - if (extractLicenceCategories != nil) { - recognizer.extractLicenceCategories = [(NSNumber *)extractLicenceCategories boolValue]; - } - } - { - id extractLicenceNumber = [jsonRecognizer valueForKey:@"extractLicenceNumber"]; - if (extractLicenceNumber != nil) { - recognizer.extractLicenceNumber = [(NSNumber *)extractLicenceNumber boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBIrelandDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBIrelandDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:self.result.driverNumber forKey:@"driverNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:self.result.licenceCategories forKey:@"licenceCategories"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.h deleted file mode 100644 index 02bdf49..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBItalyDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.m deleted file mode 100644 index 7e5c0f0..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBItalyDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,151 +0,0 @@ -#import "MBItalyDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBItalyDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"ItalyDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBItalyDlFrontRecognizer *recognizer = [[MBItalyDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractLicenceCategories = [jsonRecognizer valueForKey:@"extractLicenceCategories"]; - if (extractLicenceCategories != nil) { - recognizer.extractLicenceCategories = [(NSNumber *)extractLicenceCategories boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBItalyDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBItalyDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenName forKey:@"givenName"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:self.result.licenceCategories forKey:@"licenceCategories"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.h deleted file mode 100644 index dc89962..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBJordanCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.m deleted file mode 100644 index cc4c247..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanCombinedRecognizerWrapper.m +++ /dev/null @@ -1,118 +0,0 @@ -#import "MBJordanCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBJordanCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"JordanCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBJordanCombinedRecognizer *recognizer = [[MBJordanCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBJordanCombinedRecognizer (JsonSerialization) -@end - -@implementation MBJordanCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.nationalNumber forKey:@"nationalNumber"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.h deleted file mode 100644 index 519dbeb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBJordanIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.m deleted file mode 100644 index fc8c8f8..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdBackRecognizerWrapper.m +++ /dev/null @@ -1,69 +0,0 @@ -#import "MBJordanIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBJordanIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"JordanIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBJordanIdBackRecognizer *recognizer = [[MBJordanIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBJordanIdBackRecognizer (JsonSerialization) -@end - -@implementation MBJordanIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.h deleted file mode 100644 index 81d78eb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBJordanIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.m deleted file mode 100644 index 0f4477d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBJordanIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,96 +0,0 @@ -#import "MBJordanIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBJordanIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"JordanIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBJordanIdFrontRecognizer *recognizer = [[MBJordanIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBJordanIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBJordanIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.nationalNumber forKey:@"nationalNumber"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.h deleted file mode 100644 index d072e7e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBKuwaitIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.m deleted file mode 100644 index 43b4edf..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdBackRecognizerWrapper.m +++ /dev/null @@ -1,69 +0,0 @@ -#import "MBKuwaitIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBKuwaitIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"KuwaitIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBKuwaitIdBackRecognizer *recognizer = [[MBKuwaitIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractSerialNo = [jsonRecognizer valueForKey:@"extractSerialNo"]; - if (extractSerialNo != nil) { - recognizer.extractSerialNo = [(NSNumber *)extractSerialNo boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBKuwaitIdBackRecognizer (JsonSerialization) -@end - -@implementation MBKuwaitIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.serialNo forKey:@"serialNo"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.h deleted file mode 100644 index ac67f58..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBKuwaitIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.m deleted file mode 100644 index a5c3b94..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBKuwaitIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,104 +0,0 @@ -#import "MBKuwaitIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBKuwaitIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"KuwaitIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBKuwaitIdFrontRecognizer *recognizer = [[MBKuwaitIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractBirthDate = [jsonRecognizer valueForKey:@"extractBirthDate"]; - if (extractBirthDate != nil) { - recognizer.extractBirthDate = [(NSNumber *)extractBirthDate boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBKuwaitIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBKuwaitIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.birthDate] forKey:@"birthDate"]; - [jsonResult setValue:self.result.civilIdNumber forKey:@"civilIdNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.expiryDate] forKey:@"expiryDate"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.h deleted file mode 100644 index 0bcc7f0..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMalaysiaDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.m deleted file mode 100644 index 2c28b21..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,121 +0,0 @@ -#import "MBMalaysiaDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMalaysiaDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MalaysiaDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMalaysiaDlFrontRecognizer *recognizer = [[MBMalaysiaDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractClass = [jsonRecognizer valueForKey:@"extractClass"]; - if (extractClass != nil) { - recognizer.extractClass = [(NSNumber *)extractClass boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractValidFrom = [jsonRecognizer valueForKey:@"extractValidFrom"]; - if (extractValidFrom != nil) { - recognizer.extractValidFrom = [(NSNumber *)extractValidFrom boolValue]; - } - } - { - id extractValidUntil = [jsonRecognizer valueForKey:@"extractValidUntil"]; - if (extractValidUntil != nil) { - recognizer.extractValidUntil = [(NSNumber *)extractValidUntil boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMalaysiaDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBMalaysiaDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.city forKey:@"city"]; - [jsonResult setValue:self.result.dlClass forKey:@"dlClass"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.fullAddress forKey:@"fullAddress"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.identityNumber forKey:@"identityNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.ownerState forKey:@"ownerState"]; - [jsonResult setValue:self.result.street forKey:@"street"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validFrom] forKey:@"validFrom"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validUntil] forKey:@"validUntil"]; - [jsonResult setValue:self.result.zipcode forKey:@"zipcode"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.h deleted file mode 100644 index f438bfa..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMalaysiaIkadFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.m deleted file mode 100644 index d46834e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaIkadFrontRecognizerWrapper.m +++ /dev/null @@ -1,138 +0,0 @@ -#import "MBMalaysiaIkadFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMalaysiaIkadFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MalaysiaIkadFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMalaysiaIkadFrontRecognizer *recognizer = [[MBMalaysiaIkadFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractEmployer = [jsonRecognizer valueForKey:@"extractEmployer"]; - if (extractEmployer != nil) { - recognizer.extractEmployer = [(NSNumber *)extractEmployer boolValue]; - } - } - { - id extractFacultyAddress = [jsonRecognizer valueForKey:@"extractFacultyAddress"]; - if (extractFacultyAddress != nil) { - recognizer.extractFacultyAddress = [(NSNumber *)extractFacultyAddress boolValue]; - } - } - { - id extractGender = [jsonRecognizer valueForKey:@"extractGender"]; - if (extractGender != nil) { - recognizer.extractGender = [(NSNumber *)extractGender boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPassportNumber = [jsonRecognizer valueForKey:@"extractPassportNumber"]; - if (extractPassportNumber != nil) { - recognizer.extractPassportNumber = [(NSNumber *)extractPassportNumber boolValue]; - } - } - { - id extractSector = [jsonRecognizer valueForKey:@"extractSector"]; - if (extractSector != nil) { - recognizer.extractSector = [(NSNumber *)extractSector boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMalaysiaIkadFrontRecognizer (JsonSerialization) -@end - -@implementation MBMalaysiaIkadFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:self.result.employer forKey:@"employer"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.facultyAddress forKey:@"facultyAddress"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.gender forKey:@"gender"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.passportNumber forKey:@"passportNumber"]; - [jsonResult setValue:self.result.sector forKey:@"sector"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.h deleted file mode 100644 index c9fa94c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMalaysiaMyKadBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.m deleted file mode 100644 index 6da9b9b..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadBackRecognizerWrapper.m +++ /dev/null @@ -1,71 +0,0 @@ -#import "MBMalaysiaMyKadBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMalaysiaMyKadBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MalaysiaMyKadBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMalaysiaMyKadBackRecognizer *recognizer = [[MBMalaysiaMyKadBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractOldNric = [jsonRecognizer valueForKey:@"extractOldNric"]; - if (extractOldNric != nil) { - recognizer.extractOldNric = [(NSNumber *)extractOldNric boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMalaysiaMyKadBackRecognizer (JsonSerialization) -@end - -@implementation MBMalaysiaMyKadBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:self.result.extendedNric forKey:@"extendedNric"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.nric forKey:@"nric"]; - [jsonResult setValue:self.result.oldNric forKey:@"oldNric"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.h deleted file mode 100644 index c96e4f8..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMalaysiaMyKadFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.m deleted file mode 100644 index 457f329..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKadFrontRecognizerWrapper.m +++ /dev/null @@ -1,102 +0,0 @@ -#import "MBMalaysiaMyKadFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMalaysiaMyKadFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MalaysiaMyKadFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMalaysiaMyKadFrontRecognizer *recognizer = [[MBMalaysiaMyKadFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractFullNameAndAddress = [jsonRecognizer valueForKey:@"extractFullNameAndAddress"]; - if (extractFullNameAndAddress != nil) { - recognizer.extractFullNameAndAddress = [(NSNumber *)extractFullNameAndAddress boolValue]; - } - } - { - id extractReligion = [jsonRecognizer valueForKey:@"extractReligion"]; - if (extractReligion != nil) { - recognizer.extractReligion = [(NSNumber *)extractReligion boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMalaysiaMyKadFrontRecognizer (JsonSerialization) -@end - -@implementation MBMalaysiaMyKadFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.birthDate] forKey:@"birthDate"]; - [jsonResult setValue:self.result.city forKey:@"city"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.fullAddress forKey:@"fullAddress"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.nric forKey:@"nric"]; - [jsonResult setValue:self.result.ownerState forKey:@"ownerState"]; - [jsonResult setValue:self.result.religion forKey:@"religion"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.street forKey:@"street"]; - [jsonResult setValue:self.result.zipcode forKey:@"zipcode"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.h deleted file mode 100644 index 9b8629f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMalaysiaMyKasFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.m deleted file mode 100644 index 320d62c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyKasFrontRecognizerWrapper.m +++ /dev/null @@ -1,103 +0,0 @@ -#import "MBMalaysiaMyKasFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMalaysiaMyKasFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MalaysiaMyKasFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMalaysiaMyKasFrontRecognizer *recognizer = [[MBMalaysiaMyKasFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractFullNameAndAddress = [jsonRecognizer valueForKey:@"extractFullNameAndAddress"]; - if (extractFullNameAndAddress != nil) { - recognizer.extractFullNameAndAddress = [(NSNumber *)extractFullNameAndAddress boolValue]; - } - } - { - id extractReligion = [jsonRecognizer valueForKey:@"extractReligion"]; - if (extractReligion != nil) { - recognizer.extractReligion = [(NSNumber *)extractReligion boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMalaysiaMyKasFrontRecognizer (JsonSerialization) -@end - -@implementation MBMalaysiaMyKasFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.birthDate] forKey:@"birthDate"]; - [jsonResult setValue:self.result.city forKey:@"city"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.fullAddress forKey:@"fullAddress"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.nric forKey:@"nric"]; - [jsonResult setValue:self.result.ownerState forKey:@"ownerState"]; - [jsonResult setValue:self.result.religion forKey:@"religion"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.street forKey:@"street"]; - [jsonResult setValue:self.result.zipcode forKey:@"zipcode"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.h deleted file mode 100644 index b6d5a8f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMalaysiaMyPrFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.m deleted file mode 100644 index ec7f73e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyPrFrontRecognizerWrapper.m +++ /dev/null @@ -1,103 +0,0 @@ -#import "MBMalaysiaMyPrFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMalaysiaMyPrFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MalaysiaMyPrFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMalaysiaMyPrFrontRecognizer *recognizer = [[MBMalaysiaMyPrFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractFullNameAndAddress = [jsonRecognizer valueForKey:@"extractFullNameAndAddress"]; - if (extractFullNameAndAddress != nil) { - recognizer.extractFullNameAndAddress = [(NSNumber *)extractFullNameAndAddress boolValue]; - } - } - { - id extractReligion = [jsonRecognizer valueForKey:@"extractReligion"]; - if (extractReligion != nil) { - recognizer.extractReligion = [(NSNumber *)extractReligion boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMalaysiaMyPrFrontRecognizer (JsonSerialization) -@end - -@implementation MBMalaysiaMyPrFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.birthDate] forKey:@"birthDate"]; - [jsonResult setValue:self.result.city forKey:@"city"]; - [jsonResult setValue:self.result.countryCode forKey:@"countryCode"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.fullAddress forKey:@"fullAddress"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.nric forKey:@"nric"]; - [jsonResult setValue:self.result.ownerState forKey:@"ownerState"]; - [jsonResult setValue:self.result.religion forKey:@"religion"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.street forKey:@"street"]; - [jsonResult setValue:self.result.zipcode forKey:@"zipcode"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.h deleted file mode 100644 index 8e4722f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMalaysiaMyTenteraFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.m deleted file mode 100644 index cd0cdc5..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMalaysiaMyTenteraFrontRecognizerWrapper.m +++ /dev/null @@ -1,97 +0,0 @@ -#import "MBMalaysiaMyTenteraFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMalaysiaMyTenteraFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MalaysiaMyTenteraFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMalaysiaMyTenteraFrontRecognizer *recognizer = [[MBMalaysiaMyTenteraFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractFullNameAndAddress = [jsonRecognizer valueForKey:@"extractFullNameAndAddress"]; - if (extractFullNameAndAddress != nil) { - recognizer.extractFullNameAndAddress = [(NSNumber *)extractFullNameAndAddress boolValue]; - } - } - { - id extractReligion = [jsonRecognizer valueForKey:@"extractReligion"]; - if (extractReligion != nil) { - recognizer.extractReligion = [(NSNumber *)extractReligion boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMalaysiaMyTenteraFrontRecognizer (JsonSerialization) -@end - -@implementation MBMalaysiaMyTenteraFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.armyNumber forKey:@"armyNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.birthDate] forKey:@"birthDate"]; - [jsonResult setValue:self.result.city forKey:@"city"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.fullAddress forKey:@"fullAddress"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.nric forKey:@"nric"]; - [jsonResult setValue:self.result.ownerState forKey:@"ownerState"]; - [jsonResult setValue:self.result.religion forKey:@"religion"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.street forKey:@"street"]; - [jsonResult setValue:self.result.zipcode forKey:@"zipcode"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.h deleted file mode 100644 index d03b567..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMexicoVoterIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.m deleted file mode 100644 index 8089dff..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMexicoVoterIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,111 +0,0 @@ -#import "MBMexicoVoterIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMexicoVoterIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MexicoVoterIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMexicoVoterIdFrontRecognizer *recognizer = [[MBMexicoVoterIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractCurp = [jsonRecognizer valueForKey:@"extractCurp"]; - if (extractCurp != nil) { - recognizer.extractCurp = [(NSNumber *)extractCurp boolValue]; - } - } - { - id extractFullName = [jsonRecognizer valueForKey:@"extractFullName"]; - if (extractFullName != nil) { - recognizer.extractFullName = [(NSNumber *)extractFullName boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMexicoVoterIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBMexicoVoterIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.curp forKey:@"curp"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:self.result.electorKey forKey:@"electorKey"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.fullName forKey:@"fullName"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.h deleted file mode 100644 index e33992f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMoroccoIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.m deleted file mode 100644 index db8a4eb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdBackRecognizerWrapper.m +++ /dev/null @@ -1,104 +0,0 @@ -#import "MBMoroccoIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMoroccoIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MoroccoIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMoroccoIdBackRecognizer *recognizer = [[MBMoroccoIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractCivilStatusNumber = [jsonRecognizer valueForKey:@"extractCivilStatusNumber"]; - if (extractCivilStatusNumber != nil) { - recognizer.extractCivilStatusNumber = [(NSNumber *)extractCivilStatusNumber boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractFathersName = [jsonRecognizer valueForKey:@"extractFathersName"]; - if (extractFathersName != nil) { - recognizer.extractFathersName = [(NSNumber *)extractFathersName boolValue]; - } - } - { - id extractMothersName = [jsonRecognizer valueForKey:@"extractMothersName"]; - if (extractMothersName != nil) { - recognizer.extractMothersName = [(NSNumber *)extractMothersName boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMoroccoIdBackRecognizer (JsonSerialization) -@end - -@implementation MBMoroccoIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.civilStatusNumber forKey:@"civilStatusNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:self.result.fathersName forKey:@"fathersName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.mothersName forKey:@"mothersName"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.h deleted file mode 100644 index 0ab1c9a..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBMoroccoIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.m deleted file mode 100644 index 5ac4d16..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMoroccoIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,130 +0,0 @@ -#import "MBMoroccoIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBMoroccoIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"MoroccoIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBMoroccoIdFrontRecognizer *recognizer = [[MBMoroccoIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBMoroccoIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBMoroccoIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m index 70f68f3..e026ad9 100644 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m @@ -97,7 +97,7 @@ -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; + [jsonResult setValue:[NSNumber numberWithInteger:(self.result.documentDataMatch + 1)] forKey:@"documentDataMatch"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.h deleted file mode 100644 index 714cd18..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBNewZealandDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.m deleted file mode 100644 index bef8c1c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNewZealandDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,138 +0,0 @@ -#import "MBNewZealandDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBNewZealandDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"NewZealandDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBNewZealandDlFrontRecognizer *recognizer = [[MBNewZealandDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractDonorIndicator = [jsonRecognizer valueForKey:@"extractDonorIndicator"]; - if (extractDonorIndicator != nil) { - recognizer.extractDonorIndicator = [(NSNumber *)extractDonorIndicator boolValue]; - } - } - { - id extractFirstNames = [jsonRecognizer valueForKey:@"extractFirstNames"]; - if (extractFirstNames != nil) { - recognizer.extractFirstNames = [(NSNumber *)extractFirstNames boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBNewZealandDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBNewZealandDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.cardVersion forKey:@"cardVersion"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.donorIndicator] forKey:@"donorIndicator"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstNames forKey:@"firstNames"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.licenseNumber forKey:@"licenseNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.h deleted file mode 100644 index e3640cb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBNigeriaVoterIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.m deleted file mode 100644 index 4d6f8f6..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBNigeriaVoterIdBackRecognizerWrapper.m +++ /dev/null @@ -1,67 +0,0 @@ -#import "MBNigeriaVoterIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBNigeriaVoterIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"NigeriaVoterIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBNigeriaVoterIdBackRecognizer *recognizer = [[MBNigeriaVoterIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBNigeriaVoterIdBackRecognizer (JsonSerialization) -@end - -@implementation MBNigeriaVoterIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.rawBarcodeData forKey:@"rawBarcodeData"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.h deleted file mode 100644 index 2482b3a..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBPdf417RecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.m deleted file mode 100644 index e4e6a39..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPdf417RecognizerWrapper.m +++ /dev/null @@ -1,58 +0,0 @@ -#import "MBPdf417RecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBPdf417RecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"Pdf417Recognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBPdf417Recognizer *recognizer = [[MBPdf417Recognizer alloc] init]; - { - id nullQuietZoneAllowed = [jsonRecognizer valueForKey:@"nullQuietZoneAllowed"]; - if (nullQuietZoneAllowed != nil) { - recognizer.nullQuietZoneAllowed = [(NSNumber *)nullQuietZoneAllowed boolValue]; - } - } - { - id scanInverse = [jsonRecognizer valueForKey:@"scanInverse"]; - if (scanInverse != nil) { - recognizer.scanInverse = [(NSNumber *)scanInverse boolValue]; - } - } - { - id scanUncertain = [jsonRecognizer valueForKey:@"scanUncertain"]; - if (scanUncertain != nil) { - recognizer.scanUncertain = [(NSNumber *)scanUncertain boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBPdf417Recognizer (JsonSerialization) -@end - -@implementation MBPdf417Recognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[NSNumber numberWithInteger:(self.result.barcodeType + 1)] forKey:@"barcodeType"]; - [jsonResult setValue:[self.result.rawData base64EncodedStringWithOptions:0] forKey:@"rawData"]; - [jsonResult setValue:self.result.stringData forKey:@"stringData"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.uncertain] forKey:@"uncertain"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.h deleted file mode 100644 index 0689452..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBPolandCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.m deleted file mode 100644 index 922e448..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandCombinedRecognizerWrapper.m +++ /dev/null @@ -1,133 +0,0 @@ -#import "MBPolandCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBPolandCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"PolandCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBPolandCombinedRecognizer *recognizer = [[MBPolandCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFamilyName = [jsonRecognizer valueForKey:@"extractFamilyName"]; - if (extractFamilyName != nil) { - recognizer.extractFamilyName = [(NSNumber *)extractFamilyName boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractParentsGivenNames = [jsonRecognizer valueForKey:@"extractParentsGivenNames"]; - if (extractParentsGivenNames != nil) { - recognizer.extractParentsGivenNames = [(NSNumber *)extractParentsGivenNames boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBPolandCombinedRecognizer (JsonSerialization) -@end - -@implementation MBPolandCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.familyName forKey:@"familyName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.parentsGivenNames forKey:@"parentsGivenNames"]; - [jsonResult setValue:self.result.personalNumber forKey:@"personalNumber"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.h deleted file mode 100644 index d5a6e19..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBPolandIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m deleted file mode 100644 index 892d985..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdBackRecognizerWrapper.m +++ /dev/null @@ -1,62 +0,0 @@ -#import "MBPolandIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBPolandIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"PolandIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBPolandIdBackRecognizer *recognizer = [[MBPolandIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBPolandIdBackRecognizer (JsonSerialization) -@end - -@implementation MBPolandIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.h deleted file mode 100644 index 6e99ff8..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBPolandIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m deleted file mode 100644 index 3c45277..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBPolandIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,116 +0,0 @@ -#import "MBPolandIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBPolandIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"PolandIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBPolandIdFrontRecognizer *recognizer = [[MBPolandIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFamilyName = [jsonRecognizer valueForKey:@"extractFamilyName"]; - if (extractFamilyName != nil) { - recognizer.extractFamilyName = [(NSNumber *)extractFamilyName boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractParentsGivenNames = [jsonRecognizer valueForKey:@"extractParentsGivenNames"]; - if (extractParentsGivenNames != nil) { - recognizer.extractParentsGivenNames = [(NSNumber *)extractParentsGivenNames boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBPolandIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBPolandIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.familyName forKey:@"familyName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:self.result.parentsGivenNames forKey:@"parentsGivenNames"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.h deleted file mode 100644 index f174d2d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBRomaniaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.m deleted file mode 100644 index e0538c8..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBRomaniaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,134 +0,0 @@ -#import "MBRomaniaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBRomaniaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"RomaniaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBRomaniaIdFrontRecognizer *recognizer = [[MBRomaniaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuedBy = [jsonRecognizer valueForKey:@"extractIssuedBy"]; - if (extractIssuedBy != nil) { - recognizer.extractIssuedBy = [(NSNumber *)extractIssuedBy boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBRomaniaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBRomaniaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.cnpNumber forKey:@"cnpNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.parentName forKey:@"parentName"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.h deleted file mode 100644 index 1bce257..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSimNumberRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.m deleted file mode 100644 index 3da1e5c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSimNumberRecognizerWrapper.m +++ /dev/null @@ -1,37 +0,0 @@ -#import "MBSimNumberRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSimNumberRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SimNumberRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSimNumberRecognizer *recognizer = [[MBSimNumberRecognizer alloc] init]; - - return recognizer; -} - -@end - -@interface MBSimNumberRecognizer (JsonSerialization) -@end - -@implementation MBSimNumberRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.simNumber forKey:@"simNumber"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.h deleted file mode 100644 index 0d949b5..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSingaporeChangiEmployeeIdRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.m deleted file mode 100644 index 74ecec3..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeChangiEmployeeIdRecognizerWrapper.m +++ /dev/null @@ -1,96 +0,0 @@ -#import "MBSingaporeChangiEmployeeIdRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSingaporeChangiEmployeeIdRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SingaporeChangiEmployeeIdRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSingaporeChangiEmployeeIdRecognizer *recognizer = [[MBSingaporeChangiEmployeeIdRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractCompanyName = [jsonRecognizer valueForKey:@"extractCompanyName"]; - if (extractCompanyName != nil) { - recognizer.extractCompanyName = [(NSNumber *)extractCompanyName boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSingaporeChangiEmployeeIdRecognizer (JsonSerialization) -@end - -@implementation MBSingaporeChangiEmployeeIdRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.companyName forKey:@"companyName"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.h deleted file mode 100644 index e6919cd..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSingaporeCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.m deleted file mode 100644 index c054e5d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeCombinedRecognizerWrapper.m +++ /dev/null @@ -1,149 +0,0 @@ -#import "MBSingaporeCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSingaporeCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SingaporeCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSingaporeCombinedRecognizer *recognizer = [[MBSingaporeCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractAddressChangeDate = [jsonRecognizer valueForKey:@"extractAddressChangeDate"]; - if (extractAddressChangeDate != nil) { - recognizer.extractAddressChangeDate = [(NSNumber *)extractAddressChangeDate boolValue]; - } - } - { - id extractBloodGroup = [jsonRecognizer valueForKey:@"extractBloodGroup"]; - if (extractBloodGroup != nil) { - recognizer.extractBloodGroup = [(NSNumber *)extractBloodGroup boolValue]; - } - } - { - id extractCountryOfBirth = [jsonRecognizer valueForKey:@"extractCountryOfBirth"]; - if (extractCountryOfBirth != nil) { - recognizer.extractCountryOfBirth = [(NSNumber *)extractCountryOfBirth boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractRace = [jsonRecognizer valueForKey:@"extractRace"]; - if (extractRace != nil) { - recognizer.extractRace = [(NSNumber *)extractRace boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSingaporeCombinedRecognizer (JsonSerialization) -@end - -@implementation MBSingaporeCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.addressChangeDate] forKey:@"addressChangeDate"]; - [jsonResult setValue:self.result.bloodGroup forKey:@"bloodGroup"]; - [jsonResult setValue:self.result.countryOfBirth forKey:@"countryOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.identityCardNumber forKey:@"identityCardNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.race forKey:@"race"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.h deleted file mode 100644 index a91bf2e..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSingaporeDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.m deleted file mode 100644 index d7971d6..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,103 +0,0 @@ -#import "MBSingaporeDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSingaporeDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SingaporeDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSingaporeDlFrontRecognizer *recognizer = [[MBSingaporeDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractBirthDate = [jsonRecognizer valueForKey:@"extractBirthDate"]; - if (extractBirthDate != nil) { - recognizer.extractBirthDate = [(NSNumber *)extractBirthDate boolValue]; - } - } - { - id extractIssueDate = [jsonRecognizer valueForKey:@"extractIssueDate"]; - if (extractIssueDate != nil) { - recognizer.extractIssueDate = [(NSNumber *)extractIssueDate boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractValidTill = [jsonRecognizer valueForKey:@"extractValidTill"]; - if (extractValidTill != nil) { - recognizer.extractValidTill = [(NSNumber *)extractValidTill boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSingaporeDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBSingaporeDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.birthDate] forKey:@"birthDate"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.issueDate] forKey:@"issueDate"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validTill] forKey:@"validTill"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.h deleted file mode 100644 index 8642896..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSingaporeIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.m deleted file mode 100644 index 9719da8..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdBackRecognizerWrapper.m +++ /dev/null @@ -1,90 +0,0 @@ -#import "MBSingaporeIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSingaporeIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SingaporeIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSingaporeIdBackRecognizer *recognizer = [[MBSingaporeIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractAddressChangeDate = [jsonRecognizer valueForKey:@"extractAddressChangeDate"]; - if (extractAddressChangeDate != nil) { - recognizer.extractAddressChangeDate = [(NSNumber *)extractAddressChangeDate boolValue]; - } - } - { - id extractBloodGroup = [jsonRecognizer valueForKey:@"extractBloodGroup"]; - if (extractBloodGroup != nil) { - recognizer.extractBloodGroup = [(NSNumber *)extractBloodGroup boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSingaporeIdBackRecognizer (JsonSerialization) -@end - -@implementation MBSingaporeIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.addressChangeDate] forKey:@"addressChangeDate"]; - [jsonResult setValue:self.result.bloodGroup forKey:@"bloodGroup"]; - [jsonResult setValue:self.result.cardNumber forKey:@"cardNumber"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.h deleted file mode 100644 index 0186a82..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSingaporeIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.m deleted file mode 100644 index b066b7f..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSingaporeIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,110 +0,0 @@ -#import "MBSingaporeIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSingaporeIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SingaporeIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSingaporeIdFrontRecognizer *recognizer = [[MBSingaporeIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractCountryOfBirth = [jsonRecognizer valueForKey:@"extractCountryOfBirth"]; - if (extractCountryOfBirth != nil) { - recognizer.extractCountryOfBirth = [(NSNumber *)extractCountryOfBirth boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractRace = [jsonRecognizer valueForKey:@"extractRace"]; - if (extractRace != nil) { - recognizer.extractRace = [(NSNumber *)extractRace boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSingaporeIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBSingaporeIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.countryOfBirth forKey:@"countryOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.identityCardNumber forKey:@"identityCardNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.race forKey:@"race"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.h deleted file mode 100644 index 92bc177..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSlovakiaCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.m deleted file mode 100644 index fc76390..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaCombinedRecognizerWrapper.m +++ /dev/null @@ -1,191 +0,0 @@ -#import "MBSlovakiaCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSlovakiaCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SlovakiaCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSlovakiaCombinedRecognizer *recognizer = [[MBSlovakiaCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractDocumentNumber = [jsonRecognizer valueForKey:@"extractDocumentNumber"]; - if (extractDocumentNumber != nil) { - recognizer.extractDocumentNumber = [(NSNumber *)extractDocumentNumber boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuedBy = [jsonRecognizer valueForKey:@"extractIssuedBy"]; - if (extractIssuedBy != nil) { - recognizer.extractIssuedBy = [(NSNumber *)extractIssuedBy boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSpecialRemarks = [jsonRecognizer valueForKey:@"extractSpecialRemarks"]; - if (extractSpecialRemarks != nil) { - recognizer.extractSpecialRemarks = [(NSNumber *)extractSpecialRemarks boolValue]; - } - } - { - id extractSurnameAtBirth = [jsonRecognizer valueForKey:@"extractSurnameAtBirth"]; - if (extractSurnameAtBirth != nil) { - recognizer.extractSurnameAtBirth = [(NSNumber *)extractSurnameAtBirth boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSlovakiaCombinedRecognizer (JsonSerialization) -@end - -@implementation MBSlovakiaCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.personalNumber forKey:@"personalNumber"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.specialRemarks forKey:@"specialRemarks"]; - [jsonResult setValue:self.result.surnameAtBirth forKey:@"surnameAtBirth"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.h deleted file mode 100644 index 4c4ff24..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSlovakiaIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.m deleted file mode 100644 index a67c784..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdBackRecognizerWrapper.m +++ /dev/null @@ -1,90 +0,0 @@ -#import "MBSlovakiaIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSlovakiaIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SlovakiaIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSlovakiaIdBackRecognizer *recognizer = [[MBSlovakiaIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSpecialRemarks = [jsonRecognizer valueForKey:@"extractSpecialRemarks"]; - if (extractSpecialRemarks != nil) { - recognizer.extractSpecialRemarks = [(NSNumber *)extractSpecialRemarks boolValue]; - } - } - { - id extractSurnameAtBirth = [jsonRecognizer valueForKey:@"extractSurnameAtBirth"]; - if (extractSurnameAtBirth != nil) { - recognizer.extractSurnameAtBirth = [(NSNumber *)extractSurnameAtBirth boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSlovakiaIdBackRecognizer (JsonSerialization) -@end - -@implementation MBSlovakiaIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:self.result.specialRemarks forKey:@"specialRemarks"]; - [jsonResult setValue:self.result.surnameAtBirth forKey:@"surnameAtBirth"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.h deleted file mode 100644 index e8e5fbd..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSlovakiaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.m deleted file mode 100644 index dfb8fa9..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSlovakiaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,151 +0,0 @@ -#import "MBSlovakiaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSlovakiaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SlovakiaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSlovakiaIdFrontRecognizer *recognizer = [[MBSlovakiaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractDocumentNumber = [jsonRecognizer valueForKey:@"extractDocumentNumber"]; - if (extractDocumentNumber != nil) { - recognizer.extractDocumentNumber = [(NSNumber *)extractDocumentNumber boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuedBy = [jsonRecognizer valueForKey:@"extractIssuedBy"]; - if (extractIssuedBy != nil) { - recognizer.extractIssuedBy = [(NSNumber *)extractIssuedBy boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSlovakiaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBSlovakiaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuedBy forKey:@"issuedBy"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.personalNumber forKey:@"personalNumber"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.h deleted file mode 100644 index e408657..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSloveniaCombinedRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.m deleted file mode 100644 index 7a6fddb..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaCombinedRecognizerWrapper.m +++ /dev/null @@ -1,159 +0,0 @@ -#import "MBSloveniaCombinedRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSloveniaCombinedRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SloveniaCombinedRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSloveniaCombinedRecognizer *recognizer = [[MBSloveniaCombinedRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractAdministrativeUnit = [jsonRecognizer valueForKey:@"extractAdministrativeUnit"]; - if (extractAdministrativeUnit != nil) { - recognizer.extractAdministrativeUnit = [(NSNumber *)extractAdministrativeUnit boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signResult = [jsonRecognizer valueForKey:@"signResult"]; - if (signResult != nil) { - recognizer.signResult = [(NSNumber *)signResult boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSloveniaCombinedRecognizer (JsonSerialization) -@end - -@implementation MBSloveniaCombinedRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.administrativeUnit forKey:@"administrativeUnit"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfExpiryPermanent] forKey:@"dateOfExpiryPermanent"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.documentDataMatch] forKey:@"documentDataMatch"]; - [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentFrontImage] forKey:@"fullDocumentFrontImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.mrzVerified] forKey:@"mrzVerified"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.pin forKey:@"pin"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.scanningFirstSideDone] forKey:@"scanningFirstSideDone"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.h deleted file mode 100644 index 776b127..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSloveniaIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.m deleted file mode 100644 index 0a152bd..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdBackRecognizerWrapper.m +++ /dev/null @@ -1,83 +0,0 @@ -#import "MBSloveniaIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSloveniaIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SloveniaIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSloveniaIdBackRecognizer *recognizer = [[MBSloveniaIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAddress = [jsonRecognizer valueForKey:@"extractAddress"]; - if (extractAddress != nil) { - recognizer.extractAddress = [(NSNumber *)extractAddress boolValue]; - } - } - { - id extractAdministrativeUnit = [jsonRecognizer valueForKey:@"extractAdministrativeUnit"]; - if (extractAdministrativeUnit != nil) { - recognizer.extractAdministrativeUnit = [(NSNumber *)extractAdministrativeUnit boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSloveniaIdBackRecognizer (JsonSerialization) -@end - -@implementation MBSloveniaIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.address forKey:@"address"]; - [jsonResult setValue:self.result.administrativeUnit forKey:@"administrativeUnit"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.h deleted file mode 100644 index e44c3e6..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSloveniaIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.m deleted file mode 100644 index 02e5c54..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSloveniaIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,124 +0,0 @@ -#import "MBSloveniaIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSloveniaIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SloveniaIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSloveniaIdFrontRecognizer *recognizer = [[MBSloveniaIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractGivenNames = [jsonRecognizer valueForKey:@"extractGivenNames"]; - if (extractGivenNames != nil) { - recognizer.extractGivenNames = [(NSNumber *)extractGivenNames boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSloveniaIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBSloveniaIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfExpiryPermanent] forKey:@"dateOfExpiryPermanent"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenNames forKey:@"givenNames"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.h deleted file mode 100644 index 417aa05..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSpainDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.m deleted file mode 100644 index 4a215be..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSpainDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,144 +0,0 @@ -#import "MBSpainDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSpainDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SpainDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSpainDlFrontRecognizer *recognizer = [[MBSpainDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractLicenceCategories = [jsonRecognizer valueForKey:@"extractLicenceCategories"]; - if (extractLicenceCategories != nil) { - recognizer.extractLicenceCategories = [(NSNumber *)extractLicenceCategories boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id extractValidFrom = [jsonRecognizer valueForKey:@"extractValidFrom"]; - if (extractValidFrom != nil) { - recognizer.extractValidFrom = [(NSNumber *)extractValidFrom boolValue]; - } - } - { - id extractValidUntil = [jsonRecognizer valueForKey:@"extractValidUntil"]; - if (extractValidUntil != nil) { - recognizer.extractValidUntil = [(NSNumber *)extractValidUntil boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSpainDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBSpainDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:self.result.licenceCategories forKey:@"licenceCategories"]; - [jsonResult setValue:self.result.number forKey:@"number"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validFrom] forKey:@"validFrom"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.validUntil] forKey:@"validUntil"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.h deleted file mode 100644 index ca48674..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSwedenDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.m deleted file mode 100644 index e74401c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwedenDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,144 +0,0 @@ -#import "MBSwedenDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSwedenDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SwedenDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSwedenDlFrontRecognizer *recognizer = [[MBSwedenDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractIssuingAgency = [jsonRecognizer valueForKey:@"extractIssuingAgency"]; - if (extractIssuingAgency != nil) { - recognizer.extractIssuingAgency = [(NSNumber *)extractIssuingAgency boolValue]; - } - } - { - id extractLicenceCategories = [jsonRecognizer valueForKey:@"extractLicenceCategories"]; - if (extractLicenceCategories != nil) { - recognizer.extractLicenceCategories = [(NSNumber *)extractLicenceCategories boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractReferenceNumber = [jsonRecognizer valueForKey:@"extractReferenceNumber"]; - if (extractReferenceNumber != nil) { - recognizer.extractReferenceNumber = [(NSNumber *)extractReferenceNumber boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSwedenDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBSwedenDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuingAgency forKey:@"issuingAgency"]; - [jsonResult setValue:self.result.licenceCategories forKey:@"licenceCategories"]; - [jsonResult setValue:self.result.licenceNumber forKey:@"licenceNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.referenceNumber forKey:@"referenceNumber"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.h deleted file mode 100644 index 0902c1c..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSwitzerlandDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.m deleted file mode 100644 index 253c438..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,145 +0,0 @@ -#import "MBSwitzerlandDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSwitzerlandDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SwitzerlandDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSwitzerlandDlFrontRecognizer *recognizer = [[MBSwitzerlandDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractFirstName = [jsonRecognizer valueForKey:@"extractFirstName"]; - if (extractFirstName != nil) { - recognizer.extractFirstName = [(NSNumber *)extractFirstName boolValue]; - } - } - { - id extractIssuingAuthority = [jsonRecognizer valueForKey:@"extractIssuingAuthority"]; - if (extractIssuingAuthority != nil) { - recognizer.extractIssuingAuthority = [(NSNumber *)extractIssuingAuthority boolValue]; - } - } - { - id extractLastName = [jsonRecognizer valueForKey:@"extractLastName"]; - if (extractLastName != nil) { - recognizer.extractLastName = [(NSNumber *)extractLastName boolValue]; - } - } - { - id extractPlaceOfBirth = [jsonRecognizer valueForKey:@"extractPlaceOfBirth"]; - if (extractPlaceOfBirth != nil) { - recognizer.extractPlaceOfBirth = [(NSNumber *)extractPlaceOfBirth boolValue]; - } - } - { - id extractVehicleCategories = [jsonRecognizer valueForKey:@"extractVehicleCategories"]; - if (extractVehicleCategories != nil) { - recognizer.extractVehicleCategories = [(NSNumber *)extractVehicleCategories boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSwitzerlandDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBSwitzerlandDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[NSNumber numberWithBool:self.result.expiryDatePermanent] forKey:@"expiryDatePermanent"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:self.result.firstName forKey:@"firstName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.issuingAuthority forKey:@"issuingAuthority"]; - [jsonResult setValue:self.result.lastName forKey:@"lastName"]; - [jsonResult setValue:self.result.licenseNumber forKey:@"licenseNumber"]; - [jsonResult setValue:self.result.placeOfBirth forKey:@"placeOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.vehicleCategories forKey:@"vehicleCategories"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.h deleted file mode 100644 index 4c7887b..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSwitzerlandIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.m deleted file mode 100644 index afc1748..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdBackRecognizerWrapper.m +++ /dev/null @@ -1,104 +0,0 @@ -#import "MBSwitzerlandIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSwitzerlandIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SwitzerlandIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSwitzerlandIdBackRecognizer *recognizer = [[MBSwitzerlandIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAuthority = [jsonRecognizer valueForKey:@"extractAuthority"]; - if (extractAuthority != nil) { - recognizer.extractAuthority = [(NSNumber *)extractAuthority boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractHeight = [jsonRecognizer valueForKey:@"extractHeight"]; - if (extractHeight != nil) { - recognizer.extractHeight = [(NSNumber *)extractHeight boolValue]; - } - } - { - id extractPlaceOfOrigin = [jsonRecognizer valueForKey:@"extractPlaceOfOrigin"]; - if (extractPlaceOfOrigin != nil) { - recognizer.extractPlaceOfOrigin = [(NSNumber *)extractPlaceOfOrigin boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSwitzerlandIdBackRecognizer (JsonSerialization) -@end - -@implementation MBSwitzerlandIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.authority forKey:@"authority"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.height forKey:@"height"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.placeOfOrigin forKey:@"placeOfOrigin"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.h deleted file mode 100644 index e64b8b9..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSwitzerlandIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.m deleted file mode 100644 index a08d8fd..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,102 +0,0 @@ -#import "MBSwitzerlandIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSwitzerlandIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SwitzerlandIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSwitzerlandIdFrontRecognizer *recognizer = [[MBSwitzerlandIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - { - id returnSignatureImage = [jsonRecognizer valueForKey:@"returnSignatureImage"]; - if (returnSignatureImage != nil) { - recognizer.returnSignatureImage = [(NSNumber *)returnSignatureImage boolValue]; - } - } - { - id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; - if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSwitzerlandIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBSwitzerlandIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenName forKey:@"givenName"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.signatureImage] forKey:@"signatureImage"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.h deleted file mode 100644 index d2bfd3d..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBSwitzerlandPassportRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.m deleted file mode 100644 index 41df9de..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBSwitzerlandPassportRecognizerWrapper.m +++ /dev/null @@ -1,145 +0,0 @@ -#import "MBSwitzerlandPassportRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBSwitzerlandPassportRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"SwitzerlandPassportRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBSwitzerlandPassportRecognizer *recognizer = [[MBSwitzerlandPassportRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractAuthority = [jsonRecognizer valueForKey:@"extractAuthority"]; - if (extractAuthority != nil) { - recognizer.extractAuthority = [(NSNumber *)extractAuthority boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractDateOfExpiry = [jsonRecognizer valueForKey:@"extractDateOfExpiry"]; - if (extractDateOfExpiry != nil) { - recognizer.extractDateOfExpiry = [(NSNumber *)extractDateOfExpiry boolValue]; - } - } - { - id extractDateOfIssue = [jsonRecognizer valueForKey:@"extractDateOfIssue"]; - if (extractDateOfIssue != nil) { - recognizer.extractDateOfIssue = [(NSNumber *)extractDateOfIssue boolValue]; - } - } - { - id extractGivenName = [jsonRecognizer valueForKey:@"extractGivenName"]; - if (extractGivenName != nil) { - recognizer.extractGivenName = [(NSNumber *)extractGivenName boolValue]; - } - } - { - id extractHeight = [jsonRecognizer valueForKey:@"extractHeight"]; - if (extractHeight != nil) { - recognizer.extractHeight = [(NSNumber *)extractHeight boolValue]; - } - } - { - id extractPassportNumber = [jsonRecognizer valueForKey:@"extractPassportNumber"]; - if (extractPassportNumber != nil) { - recognizer.extractPassportNumber = [(NSNumber *)extractPassportNumber boolValue]; - } - } - { - id extractPlaceOfOrigin = [jsonRecognizer valueForKey:@"extractPlaceOfOrigin"]; - if (extractPlaceOfOrigin != nil) { - recognizer.extractPlaceOfOrigin = [(NSNumber *)extractPlaceOfOrigin boolValue]; - } - } - { - id extractSex = [jsonRecognizer valueForKey:@"extractSex"]; - if (extractSex != nil) { - recognizer.extractSex = [(NSNumber *)extractSex boolValue]; - } - } - { - id extractSurname = [jsonRecognizer valueForKey:@"extractSurname"]; - if (extractSurname != nil) { - recognizer.extractSurname = [(NSNumber *)extractSurname boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBSwitzerlandPassportRecognizer (JsonSerialization) -@end - -@implementation MBSwitzerlandPassportRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.authority forKey:@"authority"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfExpiry] forKey:@"dateOfExpiry"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.givenName forKey:@"givenName"]; - [jsonResult setValue:self.result.height forKey:@"height"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - [jsonResult setValue:self.result.passportNumber forKey:@"passportNumber"]; - [jsonResult setValue:self.result.placeOfOrigin forKey:@"placeOfOrigin"]; - [jsonResult setValue:self.result.sex forKey:@"sex"]; - [jsonResult setValue:self.result.surname forKey:@"surname"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.h deleted file mode 100644 index 4461a80..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBUnitedArabEmiratesDlFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.m deleted file mode 100644 index 4e3c695..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesDlFrontRecognizerWrapper.m +++ /dev/null @@ -1,124 +0,0 @@ -#import "MBUnitedArabEmiratesDlFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBUnitedArabEmiratesDlFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"UnitedArabEmiratesDlFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBUnitedArabEmiratesDlFrontRecognizer *recognizer = [[MBUnitedArabEmiratesDlFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractDateOfBirth = [jsonRecognizer valueForKey:@"extractDateOfBirth"]; - if (extractDateOfBirth != nil) { - recognizer.extractDateOfBirth = [(NSNumber *)extractDateOfBirth boolValue]; - } - } - { - id extractIssueDate = [jsonRecognizer valueForKey:@"extractIssueDate"]; - if (extractIssueDate != nil) { - recognizer.extractIssueDate = [(NSNumber *)extractIssueDate boolValue]; - } - } - { - id extractLicenseNumber = [jsonRecognizer valueForKey:@"extractLicenseNumber"]; - if (extractLicenseNumber != nil) { - recognizer.extractLicenseNumber = [(NSNumber *)extractLicenseNumber boolValue]; - } - } - { - id extractLicensingAuthority = [jsonRecognizer valueForKey:@"extractLicensingAuthority"]; - if (extractLicensingAuthority != nil) { - recognizer.extractLicensingAuthority = [(NSNumber *)extractLicensingAuthority boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id extractPlaceOfIssue = [jsonRecognizer valueForKey:@"extractPlaceOfIssue"]; - if (extractPlaceOfIssue != nil) { - recognizer.extractPlaceOfIssue = [(NSNumber *)extractPlaceOfIssue boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBUnitedArabEmiratesDlFrontRecognizer (JsonSerialization) -@end - -@implementation MBUnitedArabEmiratesDlFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfBirth] forKey:@"dateOfBirth"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.expiryDate] forKey:@"expiryDate"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.issueDate] forKey:@"issueDate"]; - [jsonResult setValue:self.result.licenseNumber forKey:@"licenseNumber"]; - [jsonResult setValue:self.result.licensingAuthority forKey:@"licensingAuthority"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - [jsonResult setValue:self.result.placeOfIssue forKey:@"placeOfIssue"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.h deleted file mode 100644 index f67abf2..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBUnitedArabEmiratesIdBackRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.m deleted file mode 100644 index bfb1a73..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdBackRecognizerWrapper.m +++ /dev/null @@ -1,62 +0,0 @@ -#import "MBUnitedArabEmiratesIdBackRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBUnitedArabEmiratesIdBackRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"UnitedArabEmiratesIdBackRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBUnitedArabEmiratesIdBackRecognizer *recognizer = [[MBUnitedArabEmiratesIdBackRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBUnitedArabEmiratesIdBackRecognizer (JsonSerialization) -@end - -@implementation MBUnitedArabEmiratesIdBackRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.h deleted file mode 100644 index 7f48015..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBUnitedArabEmiratesIdFrontRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.m deleted file mode 100644 index aacdb98..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBUnitedArabEmiratesIdFrontRecognizerWrapper.m +++ /dev/null @@ -1,89 +0,0 @@ -#import "MBUnitedArabEmiratesIdFrontRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBUnitedArabEmiratesIdFrontRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"UnitedArabEmiratesIdFrontRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBUnitedArabEmiratesIdFrontRecognizer *recognizer = [[MBUnitedArabEmiratesIdFrontRecognizer alloc] init]; - { - id detectGlare = [jsonRecognizer valueForKey:@"detectGlare"]; - if (detectGlare != nil) { - recognizer.detectGlare = [(NSNumber *)detectGlare boolValue]; - } - } - { - id extractName = [jsonRecognizer valueForKey:@"extractName"]; - if (extractName != nil) { - recognizer.extractName = [(NSNumber *)extractName boolValue]; - } - } - { - id extractNationality = [jsonRecognizer valueForKey:@"extractNationality"]; - if (extractNationality != nil) { - recognizer.extractNationality = [(NSNumber *)extractNationality boolValue]; - } - } - { - id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; - if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; - if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; - } - } - { - id fullDocumentImageExtensionFactors = [jsonRecognizer valueForKey:@"fullDocumentImageExtensionFactors"]; - if (fullDocumentImageExtensionFactors != nil) { - recognizer.fullDocumentImageExtensionFactors = [MBBlinkIDSerializationUtils deserializeMBImageExtensionFactors:(NSDictionary*)fullDocumentImageExtensionFactors]; - } - } - { - id returnFaceImage = [jsonRecognizer valueForKey:@"returnFaceImage"]; - if (returnFaceImage != nil) { - recognizer.returnFaceImage = [(NSNumber *)returnFaceImage boolValue]; - } - } - { - id returnFullDocumentImage = [jsonRecognizer valueForKey:@"returnFullDocumentImage"]; - if (returnFullDocumentImage != nil) { - recognizer.returnFullDocumentImage = [(NSNumber *)returnFullDocumentImage boolValue]; - } - } - - return recognizer; -} - -@end - -@interface MBUnitedArabEmiratesIdFrontRecognizer (JsonSerialization) -@end - -@implementation MBUnitedArabEmiratesIdFrontRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; - [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; - [jsonResult setValue:self.result.idNumber forKey:@"idNumber"]; - [jsonResult setValue:self.result.name forKey:@"name"]; - [jsonResult setValue:self.result.nationality forKey:@"nationality"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.h b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.h deleted file mode 100644 index ed169e2..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.h +++ /dev/null @@ -1,6 +0,0 @@ -#import "MBRecognizerWrapper.h" -#import - -@interface MBVinRecognizerCreator : NSObject - -@end \ No newline at end of file diff --git a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.m b/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.m deleted file mode 100644 index d9fbe03..0000000 --- a/BlinkID/src/ios/MicroblinkModule/MicroblinkModule/Recognizers/Wrappers/MBVinRecognizerWrapper.m +++ /dev/null @@ -1,37 +0,0 @@ -#import "MBVinRecognizerWrapper.h" -#import "MBSerializationUtils.h" -#import "MBBlinkIDSerializationUtils.h" - -@implementation MBVinRecognizerCreator - -@synthesize jsonName = _jsonName; - --(instancetype) init { - self = [super init]; - if (self) { - _jsonName = @"VinRecognizer"; - } - return self; -} - --(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { - MBVinRecognizer *recognizer = [[MBVinRecognizer alloc] init]; - - return recognizer; -} - -@end - -@interface MBVinRecognizer (JsonSerialization) -@end - -@implementation MBVinRecognizer (JsonSerialization) - --(NSDictionary *) serializeResult { - NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; - [jsonResult setValue:self.result.vin forKey:@"vin"]; - - return jsonResult; -} - -@end \ No newline at end of file diff --git a/BlinkID/types.js b/BlinkID/types.js index 4d19dcb..6082c14 100644 --- a/BlinkID/types.js +++ b/BlinkID/types.js @@ -40,38 +40,6 @@ export class Quadrilateral { } } -/** - * Represents the type of scanned barcode - */ -export const BarcodeType = Object.freeze( - { - /** No barcode was scanned */ - None: 1, - /** QR code was scanned */ - QRCode: 2, - /** Data Matrix 2D barcode was scanned */ - DataMatrix: 3, - /** UPC E barcode was scanned */ - UPCE: 4, - /** UPC A barcode was scanned */ - UPCA: 5, - /** EAN 8 barcode was scanned */ - EAN8: 6, - /** EAN 13 barcode was scanned */ - EAN13: 7, - /** Code 128 barcode was scanned */ - Code128: 8, - /** Code 39 barcode was scanned */ - Code39: 9, - /** ITF barcode was scanned */ - ITF: 10, - /** Aztec 2D barcode was scanned */ - Aztec: 11, - /** PDF417 2D barcode was scanned */ - PDF417: 12 - } -); - /** * Possible types of Machine Readable Travel Documents (MRTDs). */ @@ -180,22 +148,6 @@ export class MrzResult { } } -/** - * Possible values for EUDL country field. - */ -export const EudlCountry = Object.freeze( - { - /** UK Driver's license */ - UK : 1, - /** German driver's license */ - Germany : 2, - /** Austrian driver's license */ - Austria : 3, - /** Performs country detection and uses scanning parameters for detected country */ - Automatic : 4 - } -); - /** Possible supported detectors for documents containing face image */ export const DocumentFaceDetectorType = Object.freeze( { @@ -208,68 +160,6 @@ export const DocumentFaceDetectorType = Object.freeze( } ); -/** - * Supported BlinkCard card issuer values. - */ -export const CardIssuer = Object.freeze( - { - /** Unidentified Card */ - Other: 1, - /** The American Express Company Card */ - AmericanExpress: 2, - /** The Bank of Montreal ABM Card */ - BmoAbm: 3, - /** China T-Union Transportation Card */ - ChinaTUnion: 4, - /** China UnionPay Card */ - ChinaUnionPay: 5, - /** Canadian Imperial Bank of Commerce Advantage Debit Card */ - CibcAdvantageDebit: 6, - /** CISS Card */ - Ciss: 7, - /** Diners Club International Card */ - DinersClubInternational: 8, - /** Diners Club United States & Canada Card */ - DinersClubUsCanada: 9, - /** Discover Card */ - DiscoverCard: 10, - /** HSBC Bank Canada Card */ - Hsbc: 11, - /** RuPay Card */ - RuPay: 12, - /** InterPayment Card */ - InterPayment: 13, - /** InstaPayment Card */ - InstaPayment: 14, - /** The JCB Company Card */ - Jcb: 15, - /** Laser Debit Card (deprecated) */ - Laser: 16, - /** Maestro Debit Card */ - Maestro: 17, - /** Dankort Card */ - Dankort: 18, - /** MIR Card */ - Mir: 19, - /** MasterCard Inc. Card */ - MasterCard: 20, - /** The Royal Bank of Canada Client Card */ - RbcClient: 21, - /** ScotiaBank Scotia Card */ - ScotiaBank: 22, - /** TD Canada Trust Access Card */ - TdCtAccess: 23, - /** Troy Card */ - Troy: 24, - /** Visa Inc. Card */ - Visa: 25, - /** Universal Air Travel Plan Inc. Card */ - Uatp: 26, - /** Interswitch Verve Card */ - Verve: 27 - } -); - /** * Extension factors relative to corresponding dimension of the full image. For example, * upFactor and downFactor define extensions relative to image height, e.g. @@ -288,17 +178,3 @@ export class ImageExtensionFactors { this.leftFactor = 0.0; } }; - -/** - * Represents data extracted from the Driver's license. - */ -export class DriverLicenseDetailedInfo { - constructor(nativeDriverLicenseDetailedInfo) { - /** Restrictions to driving privileges for the driver license owner. */ - this.restrictions = nativeDriverLicenseDetailedInfo.restrictions; - /** Additional privileges granted to the driver license owner. */ - this.endorsements = nativeDriverLicenseDetailedInfo.endorsements; - /** The type of vehicle the driver license owner has privilege to drive. */ - this.vehicleClass = nativeDriverLicenseDetailedInfo.vehicleClass; - } -} \ No newline at end of file diff --git a/README.md b/README.md index b4e58a4..4119a72 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,14 @@ This repository contains example wrapper for BlinkID native SDK for [Android](ht ## React Native Version -BlinkID React Native was built and tested with [React Native v0.59.10](https://github.com/facebook/react-native/releases/tag/v0.59.10) +BlinkID React Native was built and tested with [React Native v0.61.2](https://github.com/facebook/react-native/releases/tag/v0.61.2) ## Installation First generate an empty project if needed: ```shell -react-native init --version="0.59.10" NameOfYourProject +react-native init --version="0.61.2" NameOfYourProject ``` Add the **blinkid-react-native** module to your project: @@ -32,59 +32,35 @@ npm i --save blinkid-react-native ### iOS -[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like BlinkID in your projects. - -- If you wish to use version v1.4.0 or above, you need to install [Git Large File Storage](https://git-lfs.github.com) by running these comamnds: - -```shell -brew install git-lfs -git lfs install -``` - -- **Be sure to restart your console after installing Git LFS** - -Go to NameOfYourProject/ios folder and create Podfile - -```shell -pod init -``` - -#### If you use react-native link for linking - Link module with your project: ```shell react-native link blinkid-react-native ``` -##### Podfile +[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like BlinkID in your projects. -```ruby -platform :ios, '9.0' +- If you wish to use version v1.4.0 or above, you need to install [Git Large File Storage](https://git-lfs.github.com) by running these comamnds: -target 'TargetName' do - pod 'PPBlinkID', '~> 4.11.0' -end +```shell +brew install git-lfs +git lfs install ``` -#### If you don't use react-native link - -##### Podfile +- **Be sure to restart your console after installing Git LFS** -```ruby -platform :ios, '9.0' +#### Installing pods -target 'TargetName' do - pod 'blinkid-react-native', path: '../node_modules/blinkid-react-native' -end -``` +From [react-native 0.60](https://facebook.github.io/react-native/blog/2019/07/03/version-60#cocoapods-by-default) CocoaPods are now part of React Native's iOS project. -After setting Your `Podfile`, run in terminal +Go to `NameOfYourProject/ios` folder and install Pods ```shell pod install ``` +Our `blinkid-react-native` depends on latest `PPBlinkID` pod so it will be installed automatically. + **To run iOS application, open NameOfYourProject.xcworkspace, set Your team for every Target in General settings and add Privacy - Camera Usage Description key to Your info.plist file and press run** ### Android @@ -150,3 +126,14 @@ To use the module you call it in your index.android.js or index.ios.js file like **Can I create a custom UI overlay?** Yes you can, but you will have to implement it natively for android and ios, you can see native implementation guides [here(Android)](https://github.com/BlinkID/blinkid-android#recognizerRunnerView) and [here(ios)](https://github.com/BlinkID/blinkid-ios#recognizerRunnerViewController). + +## Known react-native problems: + +### Android build exception - missing `ReactSwipeRefreshLayout` + +**java.lang.NoClassDefFoundError: com.facebook.react.views.swiperefresh.ReactSwipeRefreshLayout** + +Add the following line to dependencies section in android/app/build.gradle: + +`implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0-alpha02'` + diff --git a/demoApp/index.js b/demoApp/index.js index 665f23b..d6a9909 100644 --- a/demoApp/index.js +++ b/demoApp/index.js @@ -18,9 +18,9 @@ import { const licenseKey = Platform.select({ // iOS license key for applicationID: org.reactjs.native.example.BlinkIDReactNative - ios: 'sRwAAAEtb3JnLnJlYWN0anMubmF0aXZlLmV4YW1wbGUuQmxpbmtJRFJlYWN0TmF0aXZlt67qu61k2vMma/KTqDBxGDOMjNFCNbVXKJiEBz6a6ra2+Ot3Ylsc3a1hho5UJ2Ag9kOkSJV6zfHcWGRzvjlSGYQ1JNPD2vKb3mneGP2eqUj3xsgDDFgFnKROimUIc1D1mwkhbrgNTRp5FaE2BvJ1uncDHI0z1NGVXMtL5VMF1maHsF72KLzpwp913NQZc+zCzRQmxVvkNAEKm5gZ5KOfdL898h/X+4NcY76nU8WmO92TAMgbonnoY2Hu7phD/HANuHE=', + ios: 'sRwAAAEtb3JnLnJlYWN0anMubmF0aXZlLmV4YW1wbGUuQmxpbmtJRFJlYWN0TmF0aXZlt67qu61k2vMma/ITruR3GBdCT6r/cmaFI+NZgAUqVDHfyAwktjg12ChCnWOhOftJl+pLYeePQbA7whrJ5YweKxQBcor+NVH3T3PNgZDjlibGecAWKK/CMANH5t9UHbSDmqG6TnvZaH+En2fxXNaIrAyAu4GZquwN2itDRox8smHKOcTCzAH2AyWYSHf7jND8XHKnwogrOWg01hIno3l8zioeM+OY0feG3zwotirfBoObNFpVauI4QI8R7zZEedB+RfENS3XmLLQ=', // android license key for applicationID: com.blinkidreactnative - android: 'sRwAAAAWY29tLmJsaW5raWRyZWFjdG5hdGl2ZYouOuuUS2CbdVuol2igTqMNWkkWe+DqRqlKYf/Vq6AyLLJlrc1AWymnKPrtdYu/b4Plglo5kfBDcUJRe/WAHl8DbBrgoX8bd1/KaAK23Z7oMFvZBvIHcW6HOFwmvssNTizfCjuxpTWF/l3Q6aippvQlU6lmZl9bSob9dJ3W2fIwcFOb9zXElPs+nrWvvDigW8AOQjZRvjQJtM7SC5OJcxcKqb1/4fia29uvC2gKOTZV7alEo0PDylNGP9iEMh4ehiTR' + android: 'sRwAAAAWY29tLmJsaW5raWRyZWFjdG5hdGl2ZYouOuuUS2CbdVuoF260SqNbRtO4gCl9dXUxagi5mZOoB/y0Jh0+elvVE6Mhd+ZP4XjS/YCFwlxnTlcZiYCDQtS43nGg5uQhWN6IPymUOvjGr5h67rFL1aobRFp4kOCp/TjHZ9H9SCfqDaS+LvvHjU0Xi8BFaThc+QqZJgXCgRCqKD4l7Atd6ETIzUeI+wY+d8HDf0FcWmJyJbyDREKj1RrY41do/qKkCbe2FtqOKPb8K332T1ba6R16CSctf5vwn1rTcs7LfnXp' }) var renderIf = function(condition, content) { @@ -48,31 +48,23 @@ export default class BlinkIDReactNativeApp extends Component { async scan() { try { - // to scan EU driver's licenses, use EudlRecognizer - var eudlRecognizer = new BlinkIDReactNative.EudlRecognizer(); - eudlRecognizer.returnFaceImage = true; - eudlRecognizer.returnFullDocumentImage = true; - - // if you also want to obtain camera frame on which specific recognizer has - // finished its recognition, wrap it with SuccessFrameGrabberRecognizer and use - // the wrapper instead of original for building RecognizerCollection - var eudlSuccessFrameGrabber = new BlinkIDReactNative.SuccessFrameGrabberRecognizer(eudlRecognizer); - - // to scan US Driver's licenses, use UsdlRecognizer - var usdlRecognizer = new BlinkIDReactNative.UsdlRecognizer(); - - var usdlSuccessFrameGrabber = new BlinkIDReactNative.SuccessFrameGrabberRecognizer(usdlRecognizer); // to scan any machine readable travel document (passports, visa's and IDs with // machine readable zone), use MrtdRecognizer - var mrtdRecognizer = new BlinkIDReactNative.MrtdRecognizer(); - mrtdRecognizer.returnFullDocumentImage = true; + // var mrtdRecognizer = new BlinkIDReactNative.MrtdRecognizer(); + // mrtdRecognizer.returnFullDocumentImage = true; - var mrtdSuccessFrameGrabber = new BlinkIDReactNative.SuccessFrameGrabberRecognizer(mrtdRecognizer); + // var mrtdSuccessFrameGrabber = new BlinkIDReactNative.SuccessFrameGrabberRecognizer(mrtdRecognizer); + + // BlinkIDRecognizer automatically classifies different document types and scans the data from + // the supported document + var blinkIdRecognizer = new BlinkIDReactNative.BlinkIdRecognizer(); + blinkIdRecognizer.returnFullDocumentImage = true; + blinkIdRecognizer.returnFaceImage = true; const scanningResults = await BlinkIDReactNative.BlinkID.scanWithCamera( - new BlinkIDReactNative.DocumentOverlaySettings(), - new BlinkIDReactNative.RecognizerCollection([eudlSuccessFrameGrabber, usdlSuccessFrameGrabber, mrtdSuccessFrameGrabber]), + new BlinkIDReactNative.BlinkIdOverlaySettings(), + new BlinkIDReactNative.RecognizerCollection([blinkIdRecognizer/*, mrtdSuccessFrameGrabber*/]), licenseKey ); @@ -127,29 +119,48 @@ export default class BlinkIDReactNativeApp extends Component { successFrame: '' }; - if (result instanceof BlinkIDReactNative.UsdlRecognizerResult) { - localState.results += /** Personal information */ - "First name: " + result.firstName + fieldDelim + - "Last name: " + result.lastName + fieldDelim + - "Full name: " + result.fullName + fieldDelim + - "Address: " + result.address + fieldDelim + - "Document number: " + result.documentNumber + fieldDelim + - "Sex: " + result.sex + fieldDelim + - "Restrictions: " + result.restrictions + fieldDelim + - "Endorsments: " + result.endorsements + fieldDelim + - "Vehicle class: " + result.vehicleClass + fieldDelim + - "Date of birth: " + - result.dateOfBirth.day + "." + - result.dateOfBirth.month + "." + - result.dateOfBirth.year + "." + fieldDelim + - "Date of issue: " + - result.dateOfIssue.day + "." + - result.dateOfIssue.month + "." + - result.dateOfIssue.year + "." + fieldDelim + - "Date of expiry: " + - result.dateOfExpiry.day + "." + - result.dateOfExpiry.month + "." + - result.dateOfExpiry.year + "." + fieldDelim; + if (result instanceof BlinkIDReactNative.BlinkIdRecognizerResult) { + let blinkIdResult = result; + let resultString = + "First name: " + blinkIdResult.firstName + fieldDelim + + "Last name: " + blinkIdResult.lastName + fieldDelim + + "Address: " + blinkIdResult.address + fieldDelim + + "Document number: " + blinkIdResult.documentNumber + fieldDelim + + "Sex: " + blinkIdResult.sex + fieldDelim; + if (blinkIdResult.dateOfBirth) { + resultString += + "Date of birth: " + + blinkIdResult.dateOfBirth.day + "." + + blinkIdResult.dateOfBirth.month + "." + + blinkIdResult.dateOfBirth.year + "." + fieldDelim; + } + if (blinkIdResult.dateOfIssue) { + resultString += + "Date of issue: " + + blinkIdResult.dateOfIssue.day + "." + + blinkIdResult.dateOfIssue.month + "." + + blinkIdResult.dateOfIssue.year + "." + fieldDelim; + } + if (blinkIdResult.dateOfExpiry) { + resultString += + "Date of expiry: " + + blinkIdResult.dateOfExpiry.day + "." + + blinkIdResult.dateOfExpiry.month + "." + + blinkIdResult.dateOfExpiry.year + "." + fieldDelim; + } + // there are other fields to extract + localState.results += resultString; + + // Document image is returned as Base64 encoded JPEG + if (blinkIdResult.fullDocumentImage) { + localState.showImageDocument = true; + localState.resultImageDocument = 'data:image/jpg;base64,' + blinkIdResult.fullDocumentImage; + } + // Face image is returned as Base64 encoded JPEG + if (blinkIdResult.faceImage) { + localState.showImageFace = true; + localState.resultImageFace = 'data:image/jpg;base64,' + blinkIdResult.faceImage; + } } else if (result instanceof BlinkIDReactNative.MrtdRecognizerResult) { let mrtdResult = result; localState.results += @@ -167,25 +178,6 @@ export default class BlinkIDReactNativeApp extends Component { localState.showImageDocument = true; localState.resultImageDocument = 'data:image/jpg;base64,' + mrtdResult.fullDocumentImage; } - } else if (result instanceof BlinkIDReactNative.EudlRecognizerResult) { - localState.results += - "First name: " + result.firstName + fieldDelim + - "Last name: " + result.lastName + fieldDelim + - "Address: " + result.address + fieldDelim + - "Personal number: " + result.personalNumber + fieldDelim + - "Driver number: " + result.driverNumber + fieldDelim; - - // Document image is returned as Base64 encoded JPEG - if (result.fullDocumentImage) { - localState.showImageDocument = true; - localState.resultImageDocument = 'data:image/jpg;base64,' + result.fullDocumentImage; - } - - // Face image is returned as Base64 encoded JPEG - if (result.faceImage) { - localState.showImageFace = true; - localState.resultImageFace = 'data:image/jpg;base64,' + result.faceImage; - } } else if (result instanceof BlinkIDReactNative.SuccessFrameGrabberRecognizerResult) { // first handle slave result, and then add success frame image localState = this.handleResult(result.slaveRecognizerResult); diff --git a/initReactNativeDemoApp.sh b/initReactNativeDemoApp.sh index f9ff50e..2f8e7b7 100755 --- a/initReactNativeDemoApp.sh +++ b/initReactNativeDemoApp.sh @@ -6,7 +6,8 @@ blink_id_plugin_path=`pwd`/BlinkID rm -rf BlinkIDReactNative # create a sample application -react-native init --version="0.59.10" BlinkIDReactNative +# https://github.com/react-native-community/cli#using-npx-recommended +npx react-native init --version="0.61.2" BlinkIDReactNative # enter into demo project folder pushd BlinkIDReactNative @@ -14,52 +15,31 @@ pushd BlinkIDReactNative if true; then # download npm package echo "Downloading blinkid-react-native module" - npm i --save blinkid-react-native - - npm install + npm install --save blinkid-react-native else echo "Using blinkid-react-native from this repo instead from NPM" # use directly source code from this repo instead of npm package # from RN 0.57 symlink does not work any more npm pack $blink_id_plugin_path - npm i --save blinkid-react-native-4.11.2.tgz - npm install + npm install --save blinkid-react-native-5.0.0.tgz #pushd node_modules #ln -s $blink_id_plugin_path blinkid-react-native #popd fi -# link package with project -echo "Linking blinkid-react-native module with project" -react-native link blinkid-react-native +# Auto-linking is done in 0.6 versions # enter into android project folder pushd android -# patch the build.gradle -perl -i~ -pe "s/maven \{/maven \{ url 'https:\\/\\/maven.microblink.com' }\n maven {/" build.gradle +# patch the build.gradle to add "maven { url https://maven.microblink.com }"" repository +perl -i~ -pe "BEGIN{$/ = undef;} s/maven \{/maven \{ url 'https:\\/\\/maven.microblink.com' }\n maven {/" build.gradle popd # enter into ios project folder pushd ios -# initialize Podfile -echo "Initializing and installing Podfile" -pod init - -# remove Podfile -rm -f Podfile - -# replace Podfile with new Podfile -cat > Podfile << EOF -platform :ios, '8.0' - -target 'BlinkIDReactNative' do - pod 'PPBlinkID', '~> 4.11.0' -end -EOF - # install pod pod install