ID Capture

Defined in namespace Scandit.DataCapture.ID.Capture

IdCaptureErrorCode

Added in version 6.16.0

Undefined

Added in version 6.16.0

Undefined error.

InitializationError

Added in version 6.16.0

IdCapture Initialization error.

ParsingError

Added in version 6.16.0

Parsing document fields failed.

IdCapture
class IdCapture : IDataCaptureMode

Added in version 6.16.0

Create()
static IdCapture Create(DataCaptureContext context, IdCaptureSettings settings)

Added in version 6.16.0

Constructs a new IdCapture with the provided settings. When dataCaptureContext is not null, the mode is automatically added to it.

Create()
static IdCapture Create(IdCaptureSettings settings)

Added in version 6.16.0

Constructs a new IdCapture with the provided settings. Calling this method is equivalent to calling :meth:ForDataCaptureContext with null as the context argument.

Enabled
bool Enabled { get;set; }

Added in version 6.16.0

Implemented from IDataCaptureMode. See IDataCaptureMode.Enabled.

AddListener()
void AddListener(IIdCaptureListener listener)

Added in version 6.16.0

Adds the listener to this id capture instance.

In case the same listener is already observing this instance, calling this method will not add the listener again.

RemoveListener()
void RemoveListener(IIdCaptureListener listener)

Added in version 6.16.0

Removes listener from this id capture instance.

In case the listener is not currently observing this instance, calling this method has no effect.

Context
DataCaptureContext Context { get; }

Added in version 6.16.0

Implemented from IDataCaptureMode. See IDataCaptureMode.Context.

Feedback
IdCaptureFeedback Feedback { get;set; }

Added in version 6.20.0

Instance of IdCaptureFeedback, determines what feedback (vibration, sound) should be emitted during the ID Capture process.

RecommendedCameraSettings
static CameraSettings RecommendedCameraSettings { get; }

Added in version 6.16.0

Gets the recommended camera settings to use with this mode.

Reset()
void Reset()

Added in version 6.16.0

Resets the ongoing scanning process. This method can be used to abandon scanning the back side of a document.

ApplySettings()
void ApplySettings(IdCaptureSettings settings)

Added in version 6.20.0

Asynchronously Applies the new settings to the ID Capture. If the scanner is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the scanner is currently not running, the task will complete as soon as the settings have been stored and won’t wait until the next frame is going to be processed.

IdCaptured
event EventHandler<IdCaptureEventArgs> IdCaptured

Added in version 6.16.0

Occurs when a document is recognized and parsed. In this event IdCaptureSession.NewlyCapturedId is guaranteed to be non-null.

IdLocalized
event EventHandler<IdCaptureEventArgs> IdLocalized

Added in version 6.16.0

Occurs when a personal identification document or its part is localized within a frame. A document or its part is considered localized when it’s detected in a frame, but its data is not yet extracted. In this event IdCaptureSession.NewlyLocalizedOnlyId is guaranteed to be non-null.

IdRejected
event EventHandler<IdCaptureEventArgs> IdRejected

Added in version 6.16.0

Occurs when a personal identification document or its part is recognized in a frame, but rejected. A document is rejected if (a) it’s not enabled in the settings (see IdCaptureSettings.SupportedDocuments), (b) it’s a barcode of a correct symbology or a Machine Readable Zone (MRZ), but the data is encoded in an unexpected/incorrect format. In this event IdCaptureSession.NewlyRejectedId is guaranteed to be non-null.

IdCaptureTimedOut
event EventHandler<IdCaptureEventArgs> IdCaptureTimedOut

Added in version 6.16.0

Occurs when a document is localized, but could not be captured within a period of time.

ErrorEncountered
event EventHandler<IdCaptureErrorEventArgs> ErrorEncountered

Added in version 6.16.0

Occurs when an error occurs during the document scanning process. For possible error codes see IdCaptureErrorCode

Deprecated since version 6.18.0: This event is no longer executed by the IdCapture. See IdRejected and IdCaptureTimedOut for scenarios previously reported by this event.