Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Xamarin.Android and Data Capture SDK Documentation for Xamarin.iOS

TrackedBarcode Interface Reference

Properties

Quadrilateral PredictedLocation [get]
 
double DeltaTimeForPrediction [get]
 
bool ShouldAnimateFromPreviousToNextState [get]
 

Detailed Description

Represents a recognized/localized barcode/2D code that is being tracked over multiple frames.

The TrackedBarcode class represents a barcode, or 2D code that has been localized or recognized by the barcode recognition engine and is being tracked over multiple frames.

Since
5.4.0

Property Documentation

Quadrilateral PredictedLocation
get

The predicted location of the tracked code.

The location where the tracked code is predicted to be in DeltaTimeForPrediction

Returns
The predicted location of the tracked code.
See also
DeltaTimeForPrediction
double DeltaTimeForPrediction
get

The delta time for the predicted location of the code in milliseconds.

The time (in seconds) it will take the tracked code to move to the predicted location (SBSTrackedCode::predictedLocation). This value can be used to animate the predicted change of location of the tracked code.

Returns
The delta time for the predicted location of the code in milliseconds.
See also
PredictedLocation
bool ShouldAnimateFromPreviousToNextState
get

Whether the change in location should be animated.

As there are state transitions that do not guarantee a stable ordering of the location's corners you should always check this function before animating a location change.

Returns
True if the change in location should be animated.