Book Bank OCR

POST https://apis.aigen.online/aiscript/bookbank/v1

Request Body

NameTypeDescription

image*

String

Input base64 image encoded utf-8

{
  "response_id": "996b3cf298d546adb97c719711504e58",
  "status": 1,
  "data": [
    {
      "key": "bank_name",
      "value": "krungthai",
      "confidence": 0.98
    },
    {
      "key": "branch",
      "value": "29 ถนนสุขสวัสดิ์",
      "confidence": 0.99
    },
    {
      "key": "account_no",
      "value": "000000000",
      "confidence": 0.96
    },
    {
      "key": "account_name",
      "value": "นายไกรสร ก๋าใจ",
      "confidence": 0.97
    }
  ],
  "request_id": "996b3cf298d546adb97c719711504e58"
}

​Example code

import requests
import json

api = "https://apis.aigen.online/aiscript/bookbank/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