- Introdução
- Consumindo a API
- Características da API
- Mensagens de Erro
- Material de Apoio
- Authentication
- Address Parsing
- Billing/DailySummary
- Content Classification
- Content Compare
- Content Extraction
- Content Extraction Async
- Content Extraction Distance
- Content Fullreader
- Enrichment
- Facematch
- Generative Content Extraction
- Image Properties
- Image Reporting - Continuous Improvement
- Invoice Extraction
- License Plate Recognition
- Liveness Detection
- Liveness Streaming
- MultiAddress Parsing
- MultiPage Content Extraction
- Payment Card Extraction
- Vio Extraction
Face Compare 1:1 [application/json]
POST
https://mostqiapi.com/process-image/biometrics/face-compare
face compareface match
Last modified:2024-11-08 11:27:38
Request
Header Params
Authorization
string
required
Example:
Bearer {{bearer_token}}
Body Params application/json
faceFileBase64A
string <base64>
optional
Binário do arquivo a ser processado, codificado em string de texto conforme o padrão RFC 4648 usando a codificação base64.
faceFileBase64B
string <base64>
optional
Binário do arquivo a ser processado, codificado em string de texto conforme o padrão RFC 4648 usando a codificação base64.
faceFileUrlA
string
optional
faceFileUrlB
string
optional
faceFilePasswordA
string <base64>
optional
faceFilePasswordB
string <base64>
optional
Example
{
"faceFileBase64A": "",
"faceFileBase64B": "",
"faceFileUrlA": "",
"faceFileUrlB": "",
"faceFilePasswordA": "",
"faceFilePasswordB": ""
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mostqiapi.com/process-image/biometrics/face-compare' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"faceFileBase64A": "",
"faceFileBase64B": "",
"faceFileUrlA": "",
"faceFileUrlB": "",
"faceFilePasswordA": "",
"faceFilePasswordB": ""
}'
Responses
🟢200OK
application/json
Body
result
object
required
distances
array[number <float>]
float
similarity
number <float>
required
>= 0<= 1
requestId
string
required
elapsedMilliseconds
integer
required
status
object
required
message
string | null
required
code
string
required
errors
array [object {2}] | null
required
Example
{
"result": {
"distances": [
0.81
],
"similarity": 0.19
},
"requestId": "eyDwui1750WVJTkno8VZD",
"elapsedMilliseconds": 493,
"status": {
"message": "Ok",
"code": "200",
"errors": null
}
}
🟠401R117 Invalid authorization data
🔴500E100 The request could not be processed
Modified at 2024-11-08 11:27:38