Skip to main content

House Registration OCR

API Documentation for House Registration OCR

Extract House Registration information from image

Error Definition

http statuserror_codeerror_messagedescription
200200successSuccess
400001Can’t detect both house registration or resident detailsPlease ensure both house registration and resident details are uploaded in the same document
400001mage validation error maybe something wrongPlease ensure your base_64_image had transform correctly

Key List

keykey_thai
book numberเล่มที่ ในรายการเกี่ยวกับบ้าน
house number from house infoเลขรหัสประจำบ้าน ในรายการเกี่ยวกับบ้าน
registrar officeสำนักทะเบียน ในรายการเกี่ยวกับบ้าน
addressรายการที่อยู่ ในรายการเกี่ยวกับบ้าน
village nameชื่อหมู่บ้าน ในรายการเกี่ยวกับบ้าน
house nameชื่อบ้าน ในรายการเกี่ยวกับบ้าน
house categoryประเภทบ้าน ในรายการเกี่ยวกับบ้าน
house styleลักษณะบ้าน ในรายการเกี่ยวกับบ้าน
date of house number registrationวันเดือนปีที่กำหนดบ้านเลขที่ ในรายการเกี่ยวกับบ้าน
registrar name of house infoชื่อนายทะเบียน ในรายการเกี่ยวกับบ้าน
date of house registrationวันเดือนปีที่พิมพ์ทะเบียนบ้าน ในรายการเกี่ยวกับบ้าน
page of person infoเลขหน้า ในรายการข้อมูลบุคคล
book number from person infoเล่มที่ ในรายการข้อมูลบุคคล
house number from person infoรายการบุคคลในบ้านของเลขรหัสประจำบ้าน ในรายการข้อมูลบุคคล
orderลำดับที่ ในรายการข้อมูลบุคคล
nameชื่อ ในรายการข้อมูลบุคคล
nationalityสัญชาติ ในรายการข้อมูลบุคคล
sexเพศ ในรายการข้อมูลบุคคล
id numberเลขประจำตัวประชาชน ในรายการข้อมูลบุคคล
statusสถานภาพ ในรายการข้อมูลบุคคล
date of birthเกิดเมื่อ ในรายการข้อมูลบุคคล
mother nameชื่อมารดาผู้ให้กำเนิด ในรายการข้อมูลบุคคล
mother id numberเลขประจำตัวประชาชนมารดาผู้ให้กำเนิด ในรายการข้อมูลบุคคล
mother nationalityสัญชาติมารดาผู้ให้กำเนิด ในรายการข้อมูลบุคคล
father nameชื่อบิดาผู้ให้กำเนิด ในรายการข้อมูลบุคคล
father id numberเลขประจำตัวประชาชนบิดาผู้ให้กำเนิด ในรายการข้อมูลบุคคล
father nationalityสัญชาติบิดาผู้ให้กำเนิด ในรายการข้อมูลบุคคล
from infoมาจาก ในรายการข้อมูลบุคคล
registrar name of from infoชื่อนายทะเบียนในส่วนของมาจาก ในรายการข้อมูลบุคคล
to infoไปที่ ในรายการข้อมูลบุคคล
registrar name of from infoชื่อนายทะเบียนในส่วนของไปที่ ในรายการข้อมูลบุคคล

Extract House Registration information from image

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

Request Body

NameTypeDescription
image*Input base64 images encoded utf-8
{
"status": "200",
"request_id": "string",
"error": [
{
"code": "string",
"message": "string"
}
],
"data": [
{
"book_number": {},
"house_number_from_house_info": {},
"registrar_office": {},
"address": {},
"village_name": {},
"house_name": {},
"house_category": {},
"house_style": {},
"date_of_house_number_registration": {},
"registrar_name_of_house_info": {},
"date_of_house_registration": {},
"page_of_person_info": {},
"book_number_from_person_info": {},
"house_number_from_person_info": {},
"order": {},
"name": {},
"nationality": {},
"sex": {},
"id_number": {},
"status": {},
"date_of_birth": {},
"mother_name": {},
"mother_id_number": {},
"mother_nationality": {},
"father_name": {},
"father_id_number": {},
"father_nationality": {},
"from_info": {},
"registrar_name_of_from_info": {},
"to_info": {},
"registrar_name_of_to_info": {}
},
{
"data": "string"
}
]
}
import requests

api = "https://apis.aigen.online/aiscript/house-registration/v2"
headers = {"x-aigen-key": "<key>"}
data = {"image": "<base64_string>"}

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