Skip to main content

Vehicle Registration Book OCR

Extract Vehicle Registration Book information from an image or PDF.


description: Extract Vehicle Registration Book Information

Vehicle Registration Book OCR

Response Definition

HTTP StatusCodeMessageDescription
200--OCR success.
206partial_contentPartial contentSome page of request is invalid
4001001Too low image resolution (image must be base64 and image size must between 500x500 and 10000x10000)Image is too small (Should be greater than 500x500)
4001002Image quality not acceptable (image must be base64 and image size must between 500x500 and 10000x10000)Image is too large (Should not exceed 10000x10000).
400can_not_find_vehicle_registration_on_imagecan not find vehicle registration on imageThe API cannot recognize the request's image as a vehicle registration book document.
206/400*internal_server_errorPage <#no page> : Internal Server ErrorThe page specified in the error message caused an undefined error.

Parameters

Body

KeyTypeDescription
imageStringBase64 image encoded stringBase64 image encoded string

Extract Vehicle Registration Book Information

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

Request Body

NameTypeDescription
image*StringInput base64 images encoded utf-8
{
"status": "success",
"error": [],
"data": [
{
"ownership": {
"value": "นาง เสลา สระตันติ์",
"bboxes": [
[
[289, 1305],
[571, 1305],
[571, 1351],
[289, 1351]
]
],
"bboxes_norm": [
[
[0.1748, 0.5579],
[0.3454, 0.5579],
[0.3454, 0.5776],
[0.1748, 0.5776]
]
],
"confidence": 0.986044474570928
},
"model": {
"value": "BAYARFAY10EHA1",
"bboxes": [
[
[747, 575],
[1014, 575],
[1014, 607],
[747, 607]
]
],
"bboxes_norm": [
[
[0.4519, 0.2458],
[0.6134, 0.2458],
[0.6134, 0.2595],
[0.4519, 0.2595]
]
],
"confidence": 0.9977917852163927
}
}
]
}
import requests

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

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