Tracked Object

Defined in package com.scandit.datacapture.barcode.batch.data

TrackedObject
class TrackedObject

Added in version 7.3.0

A barcode or a cluster tracked over the course of multiple frames.

location
@NonNull Quadrilateral getLocation()

Added in version 7.3.0

The location of the code. The coordinates are in image-space, meaning that the coordinates correspond to actual pixels in the image. For display, the coordinates need first to be converted into screen-space using the data capture view.

The meaning of the values of Quadrilateral.topLeft is such that the top left point corresponds to the top left corner of the barcode, independent of how the code is oriented in the image. Same for the other corners.

identifier
int getIdentifier()

Added in version 7.3.0

The unique identifier for the tracked object. The identifier is unique for each object. The same identifier may be reused once the object is lost for another object.

data
@Nullable String getData()

Added in version 7.3.0

The data associated with this object.

toJson()
@NonNull String toJson()

Added in version 7.3.0

Returns the JSON representation of the tracked object.