Passport

The .NET SDK supports the Mindee V1 Passport API.

Product Specifications

Specification
Details

Endpoint Name

passport

Recommended Version

v1.1

Supports Polling/Webhooks

❌ No

Support Synchronous HTTP Calls

✔️ Yes

Geography

🌐 Global

Quick-Start

Using the sample below, we are going to illustrate how to extract the data that we want using the SDK.

Passport Sample

Sample Code

Sample Output (rST)

Standard Fields

These fields are generic and used in several products.

BaseField

Each prediction object contains a set of fields that inherit from the generic BaseField class. A typical BaseField object will have the following attributes:

  • Confidence (double?): the confidence score of the field prediction.

  • BoundingBox (BoundingBox): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.

  • Polygon (Polygon): contains the relative vertices coordinates (Polygon extends List<Point>) of a polygon containing the field in the image.

  • PageId (int?): the ID of the page, always null when at document-level.

A Point simply refers to a List of double.

Aside from the previous attributes, all basic fields have access to a custom ToString method that can be used to print their value as a string.

StringField

The text field StringField extends BaseField, but also implements:

  • Value (string): corresponds to the field value.

  • RawValue (string): corresponds to the raw value as it appears on the document.

DateField

The date field DateField extends StringField, but also implements:

  • DateObject (DateTime?): an accessible representation of the value as a C# object. Can be null.

Attributes

The following fields are extracted for Passport V1:

Date of Birth

BirthDate: The date of birth of the passport holder.

Place of Birth

BirthPlace: The place of birth of the passport holder.

Country Code

Country: The country's 3 letter code (ISO 3166-1 alpha-3).

Expiry Date

ExpiryDate: The expiry date of the passport.

Gender

Gender: The gender of the passport holder.

Given Name(s)

GivenNames: The given name(s) of the passport holder.

ID Number

IdNumber: The passport's identification number.

Date of Issue

IssuanceDate: The date the passport was issued.

MRZ Line 1

Mrz1: Machine Readable Zone, first line

MRZ Line 2

Mrz2: Machine Readable Zone, second line

Surname

Surname: The surname of the passport holder.

Last updated

Was this helpful?