OCR Passport API
POSThttps://ocrpassport.infer.visai.ai/predict
Header
X-API-Key string required
Your API key
multipart/form-data
form-data body
Request Body
- files Filerequired
Passport image files in a form of multi-part form data using the key name files.
Responses
- 200
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
object
status string
success
| failed
Status of request
data object
confidence float
The level of confidence
fields object
name string
surname string
date_of_birth string
gender string
M
for male | F
for female
country_code string
country_name string
passport_number string
passport_type string
date_of_expiry string
identification_number string
(Only Thai passport)
[
{
"status": "success",
"data": {
"fields": {
"name": "VISAI",
"surname": "AI",
"date_of_birth": "01 JUN 1997",
"gender": "M",
"country_code": "THA",
"country_name": "Thailand",
"identification_number": "1234567890123",
"passport_number": "R123456",
"passport_type": "P",
"date_of_expiry": "31 DEC 2025"
},
"confidence": 0.9566428661346436
}
}
]
Loading...