Tracked Barcode#
Defined under the namespace Scandit.Datacapture.Barcode.Tracking
-
TrackedBarcode
# class TrackedBarcode
Added in version 6.5.0
A barcode tracked over the course of multiple frames.
The state of a TrackedBarcode can be observed using a BarcodeTrackingListener.
The BarcodeTrackingListener.didUpdateSession() callback will be invoked every time a new frame is processed and at least one of the following events took place:
A track is established.
A track location has changed.
A track is lost and can no longer be tracked.
-
location
# get location(): Quadrilateral
Added in version 6.5.0
The current position of the tracked barcode.
Note
Using this property requires the MatrixScan AR add-on. In case the feature is not licensed, a quadrilateral with all corners set to 0, 0 is returned.
-
shouldAnimateFromPreviousToNextState
# get shouldAnimateFromPreviousToNextState(): boolean
Added in version 6.5.0
True if it’s safe to animate from the current state to the next. As there are state transitions that do not guarantee a stable ordering of the location’s corners you should always check this property before animating a location change.