Pornography Recognition (Antiporn)
Updated at:2025-11-03
Function description
Pornography detection.
Request parameters
None
Response parameters
| Field | Types | Required or not | Description |
|---|---|---|---|
| confidence_coefficient | string | Yes | The results are classified into two categories: "Definite" and "Indefinite.\ |
| result_num | uint32 | Yes | The number of results corresponds to the number of elements in the results array. |
| result | array(array(double)) | Yes | The results array contains items, each representing an outcome from a classification dimension. |
| conclusion | string | Yes | The final evaluation result for this image is categorized into three types: "Pornography," "Sexy," and "Normal.\ |
| log_id | uint64 | Yes | Request identifier: a unique, randomly generated number. |
Each element contains the following fields:
| Field | Types | Required or not | Description | Example |
|---|---|---|---|---|
| class_name | string | Yes | Classification result name | Pornography |
| probability | double | Yes | Classification result confidence | 0.89471650123596 |
Response example
Plain Text
1{
2 "result": [{
3 "probability": 0.000301,
4 "class_name": "Pornography"
5 },
6 {
7 "probability": 0.000054,
8 "class_name": "Sexy"
9 },
10 {
11 "probability": 0.999645,
12 "class_name": "Normal"
13 }],
14 "conclusion": "Normal",
15 "log_id": 848999404,
16 "confidence_coefficient": "Definite",
17 "result_num": 3
18}
