Carte Vitale - FRANCE OCR
Mindee’s Carte Vitale - FRANCE API uses deep learning to automatically, accurately, and instantaneously parse your card details. In under a second, the API extracts a set of data from your PDFs or photos of Carte Vitale, including:
Given Name(s)
Surname
Social Security Number
Issuance Date
The Carte Vitale - France API supports the new and old format for all people in France. The cards of other nationalities and states are not supported with this model.
Set up the API
You'll need a french carte vitale. You can use one of the sample documents provided below.

Access your API by clicking on the Carte Vitale - FRANCE card in the Document Catalog

From the left navigation, go to documentation > API Reference, you'll find sample code in popular languages and command line.
Replace my-api-key-here with your new API key, or use the select an API key feature and it will be filled automatically.
Copy and paste the sample code of your desired choice in your application, code environment, terminal etc.
Replace
/path/to/the/file.extwith the path to your input document.
Remember to replace with your V1 API key.
Run your code. You will receive a JSON response with the document details.
API Response
Here is the full JSON response you get when you call the API:
You can find the prediction within the prediction key found in document > inference > prediction for document-level predictions: it contains the different fields extracted at the document level, meaning that for multi-pages PDFs, we reconstruct a single object using all the pages.
Each predicted field may contain one or several values:
a
polygonhighlighting the information locationa
page_idwhere the information was found (document level only)
Detailed Field Information
Depending on the field type specified, additional attributes can be extracted from the Carte Vitale -FRANCE card object. Using the above example the following are the basic fields that can be extracted.
Given Name(s)
given_names: The given names of the card holder.
Surname
surname: The surname of the card holder.
Social Security Number
social_security: The social security number of the card holder.
Issuance Date
issuance_date: The date when the carte vitale was issued.
Last updated
Was this helpful?

