brain-circuitProcess Result Fields

Reference documentation on processing result fields of the response using the Mindee client libraries.

circle-info

This is reference documentation.

Code samples shown are only examples, and will not work as-is. You'll need to copy-paste and modify according to your requirements.

Looking for a quick TL;DR, or full code samples?

  • Take a look at the Quick Start page.

  • Use the search bar above to ask our documentation AI to write code samples for you.

Requirements

You'll need to have a response object as described in the Process the Response section.

Accessing Result Fields

Fields are completely dynamic and depend on your model's Data Schema.

In the client library, you'll have access to the various fields as a key-value mapping type (Python's dict, Java's HashMap, etc).

Accessing a field is done via its name in the Data Schema.

Each field will be one of the following types:

  • A single value, SimpleField class.

  • A nested object (sub-fields), ObjectField class.

  • A list or array of fields, ListField class.

SimpleField - Single-Value Field

Basic field type having the value attribute. See the value section below.

In addition, the Simplefield class has confidence and locations attributes.

Using the response deserialized object from either the polling response or a webhook payload.

value

The extracted data value. Possible types: string, number (integer or floating-point), boolean. All types can be null.

On the platform, you can specify date and classification types. These are returned as strings.

For statically-typed languages (C#, Java), the client library will always return a nullable double for number values.

Using the response deserialized object from either the polling response or a webhook payload.

ObjectField - Nested Object Field

Field having a fields attribute which is a hash table (Python's dict, Java's HashMap, etc) of sub-fields. See the fields section below.

In addition, the ObjectField class has confidence and locations attributes.

Using the response deserialized object from either the polling response or a webhook payload.

fields

The sub-fields as a key-value mapping type (Python dict, Java HashMap, etc).

Accessing a sub-field is done via its name in the Data Schema.

Each sub-field will be a Process Result Fields.

Using the response deserialized object from either the polling response or a webhook payload.

ListField - List of Fields

Field having an items attribute which is a list of fields. See the items section below.

In addition, the ListField class has a confidence attribute.

Using the response deserialized object from either the polling response or a webhook payload.

items

List of fields as a variable-length array type (Python list, Java List, etc).

Each item in the list will be one of:

There will not be a mix of both types in the same list.

List of SimpleField

Using the response deserialized object from either the polling response or a webhook payload.

List of ObjectField

Using the response deserialized object from either the polling response or a webhook payload.

Optional Field Attributes

These field attributes are only filled when their respective features are activated.

The attributes are always present even when not activated.

confidence

The confidence level of the extracted value.

The data are only filled if the Confidence Score and Accuracy Boost feature is activated.

The attribute is always present, in case of Confidence Score not activated, it will always be null.

The attribute value will be one of: Certain, High, Medium, Low .

All languages use the appropriate enum type.

Using the response deserialized object from either the polling response or a webhook payload.

locations

A list of the field's locations on the document.

The data are only filled if the Polygons (Bounding Boxes) feature is activated.

It's possible for a single field to have multiple locations, for example when an invoice item spans two pages.

Each location has a page index and a Polygon.

Page indexes are 0-based, so the first page is 0.

A Polygon class contains a list of Points, the specific implementation will depend on the language.

Points are listed in clockwise order, where index 0 is top left.

Point X,Y coordinates are normalized floats from 0.0 to 1.0, relative to the page dimensions.

Using the response deserialized object from either the polling response or a webhook payload.

Last updated

Was this helpful?