FR Carte Grise
The Python SDK supports the Mindee V1 Carte Grise API.
Product Specifications
Endpoint Name
carte_grise
Recommended Version
v1.1
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)
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:
value (
Union[float, str]): corresponds to the field value. Can beNoneif no value was extracted.confidence (
float): the confidence score of the field prediction.bounding_box (
[Point, Point, Point, Point]): contains exactly 4 relative vertices (points) coordinates of a right rectangle containing the field in the document.polygon (
List[Point]): contains the relative vertices coordinates (Point) of a polygon containing the field in the image.page_id (
int): the ID of the page, alwaysNonewhen at document-level.reconstructed (
bool): indicates whether an object was reconstructed (not extracted as the API gave it).
Aside from the previous attributes, all basic fields have access to a custom __str__ method that can be used to print their value as a string.
DateField
Aside from the basic BaseField attributes, the date field DateField also implements the following:
date_object (
Date): an accessible representation of the value as a python object. Can beNone.
StringField
The text field StringField only has one constraint: its value is an Optional[str].
Attributes
The following fields are extracted for Carte Grise V1:
a
a (StringField): The vehicle's license plate number.
b
b (DateField): The vehicle's first release date.
c1
c1 (StringField): The vehicle owner's full name including maiden name.
c3
c3 (StringField): The vehicle owner's address.
c41
c41 (StringField): Number of owners of the license certificate.
c4a
c4a (StringField): Mentions about the ownership of the vehicle.
d1
d1 (StringField): The vehicle's brand.
d3
d3 (StringField): The vehicle's commercial name.
e
e (StringField): The Vehicle Identification Number (VIN).
f1
f1 (StringField): The vehicle's maximum admissible weight.
f2
f2 (StringField): The vehicle's maximum admissible weight within the license's state.
f3
f3 (StringField): The vehicle's maximum authorized weight with coupling.
Formula Number
formula_number (StringField): The document's formula number.
g
g (StringField): The vehicle's weight with coupling if tractor different than category M1.
g1
g1 (StringField): The vehicle's national empty weight.
i
i (DateField): The car registration date of the given certificate.
j
j (StringField): The vehicle's category.
j1
j1 (StringField): The vehicle's national type.
j2
j2 (StringField): The vehicle's body type (CE).
j3
j3 (StringField): The vehicle's body type (National designation).
MRZ Line 1
mrz1 (StringField): Machine Readable Zone, first line.
MRZ Line 2
mrz2 (StringField): Machine Readable Zone, second line.
Owner's First Name
owner_first_name (StringField): The vehicle's owner first name.
Owner's Surname
owner_surname (StringField): The vehicle's owner surname.
p1
p1 (StringField): The vehicle engine's displacement (cm3).
p2
p2 (StringField): The vehicle's maximum net power (kW).
p3
p3 (StringField): The vehicle's fuel type or energy source.
p6
p6 (StringField): The vehicle's administrative power (fiscal horsepower).
q
q (StringField): The vehicle's power to weight ratio.
s1
s1 (StringField): The vehicle's number of seats.
s2
s2 (StringField): The vehicle's number of standing rooms (person).
u1
u1 (StringField): The vehicle's sound level (dB).
u2
u2 (StringField): The vehicle engine's rotation speed (RPM).
v7
v7 (StringField): The vehicle's CO2 emission (g/km).
x1
x1 (StringField): Next technical control date.
y1
y1 (StringField): Amount of the regional proportional tax of the registration (in euros).
y2
y2 (StringField): Amount of the additional parafiscal tax of the registration (in euros).
y3
y3 (StringField): Amount of the additional CO2 tax of the registration (in euros).
y4
y4 (StringField): Amount of the fee for managing the registration (in euros).
y5
y5 (StringField): Amount of the fee for delivery of the registration certificate in euros.
y6
y6 (StringField): Total amount of registration fee to be paid in euros.
Last updated
Was this helpful?

