Face Detection
POST
https://api.changeface.io/api/v1/face-detection
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
image_url
string
required
Example
{
"image_url": "https://1250948203.rsc.cdn77.org/images/4435c59e-7fae-4a7c-acc2-9fbf56878acb.jpg"
}
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://api.changeface.io/api/v1/face-detection' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_url": "https://1250948203.rsc.cdn77.org/images/4435c59e-7fae-4a7c-acc2-9fbf56878acb.jpg"
}'
Responses
🟢200成功
application/json
Body
faces
array [object {1}]
required
position
array [object {2}]
required
Example
{
"faces": [
{
"position": [
{
"x": 258,
"y": 70
},
{
"x": 566,
"y": 70
},
{
"x": 566,
"y": 428
},
{
"x": 258,
"y": 428
}
]
},
{
"position": [
{
"x": 139,
"y": 373
},
{
"x": 354,
"y": 373
},
{
"x": 354,
"y": 623
},
{
"x": 139,
"y": 623
}
]
}
]
}
Modified at 2024-08-17 08:55:39