First, if you haven’t already done so, you need to register at the Cloud Console. The free tier provides
requests which should be enough for running some tests.
After registering, log in to the Cloud Console, click “How To Use” on the left sidebar, scroll down until you see
the box below, and copy your API key.
Valid values for the region are:
• Europe: eur
• Africa: afr
• Australia: aus
• North America: nam
• Central America: cam
• South America: sam
• East Asia: eas
• Central Asia: cas
• South Asia: sas
• Middle East: me
For a list of all possible locations, please refer to this table.
• Header: Content-Type: multipart/form-data
• Header: X-Api-Key:
• Field image: the test image with its appropriate content type (e.g. image/jpeg or image/png)
• Field location: the location
• Field service: anpr,mmr
For example, using the command line tool cURL and the test image linked before, you can issue the following command:
curl -X POST 'https://api.carmencloud.com/vehicle/eur' \
-H 'X-Api-Key: ' \
-H 'Content-Type: multipart/form-data' \
-F 'service=anpr,mmr' \
-F 'location=ROU' \
-F "image=@vehicle-api-test-image.png;type=image/jpeg"
The response will contain the make, model and color of the vehicle and the text of its license plate (truncated for brevity):
{
"data": {
"vehicles": [
{
"plate": {
"found": true,
"country": "ROU",
"plateTypeConfidence": 47,
"positionConfidence": 100,
"plateChars": [ ... ],
"unicodeText": "B365BMW",
"separatedText": "B 365 BMW",
"engine": "cmanpr-7.3.12.116 : rou_local",
"proctime": 73,
"confidence": 33,
"plateROI": { ... },
"plateType": 110026
},
"mmr": {
"engine": "mmr-7.3.4.24 : mmr-eur",
"found": true,
"proctime": 87,
"category": "CAR",
"categoryConfidence": 62,
"color": {
"r": 0,
"g": 0,
"b": 255
},
"colorConfidence": 95,
"make": "BMW",
"model": "5",
"makeConfidence": 100,
"modelConfidence": 62,
"heading": "frontal",
"headingConfidence": 99
},
"bounds": { ... }
}
]
},
"nodename": "74f2fb5c-8be8-4a2b-bcfb-e0708eacfd04 ([380]
e1a68a7ba39f4ed4b128b1fc5b17aecb)",
"nodetime": 250,
"version": "1.3"
}
• See how to call the Vehicle API using different tools or programming languages:
– cURL
– JavaScript
– Python
See how to call the Transport API using different tools or programming languages::
– cURL
– JavaScript
– Python