Label Field Location

Defined under the namespace Scandit.Datacapture.Label

LabelFieldLocation
class LabelFieldLocation

Added in version 8.0.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.

for(left, top, right, bottom)
static for(left: number,
        top: number,
        right: number,
        bottom: number): LabelFieldLocation

Added in version 8.0.0

Construct a new Label Field Location with the provided coordinates.

forRect(rect)
static forRect(rect: Rect): LabelFieldLocation

Added in version 8.0.0

Construct a new Label Field Location with the provided location.

topLeft()
static topLeft(): LabelFieldLocation

Added in version 8.0.0

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

topRight()
static topRight(): LabelFieldLocation

Added in version 8.0.0

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

bottomLeft()
static bottomLeft(): LabelFieldLocation

Added in version 8.0.0

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

bottomRight()
static bottomRight(): LabelFieldLocation

Added in version 8.0.0

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

top()
static top(): LabelFieldLocation

Added in version 8.0.0

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

right()
static right(): LabelFieldLocation

Added in version 8.0.0

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

bottom()
static bottom(): LabelFieldLocation

Added in version 8.0.0

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

left()
static left(): LabelFieldLocation

Added in version 8.0.0

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

center()
static center(): LabelFieldLocation

Added in version 8.0.0

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

wholeLabel()
static wholeLabel(): LabelFieldLocation

Added in version 8.0.0

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