Cameroon ๐Ÿ‡จ๐Ÿ‡ฒ

Extract PII data from Cameroon ID documents

How It Works

Appruve's OCR API allows you to extract the Personally identifiable information from a Cameroon ID document including the ID face photo. This API also performs an analyses on each document uploaded to determine if the document is legit or not. Document analyses include Template Matching, Barcode and MRZ checks.

The endpoint is constructed as follows.

https://api.appruve.co/v1/verifications/selfie_image/ocr/cm/{id_type}

id_type should be replaced with the specific ID type. Only national_id is supported at this time.

The request is a multipart POST request as shown in the example below. The front_id_image and back_id_image parameters are required and their values could be a File Object or a web URL.

Example National ID Request

curl --location --request POST 'https://api.appruve.co/v1/verifications/selfie_image/ocr/cm/national_id' \
--header 'Authorization: Bearer TOKEN' \
--form 'front_id_image=@"/path/cm_national_id_front.jpg"' \
--form 'back_id_image=@"/path/cm_national_id_back.jpg"'

An example response is given below.

{
    "id_details": {
        "id_type": "national_id",
        "front_id": {
            "first_name": "John",
            "last_name": "Doe",
            "date_of_birth": "1993-05-11",
            "gender": "M",
            "place_of_birth": "Douala",
            "height": "1,61",
            "profession": "Etudiant"
        },
        "back_id": {
            "fathers_name": "Senior Doe",
            "mothers_name": "Mama Doe",
            "address": "",
            "expiry_date": "2029-02-05",
            "issue_date": "2019-02-05",
            "document_number": "123456789"
        },
        "is_id_valid": true
    },
    "document_country": "cm",
    "front_id_submitted": "URL",
    "back_id_submitted": "URL",
    "front_id_face_photo": "URL",
    "transaction_reference": "c8f6952c-77ea-443d-b46f-86415fd1f78d",
    "document_analyses": [
        {
            "type": "TEMPLATE_MATCHING",
            "is_check_successful": true,
            "data": null
        }
    ],
    "id_confidence_score": 100,
    "face_sharpness": 38.9,
    "face_brightness": 58.99,
    "is_reenrollment": false
}

The returned transaction_reference value should be used for the Upload Selfie endpoint.

Last updated