Driver Licence OCR

​Extract driver license information from image

Error Definition

Extract driver license information from image

POST https://apis.aigen.online/aiscript/driver-license/v1

Request Body

{
  "status": "200",
  "message": "success",
  "response_id": "123wereqs2",
  "error_list": [
    {
      "code": "string",
      "message": "string"
    }
  ],
  "result": [
    {
      "keyname": "string",
      "text": "string",
      "confidence": 0
    }
  ]
}

​Example code

import requests
import json

api = "https://apis.aigen.online/aiscript/driver-license/v1"
headers = {"x-aigen-key": "<key>", "content-type": "application/json"}
data = json.dumps({"image": "<base64_string>"})

res = requests.post(api, data=data, headers=headers)
print(res.json())

Last updated