Label Field Location

Defined under the namespace Scandit.Datacapture.Label

LabelFieldLocation
class LabelFieldLocation

Added in version 7.2.0

Defines the expected location of a field within a label. This class allows you to specify either exact coordinates or predefined relative positions where a field should be searched for during label capture.

Field locations help constrain the search area and improve recognition accuracy by focusing the capture engine on specific regions of the label.

of(location)
static of(location: Rect): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the provided location.

topLeft()
static topLeft(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the top-left corner.

topRight()
static topRight(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the top-right corner.

bottomLeft()
static bottomLeft(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the bottom-left corner.

bottomRight()
static bottomRight(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the bottom-right corner.

top()
static top(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the top half.

right()
static right(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the right half.

bottom()
static bottom(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the bottom half.

left()
static left(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the left half.

center()
static center(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the center.

wholeLabel()
static wholeLabel(): Promise<LabelFieldLocation>

Added in version 7.2.0

Construct a new Label Field Location with the predefined location type corresponding to the whole label.