Label Field Location
Defined in package com.scandit.datacapture.label
- LabelFieldLocation
class LabelFieldLocationAdded in version 8.6.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(left, top, right, bottom)
fun LabelFieldLocation.of(left: Float, top: Float, right: Float, bottom: Float): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the provided coordinates.
- of(rect)
fun LabelFieldLocation.of(rect: Rect): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the provided location.
- topLeft()
fun LabelFieldLocation.topLeft(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the top-left corner.
- topRight()
fun LabelFieldLocation.topRight(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the top-right corner.
- bottomLeft()
fun LabelFieldLocation.bottomLeft(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the bottom-left corner.
- bottomRight()
fun LabelFieldLocation.bottomRight(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the bottom-right corner.
- top()
fun LabelFieldLocation.top(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the top half.
- right()
fun LabelFieldLocation.right(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the right half.
- bottom()
fun LabelFieldLocation.bottom(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the bottom half.
- left()
fun LabelFieldLocation.left(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the left half.
- center()
fun LabelFieldLocation.center(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the center.
- wholeLabel()
fun LabelFieldLocation.wholeLabel(): LabelFieldLocation
Added in version 8.6.0
Constructs a new Label Field Location with the predefined location type corresponding to the whole label.