BWS 3 Face Image Quality API is in preview!
Performs face image quality measurements by calling into the
Open Source Face Image Quality (OFIQ) library.
With this library we currently perform these 28 quality measures.
Please note that this library is subject of the OFIQ License
POST /api/ofiq/v1/faceimagequality
Content type: application/json
{
"image": "string"
}
The FaceImageQuality request object has a single field:
imags
The maximum API request size is 50 MB.
This API requires a valid JWT in the Authorization request header and accepts an optional reference number.
| Authorization | Required Bearer authentication. Please refer to BWS API Authentication for a description of how to provide a valid JWT here. |
| Reference-Number | Optional, client specific reference number, which will be added to the BWS bookkeeping as well as to the response header. You typically use this reference to link the resulting BWS bookkeeping entries with your logs. |
Content type: application/json
{
"status": "SUCCEEDED",
"errors": [
{
"errorCode": "string",
"message": "string"
}
],
"qualityMeasurements": [
{
"measure": "Unspecified",
"rawValue": 0,
"scalarScore": 0
}
]
}
On success the API returns a FaceImageQuality response object with the fields as follows:
statuserrorsqualityMeasurementsQualityMeasure enum as found in the protobuf.
[0, 100] computed from the raw score. Higher values mean better quality.
A score of 100 indicates optimal quality, while 0 indicates a severe defect.
In case none or not all of the quality measurements have benn calculated, this API might report one of the following OFIQ return codes in the errors field:
The call returns one of the standard HTTP status codes, e.g.:
code and message.All successful BWS calls return a response header containing additional information about the request:
| jobid | The Job-ID (a GUID) that has been assigned to this BWS call. |
| bws-version | The version of the BWS gRPC service. |
| reference-number | An optional reference number as provided in the request header. |
| date | The timestamp when the request has been received at the server. |
| ... | Other headers that might have been added by the server (NGINX, Kestrel, ...) that was handling the request. |