ID Capture Settings
Defined under the namespace Scandit.Datacapture.Id
- IdCaptureSettings
class IdCaptureSettings
Added in version 6.13.0
Settings to configure an IdCapture instance.
- constructor()
constructor()
Added in version 7.0.0
Creates a new default settings. By default the scannerType is an instance of SingleSideScanner that does not scan anything, and acceptedDocuments is empty.
- getShouldPassImageTypeToResult(type)
getShouldPassImageTypeToResult(type: IdImageType): boolean
Added in version 6.13.0
Gets whether an IdCapture created with these settings should extract an image (specified by the given type) from recognized documents and return it as part of CapturedId. Note that the image may still not be returned, for example, if it’s not present in a document or if it’s not recognized. Default is false.
- setShouldPassImageTypeToResult(type, shouldPass)
setShouldPassImageTypeToResult(type: IdImageType, shouldPass: boolean):
void
Added in version 6.13.0
Sets whether an IdCapture created with these settings should extract an image (specified by the given type) from recognized documents and return it as part of CapturedId. Note that the image may still not be returned, for example, if it’s not present in a document or if it’s not recognized. Default is false.
- setProperty(name, value)
setProperty(name: string, value:
any
):void
Added in version 6.13.0
Sets a property to the provided value. Use this method to set properties that are not yet part of a stable API. Properties set through this method may change in a future release.
- getProperty(name)
getProperty(name: string):
any
Added in version 6.13.0
Retrieves the value of a previously set property. In case the property does not exist, null is returned. Use this method to get properties that are not yet part of a stable API. These properties may change in a future release.
- anonymizationMode
anonymizationMode: IdAnonymizationMode
Added in version 6.17.0
This setting allows to remove protected data from images and result fields of certain document types. Enabling anonymization helps to remain compliant with local legal requirements which restrict the collection of some data. Examples of affected fields are the document number on German IDs or the personal ID number on Dutch driver’s licenses. By default set to IdAnonymizationMode.FieldsOnly.
- scannerType
scannerType: IdCaptureScanner
Added in version 7.0.0
Defines which zones and sides of an identity document are scanned.
- acceptedDocuments
acceptedDocuments: IdCaptureDocument[]
Added in version 7.0.0
The identification documents that IdCapture will scan.
- rejectedDocuments
rejectedDocuments: IdCaptureDocument[]
Added in version 7.0.0
The identification documents that will be rejected by IdCapture
- captureTrigger
captureTrigger: IdCaptureTrigger
Added in version 6.25.0
Controls the capturing behavior of IdCapture. See IdCaptureTrigger for more details.
Note
This feature is still in beta and may change in the future versions of Scandit Data Capture SDK.