House Registration OCR

Extract House Registration information from image

Error Definition

Key List

Extract House Registration information from image

POST https://apis.aigen.online/aiscript/house-registration/v1

Request Body

{
  "status": "200",
  "message": "success",
  "response_id": "string",
  "error_list": [
    {
      "code": "string",
      "message": "string"
    }
  ],
  "result": [
    {
      "key": "book number",
      "text": "บ้าน",
      "bboxes": [
        [
          [
            358,
            346
          ],
          [
            1055,
            346
          ],
          [
            1055,
            396
          ],
          [
            358,
            396
          ]
        ],
        [
          [
            373,
            286
          ],
          [
            533,
            286
          ],
          [
            533,
            340
          ],
          [
            373,
            340
          ]
        ]
      ],
      "confidence": 0.9803633930835318
    }
  ]
}

​Example code

import requests
import json

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