A recognized data field. Provides field contents, location and data scheme information.
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 TextLine 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 TextLine[] Components;
}
Name |
Type |
Description |
Components |
TextLine[] |
The array of text fragments representing field components, that is, the fragments found on the image which make up the field. |
Id |
String |
The internal field identifier that you specified in the ISchemeBuilder.addField call. |
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.
|
Text |
String |
The text of the field. |