Label Field Location

Defined in package com.scandit.datacapture.label.capture

LabelFieldLocation
class LabelFieldLocation

Added in version 6.21.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 @NonNull LabelFieldLocation of(@NonNull RectF location)

Added in version 6.21.0

Construct a new Label Field Location with the provided location.

of(left, top, right, bottom)
static @NonNull LabelFieldLocation of(float left,
        float top,
        float right,
        float bottom)

Added in version 6.21.0

Construct a new Label Field Location with the provided coordinates.

of(location)
static @NonNull LabelFieldLocation of(@NonNull Rect location)

Added in version 6.21.0

Construct a new Label Field Location with the provided location.

topLeft()
static @NonNull LabelFieldLocation topLeft()

Added in version 6.21.0

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

topRight()
static @NonNull LabelFieldLocation topRight()

Added in version 6.21.0

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

bottomLeft()
static @NonNull LabelFieldLocation bottomLeft()

Added in version 6.21.0

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

bottomRight()
static @NonNull LabelFieldLocation bottomRight()

Added in version 6.21.0

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

top()
static @NonNull LabelFieldLocation top()

Added in version 6.21.0

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

right()
static @NonNull LabelFieldLocation right()

Added in version 6.21.0

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

bottom()
static @NonNull LabelFieldLocation bottom()

Added in version 6.21.0

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

left()
static @NonNull LabelFieldLocation left()

Added in version 6.21.0

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

center()
static @NonNull LabelFieldLocation center()

Added in version 6.21.0

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

wholeLabel()
static @NonNull LabelFieldLocation wholeLabel()

Added in version 6.21.0

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