ID Capture Session

Defined in library scandit_datacapture_id

IdCaptureSession
class IdCaptureSession

Added in version 6.11.0

The ID capture session is responsible for keeping the CapturedId data.

Important

The capture session should only be accessed from within didCaptureId() to which it is provided as an argument. It is not safe to be accessed from anywhere else since it may be concurrently modified. References to the individual captured IDs can be kept and processed later as they are not further modified.

newlyCapturedId
CapturedId? get newlyCapturedId

Added in version 6.11.0

Parsed data from a document recognized in the last frame, if any.

newlyLocalizedOnlyId
LocalizedOnlyId? get newlyLocalizedOnlyId

Added in version 6.11.0

An information about a document or its part localized in the last frame, if any. A document or its part is considered localized when it’s detected in a frame, but its data is not yet extracted.

newlyRejectedId
RejectedId? get newlyRejectedId

Added in version 6.11.0

An information about a document or its part 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.

frameSequenceId
int get frameSequenceId

Added in version 6.11.0

The identifier of the current frame sequence.

Important

As long as there is no interruptions of frames coming from the camera, the frameSequenceId will stay the same.