FR Carte Nationale d'Identité
FR Carte Nationale d'Identité
The Java SDK supports the Mindee V1 Carte Nationale d'Identité API.
Product Specifications
Endpoint Name
idcard_fr
Recommended Version
v2.0
Supports Polling/Webhooks
❌ No
Support Synchronous HTTP Calls
✔️ Yes
Geography
🇫🇷 France
Quick-Start
Using the sample below, we are going to illustrate how to extract the data that we want using the SDK.

Sample Code
Sample Output (rST)
Field Types
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 (
Polygon): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.polygon (
Polygon): contains the relative vertices coordinates (polygonextendsList<Point>) of a polygon containing the field in the image.pageId (
Integer): the ID of the page, alwaysnullwhen at document-level.
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.
ClassificationField
The classification field ClassificationField extends BaseField, but also implements:
value (
strong): corresponds to the field value.confidence (
double): the confidence score of the field prediction.
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 BaseField, but also implements:
value (
LocalDate): an accessible representation of the value as a Java object. Can benull.
Page-Level Fields
Some fields are constrained to the page level, and so will not be retrievable at document level.
Attributes
The following fields are extracted for Carte Nationale d'Identité V2:
Alternate Name
alternateName: The alternate name of the card holder.
Issuing Authority
authority: The name of the issuing authority.
Date of Birth
birthDate: The date of birth of the card holder.
Place of Birth
birthPlace: The place of birth of the card holder.
Card Access Number
cardAccessNumber: The card access number (CAN).
Document Number
documentNumber: The document number.
Document Sides
📄documentSide: The sides of the document which are visible.
Possible values include:
'RECTO'
'VERSO'
'RECTO & VERSO'
Document Type
📄documentType: The document type or format.
Possible values include:
'NEW'
'OLD'
Expiry Date
expiryDate: The expiry date of the identification card.
Gender
gender: The gender of the card holder.
Given Name(s)
givenNames: The given name(s) of the card holder.
Date of Issue
issueDate: The date of issue of the identification card.
Mrz Line 1
mrz1: The Machine Readable Zone, first line.
Mrz Line 2
mrz2: The Machine Readable Zone, second line.
Mrz Line 3
mrz3: The Machine Readable Zone, third line.
Nationality
nationality: The nationality of the card holder.
Surname
surname: The surname of the card holder.
Last updated
Was this helpful?

