OFR: Optical Feature Recognition
Our API provides a feature to extract visual features from images.
Performs optical feature recognition (OFR) to identify visual features such as objects, landmarks, or logos from images, aiding in image analysis and categorization.
Authorizations
Body
Responses
201
Successfully processed document with vision model
application/json
Responseany
post
POST /vision HTTP/1.1
Host: api.aimlapi.com
Authorization: Bearer <YOUR_AIMLAPI_KEY>
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
}
}
}
201
Successfully processed document with vision model
No content
Last updated
Was this helpful?