Live Video Detection Result Acquisition API
API Address
https://as.dun.163yun.com/v2/livevideo/callback/results
API Description
The API is used to obtain a live stream detection result, and the detection result includes screenshot evidence information and violation classification information. The API limits the frequency of requests. If the request frequency is too fast, the server will refuse to process. It is recommended to obtain it every 30 seconds.
Request Parameters
The API parameters are consistent with the public request parameters. For details, see Public Request Parameters
Response Result
The response field is as follows, the response common field has been omitted, see Response General Fields
Parameter Name | Type | Description |
---|---|---|
result | json array | detection result array |
Result data structure
Parameter Name | Type | Description |
---|---|---|
callback | String | Callback field data when the product submits live stream information, used to identify the live stream, and the product is designed according to the business situation. |
evidence | json object | evidence information |
labels | json array | detection result array, if empty, it means the content is normal, if it is not empty, it means that the violation information is detected |
Evidence data structure:
Parameter Name | Type | Description |
---|---|---|
beginTime | Number | Evidence start time |
endTime | Number | End of Evidence |
type | Number | 1: picture, 2: video |
url | String | Evidence information |
Labels data structure
Parameter Name | Type | Description |
---|---|---|
Label | Number | Classified information, 100: porn, 110: sexy; 200: advertising, 210: two-dimensional code; 300: trepidation, 400: prohibited, 500: political, 1020: black screen, 1030: hang up |
subLabels | Number | Subcategory information, which may contain more than one, may be empty |
level | Number | Level information, divided into 1: Uncertain, 2: OK |
rate | Number | Score |
subLabels data structure
Parameter Name | Type | Description |
---|---|---|
subLabel | Number | subclassification ,Please refer to the corresponding subclassification coding table below |
rate | Number | The confidence score is taken between 0 and 1, with 1 being the highest confidence and 0 being the lowest |
details | Number | htiInfos: Hit details |
subclassification coding table
Code | Character | Description |
---|---|---|
10000 | PORN_COMMON | porn |
10001 | PORN_VAGINA | vagina |
10002 | PORN_NIPPLE | nipple |
10003 | PORN_PENNIS | pennis |
10004 | PORN_SEXUAL | sexual |
10005 | PORN_HIP | hip |
10006 | PORN_BLOWJOB | blowjob |
10007 | PORN_CARTOON | cartoon porn |
10008 | PORN_FACE | porn face |
10009 | PORN_CHILD | child porn |
11000 | SEXY_COMMON | sexy vulgar |
20000 | AD_COMMON | advertising |
21000 | QRCODE_COMMON | Qr code |
30000 | TERRORISM_COMMON | violence |
30001 | TERRORISM_GALLERY | violence gallery |
30002 | TERRORISM_FLAG | violence flag |
30003 | TERRORISM_FACE | violence face |
30004 | TERRORISM_LOGO | violence logo |
30005 | TERRORISM_SCENE | terrorism scene |
40000 | CONTRABAND_COMMON | prohibited |
40001 | CONTRABAND_GALLERY | prohibited gallery |
40002 | CONTRABAND_GOOD | contraband |
40003 | CONTRABAND_LOGO | prohibited logo |
40004 | CONTRABAND_BLOOD | bloody |
40005 | CONTRABAND_OFFICE_DRESS | office dress |
40006 | CONTRABAND_INCIVILIZATION | incivilization |
40007 | CONTRABAND_FACE | prohibited face |
40008 | CONTRABAND_SCENE | prohibited scene |
40009 | CONTRABAND_FIRE | fire |
40010 | CONTRABAND_SKULL | skull |
40011 | CONTRABAND_CURRENCY | currency |
50000 | POLITICS_COMMON | politics |
50001 | POLITICS_GALLERY | politics gallery |
50002 | POLITICS_MAP_OF_CHINA | China map |
50003 | POLITICS_LEADERPIC | politics face |
50004 | POLITICS_FLAG | politics flag |
50005 | POLITICS_LOGO | politics logo |
50006 | POLITICS_SCENE | politics scene |
Request example
Response example
Output result:
{
"code": 200,
"msg": "ok",
"result": [
{
"callback": "40d7e2fba1894512902e92928540a647",
"evidence": {
"beginTime": 1469774975520,
"endTime": 1469774975520,
"type": 1,
"url": "http://xxx.nos.netease.com/xxx.jpeg"
},
"labels": [
{
"label": 100,
"level": 2,
"rate": 1,
"subLabels": [{
"subLabel": 50003,
"rate": 1.0,
"details": {
"hitInfos": ["XXX"]
}
]
}
]
},
{
"callback": "40d7e2fba1894512902e92928540a647",
"evidence": {
"beginTime": 1469775156321,
"endTime": 1469775156321,
"type": 1,
"url": "http://xxx.nos.netease.com/xxxx.jpeg"
},
"labels": []
}
]
}