用户图片信息审核(内容检测&人脸检测)
POST
/mirror/init_image_check
无界魔镜魔镜作画
请求参数
Body 参数application/json
init_image
string <string>
必需
建议分辨率在1k左右,图片不宜过大,否则会导致超时
示例值:
https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png
示例
{
"init_image": "https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gate.wujieai.net/wj-open/v1/mirror/init_image_check' \
--header 'Content-Type: application/json' \
--data-raw '{
"init_image": "https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png"
}'
返回响应
🟢200OK
application/json
Body
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
object (InitImageCheckResult_response)
可选
check_key
string <string>
可选
示例值:
C5B5FE8DBF3679D9049342C130341BD9
image_detection_check
boolean
图片审核检查结果
示例值:
true
image_detection_message
string <string>
可选
示例值:
图片涉政
image_face_check
boolean
图片人脸检测
示例值:
true
image_face_check_message
string <string>
可选
示例值:
没有人脸
示例
{
"code": "200",
"message": "success",
"data": {
"check_key": "C5B5FE8DBF3679D9049342C130341BD9",
"image_detection_check": true,
"image_detection_message": "图片涉政",
"image_face_check": true,
"image_face_check_message": "没有人脸"
}
}
修改于 2024-09-19 08:39:24