Label Field Location
Defined in library scandit_datacapture_label
- LabelFieldLocation
class LabelFieldLocationAdded 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.
- LabelFieldLocation.forCoordinates(left, top, right, bottom)
factory LabelFieldLocation.forCoordinates( double left, double top, double right, double bottom)
Added in version 7.2.0
Construct a new Label Field Location with the provided coordinates.
- LabelFieldLocation.forRect(rect)
factory LabelFieldLocation.forRect(Rect rect)
Added in version 7.2.0
Construct a new Label Field Location with the provided location.
- LabelFieldLocation.topLeft()
factory LabelFieldLocation.topLeft()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the top-left corner.
- LabelFieldLocation.topRight()
factory LabelFieldLocation.topRight()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the top-right corner.
- LabelFieldLocation.bottomLeft()
factory LabelFieldLocation.bottomLeft()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the bottom-left corner.
- LabelFieldLocation.bottomRight()
factory LabelFieldLocation.bottomRight()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the bottom-right corner.
- LabelFieldLocation.top()
factory LabelFieldLocation.top()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the top half.
- LabelFieldLocation.right()
factory LabelFieldLocation.right()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the right half.
- LabelFieldLocation.bottom()
factory LabelFieldLocation.bottom()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the bottom half.
- LabelFieldLocation.left()
factory LabelFieldLocation.left()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the left half.
- LabelFieldLocation.center()
factory LabelFieldLocation.center()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the center.
- LabelFieldLocation.wholeLabel()
factory LabelFieldLocation.wholeLabel()Added in version 7.2.0
Construct a new Label Field Location with the predefined location type corresponding to the whole label.