Captured ID

Defined in library scandit_datacapture_id

CapturedId
class CapturedId

Added in version 6.11.0

A class that represents a result of a document scan. This class contains the captured information that is commonly present in all the documents, like the name or the date of birth of the holder.

The class can be cast to a concrete implementation using capturedResultType.

firstName
String? get firstName

Added in version 6.11.0

The first name of the document holder. Separated by spaces if more than one name is present. Characters can be all uppercase for document types which don’t capitalize names (for example names encoded in ICAO Machine Readable Zones).

lastName
String? get lastName

Added in version 6.11.0

The last name of the document holder. Separated by spaces if more than one name is present. Characters can be all uppercase for document types which don’t capitalize names (for example names encoded in ICAO Machine Readable Zones).

fullName
String get fullName

Added in version 6.11.0

The full name of the document holder. Characters can be all uppercase for document types which don’t capitalize names (for example names encoded in ICAO Machine Readable Zones).

sex
String? get sex

Added in version 6.11.0

The sex of the document holder.

dateOfBirth
DateResult? get dateOfBirth

Added in version 6.11.0

The date of birth of the document holder. If the document doesn’t provide two first digits of the year then the date of birth is always set to be earlier than or equal to the scan date. For example if the year of scanning is 2021 and the document returns that the year of birth is 14 then the returned year is set to 2014. However if the document returns that the year of birth is 24 then the returned year is set to 1924.

nationality
String? get nationality

Added in version 6.11.0

The nationality of the document holder represented by a three-letter code (Alpha-3 codes specified in ISO 3166-1).

address
String? get address

Added in version 6.11.0

The address of the document holder.

capturedResultType
CapturedResultType get capturedResultType

Added in version 6.11.0

The captured result type. Consult the documentation for more information about it.

capturedResultTypes
Set<CapturedResultType> get capturedResultTypes

Added in version 6.12.0

The captured result types. Guaranteed to contain at least one element. Consult the documentation for more information about it.

documentType
DocumentType get documentType

Added in version 6.11.0

The document type. Consult the documentation for more information about it.

issuingCountryIso
String? get issuingCountryIso

Added in version 6.11.0

The ISO (Alpha-3 code) abbreviation of the issuing country of the document.

issuingCountry
String? get issuingCountry

Added in version 6.11.0

A human readable text identifying the country that issues the document.

documentNumber
String? get documentNumber

Added in version 6.11.0

The document number.

dateOfExpiry
DateResult? get dateOfExpiry

Added in version 6.11.0

The date of expiry of the document.

dateOfIssue
DateResult? get dateOfIssue

Added in version 6.11.0

The date of issue of the document. Please note that some documents may specify the exact date of issue, while other the month and the year only.

aamvaBarcode
AamvaBarcodeResult? get aamvaBarcode

Added in version 6.11.0

The additional information extracted from a barcode on a document that follows the American Association of Motor Vehicle Administrators (AAMVA) specification. This property is guaranteed to be non-null when capturedResultType is CapturedResultType.aamvaBarcodeResult, and is null otherwise.

colombiaDlBarcode
ColombiaDlBarcodeResult? get colombiaDlBarcode

Added in version 6.15.0

The additional information extracted from a barcode on a Colombia Driver’s License (Licencia de Conducción). This property is guaranteed to be non-null when capturedResultTypes is CapturedResultType.colombiaDlBarcodeResult, and is null otherwise.

colombiaIdBarcode
ColombiaIdBarcodeResult? get colombiaIdBarcode

Added in version 6.11.0

The additional information extracted from a barcode on a Colombia ID (Cédula de Ciudadanía). This property is guaranteed to be non-null when capturedResultType is CapturedResultType.colombiaIdBarcodeResult, and is null otherwise.

argentinaIdBarcode
ArgentinaIdBarcodeResult? get argentinaIdBarcode

Added in version 6.11.0

The additional information extracted from a barcode on a Argentina ID (Documento Nacional de Identidad). This property is guaranteed to be non-null when capturedResultType is CapturedResultType.argentinaIdBarcodeResult, and is null otherwise.

southAfricaDlBarcode
SouthAfricaDlBarcodeResult? get southAfricaDlBarcode

Added in version 6.11.0

The additional information extracted from a barcode on a South Africa Driver’s License. This property is guaranteed to be non-null when capturedResultType is CapturedResultType.southAfricaDlBarcodeResult, and is null otherwise.

southAfricaIdBarcode
SouthAfricaIdBarcodeResult? get southAfricaIdBarcode

Added in version 6.11.0

The additional information extracted from a barcode on a South Africa identity card (Smart ID Card). This property is guaranteed to be non-null when capturedResultType is CapturedResultType.southAfricaIdBarcodeResult, and is null otherwise.

mrz
MrzResult? get mrz

Added in version 6.11.0

The additional information extracted from the Machine Readable Zone (MRZ) of a Machine Readable Travel Document (MRTD). This property is guaranteed to be non-null when capturedResultType is CapturedResultType.mrzResult, and is null otherwise.

usUniformedServicesBarcode
UsUniformedServicesBarcodeResult? get usUniformedServicesBarcode

Added in version 6.11.0

The additional information extracted from a barcode on a United States Uniformed Services Identification card. This property is guaranteed to be non-null when capturedResultType is CapturedResultType.usUniformedServicesBarcodeResult, and is null otherwise.

viz
VizResult? get viz

Added in version 6.11.0

The additional information extracted from a documents or its part intended to be read by humans (for example Visual Inspection Zone (VIZ) of a Machine-Readable Travel Document (MRTD)). This property is guaranteed to be non-null when capturedResultType is CapturedResultType.vizResult, and is null otherwise.

getImageForType(imageType)
Image? getImageForType(IdImageType imageType)

Added in version 6.11.0

Gets a bitmap for an image type.