OFR: Optical Feature Recognition
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
POST /vision HTTP/1.1
Host: api.aimlapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 414
{
"image": {
"source": {
"imageUri": "text"
}
},
"features": [
{
"type": "FACE_DETECTION",
"maxResults": 1,
"model": "builtin/stable"
}
],
"imageContext": {
"latLongRect": {
"minLatLng": {
"latitude": 1,
"longitude": 1
},
"maxLatLng": {
"latitude": 1,
"longitude": 1
}
},
"languageHints": [
"text"
],
"cropHintsParams": {
"aspectRatios": [
1
]
},
"faceRecognitionParams": {
"celebritySet": [
"text"
]
},
"textDetectionParams": {
"enableTextDetectionConfidenceScore": true
}
}
}{
"pages": [
{
"index": 1,
"markdown": "text",
"images": [
{
"id": "text",
"top_left_x": 1,
"top_left_y": 1,
"bottom_right_x": 1,
"bottom_right_y": 1,
"image_base64": "https://example.com"
}
],
"dimensions": {
"dpi": 1,
"height": 1,
"width": 1
}
}
],
"model": "mistral-ocr-latest",
"usage_info": {
"pages_processed": 1,
"doc_size_bytes": 1
}
}