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.