zf-kbot/md-er-nsfw-detector
Public
4.1M
runs
Run zf-kbot/md-er-nsfw-detector with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| api_key |
string
|
API 密钥
|
|
| images |
array
|
一张或多张待检测图片,最多 5 张。
|
|
| video |
string
|
待检测视频文件,与图片输入二选一。
|
|
| detect_size |
None
|
640
|
图片检测分辨率。320 对应 320n,640 对应 640m。
|
| video_frames |
integer
|
2
|
视频每秒采样帧数,最大 4;当时长大于等于 30 秒时会自动降为 1。
|
| video_duration |
integer
|
10
|
视频检测时长,单位秒,最大 60。
|
| max_image_pixels |
integer
|
9000000
|
单张图片最大像素上限,仅对图片输入生效,默认 900 万。
|
| buttocks_exposed |
number
|
0.8
|
臀部暴露阈值。
|
| female_breast_exposed |
number
|
0.8
|
女性胸部暴露阈值。
|
| female_genitalia_exposed |
number
|
0.5
|
女性生殖器暴露阈值。
|
| male_breast_exposed |
number
|
1
|
男性胸部暴露阈值。
|
| anus_exposed |
number
|
0.7
|
肛门暴露阈值。
|
| male_genitalia_exposed |
number
|
0.4
|
男性生殖器暴露阈值。
|
{
"type": "object",
"title": "Input",
"required": [
"api_key"
],
"properties": {
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 2,
"nullable": true,
"description": "\u5f85\u68c0\u6d4b\u89c6\u9891\u6587\u4ef6\uff0c\u4e0e\u56fe\u7247\u8f93\u5165\u4e8c\u9009\u4e00\u3002"
},
"images": {
"type": "array",
"items": {
"type": "string",
"anyOf": [],
"format": "uri"
},
"title": "Images",
"x-order": 1,
"nullable": true,
"description": "\u4e00\u5f20\u6216\u591a\u5f20\u5f85\u68c0\u6d4b\u56fe\u7247\uff0c\u6700\u591a 5 \u5f20\u3002"
},
"api_key": {
"type": "string",
"title": "Api Key",
"x-order": 0,
"description": "API \u5bc6\u94a5"
},
"detect_size": {
"enum": [
320,
640
],
"type": "integer",
"title": "detect_size",
"description": "\u56fe\u7247\u68c0\u6d4b\u5206\u8fa8\u7387\u3002320 \u5bf9\u5e94 320n\uff0c640 \u5bf9\u5e94 640m\u3002",
"default": 640,
"x-order": 3
},
"anus_exposed": {
"type": "number",
"title": "Anus Exposed",
"default": 0.7,
"x-order": 11,
"description": "\u809b\u95e8\u66b4\u9732\u9608\u503c\u3002"
},
"video_frames": {
"type": "integer",
"title": "Video Frames",
"default": 2,
"x-order": 4,
"description": "\u89c6\u9891\u6bcf\u79d2\u91c7\u6837\u5e27\u6570\uff0c\u6700\u5927 4\uff1b\u5f53\u65f6\u957f\u5927\u4e8e\u7b49\u4e8e 30 \u79d2\u65f6\u4f1a\u81ea\u52a8\u964d\u4e3a 1\u3002"
},
"video_duration": {
"type": "integer",
"title": "Video Duration",
"default": 10,
"x-order": 5,
"description": "\u89c6\u9891\u68c0\u6d4b\u65f6\u957f\uff0c\u5355\u4f4d\u79d2\uff0c\u6700\u5927 60\u3002"
},
"buttocks_exposed": {
"type": "number",
"title": "Buttocks Exposed",
"default": 0.8,
"x-order": 7,
"description": "\u81c0\u90e8\u66b4\u9732\u9608\u503c\u3002"
},
"max_image_pixels": {
"type": "integer",
"title": "Max Image Pixels",
"default": 9000000,
"x-order": 6,
"description": "\u5355\u5f20\u56fe\u7247\u6700\u5927\u50cf\u7d20\u4e0a\u9650\uff0c\u4ec5\u5bf9\u56fe\u7247\u8f93\u5165\u751f\u6548\uff0c\u9ed8\u8ba4 900 \u4e07\u3002"
},
"male_breast_exposed": {
"type": "number",
"title": "Male Breast Exposed",
"default": 1,
"x-order": 10,
"description": "\u7537\u6027\u80f8\u90e8\u66b4\u9732\u9608\u503c\u3002"
},
"female_breast_exposed": {
"type": "number",
"title": "Female Breast Exposed",
"default": 0.8,
"x-order": 8,
"description": "\u5973\u6027\u80f8\u90e8\u66b4\u9732\u9608\u503c\u3002"
},
"male_genitalia_exposed": {
"type": "number",
"title": "Male Genitalia Exposed",
"default": 0.4,
"x-order": 12,
"description": "\u7537\u6027\u751f\u6b96\u5668\u66b4\u9732\u9608\u503c\u3002"
},
"female_genitalia_exposed": {
"type": "number",
"title": "Female Genitalia Exposed",
"default": 0.5,
"x-order": 9,
"description": "\u5973\u6027\u751f\u6b96\u5668\u66b4\u9732\u9608\u503c\u3002"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}