DataField class

A recognized data field. Provides field contents, location and included data fields, if applicable.

Note that a field may have several components — for example, it can contain two or more words. Component details are available from the Components array. Each element of this array is a DataField object with its own Text property (for example, a word) and Quadrangle property (the bounding quadrangle of this component). The field's Text property contains its entire text, and the field's Quadrangle property represents the whole area of a field: this quadrangle encloses the quadrangles of all components.

The Components array always contains at least one element. When a field contains only one component, the Text and Quadrangle properties of the field and this component are identical.

final class DataField {
    public final String Id;
    public final String Name;
    public final String Text;
    public final Point[] Quadrangle;
    public final CharInfo[] CharInfo;
    public final DataField[] Components;
    public final TextCapture.TextLine[] TextLines;
}

Properties

Name Type Description
Components DataField[] An array of data fields, representing one complex field found in the image, with all additional information.
Id String The internal field identifier. Can be one of the predefined fields or the custom field identifier that you specified in the ISchemeBuilder.addField call. May be null.
Name String The human-readable name of the field. If you are using a custom data capture profile, this is the name you set with the IFieldBuilder.setName method.
Quadrangle Point[]

The four vertex points of the bounding quadrangle. The vertices are indexed clockwise starting from the bottom left.

 Note: Before recognition, the service rotates the image obtained from camera in order to bring text orientation to normal (horizontal). The vertex coordinates are specified for this rotated image and may require coordinate conversion if you display the quadrangle on the video frame.

Text String The text of the field.
TextLines TextCapture.TextLine[] An array of recognized text lines; the location and additional information are also available.

02.03.2022 12:59:15

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.