Result Obtaining Interface Response
Update:
HTTP Response:
Content-Type: application/json;charset=UTF-8
The result is in JSON format, please refer to the following example.
- HTTP Response:
Description of returning json field:
Field name
Type
Description
errorCode
Number
Error code: 0 means success
errorMessage
String
Error message
code
json array
Status code, defined as: 0: successful detection, 1: failed detection, 2: detecting, 3: invalid taskId.
result
Number
0: Passed, 1: recommended for review, 2: not passed
videoSpams
json array
Result information, if the array is empty, it means the video is a normal video.
imageSpams:
Field name
Type
Description
beginTime
Number
Relative time of evidence start (millisecond)
endTime
Number
Relative time of evidence end (millisecond)
type
Number
1: Image, 2: Video
url
String
Evidentiary information (Return when type=1)
tags
json array
Classification information
tags:
Field name
Type
Description
tag
Number
Classification information: 100: politics,110: violence,120:prohibited, 130: eroticism, 140: sexy, 150:advertisement,160:values(abuse),170:hate speech,180:minors,190: sensitive hot spots, 200:QR code, 300:logo,400:ocr, 900:others
tagName
String
Detect first-level type names for image hits
tagNameEn
String
Detect first-level type names for image hits(English)
level
Number
Classification level, 0: normal, 1: suspected, 2: abnormal
subTags
json object
Secondary classification of sensitive information
subTags:
Field name
Type
Describe
subTag
Number
Secondary classification information reference Classification Code
subTagName
String
Detect secondary type names for iamge hits
subTagNameEn
String
Detect secondary type names for image hits(English)
wordList
array of strings
hit details
-
Example of response:
JSON response
{
"errorCode": 0,
"code": 0,
"result": 2,
"videoSpams": [{
"beginTime": 1469774975520,
"endTime": 1469774975520,
"type": 1,
"url": "https://rcs-test.s3.cn-northwest-1.amazonaws.com.cn/rcs/61200001/video/nxtest_live_4c2a40d8-911c-4d59-b720-d4f40f0a2a0b_1598859623340/2c614b045a1a46a9b39f77a774dc4b6c_1598859720238.jpg",
"tags": [{
"tag": 100,
"level": 2,
"confidence": 1
}]
}]
}
Error code:
Http Status code
Error code
Error message
200
0
This field is omitted
405
1004
Method Not Allowed
411
1007
Not Content Length
400
1002
API Not Found
400
1003
Bad Request
401
1102
Unauthorized Client
401
1106
Missing Access Token
401
1107
Invalid Token
401
1108
Expired Token
401
1110
Invalid Client
200
1200
Downloads failed or base64 value invalid
401
2000
Missing Parameter
401
2001
Invalid Parameter
label:
id
名称
描述
800004001
男性
识别到图片中有男性
800004002
女性
识别到图片中有女性
800007001
正脸
识别到正面人脸
800005005
年龄段-儿童
识别到图片中有儿童
800005006
年龄段-青少年
识别到图片中有青少年
800005007
年龄段-成年
识别到图片中有成年人
800005008
年龄段-老年
识别到图片中有老年人
HTTP Response:
Content-Type: application/json;charset=UTF-8
The result is in JSON format, please refer to the following example.
- HTTP Response:
Description of returning json field:
Field name | Type | Description |
---|---|---|
errorCode | Number | Error code: 0 means success |
errorMessage | String | Error message |
code | json array | Status code, defined as: 0: successful detection, 1: failed detection, 2: detecting, 3: invalid taskId. |
result | Number | 0: Passed, 1: recommended for review, 2: not passed |
videoSpams | json array | Result information, if the array is empty, it means the video is a normal video. |
imageSpams:
Field name | Type | Description |
---|---|---|
beginTime | Number | Relative time of evidence start (millisecond) |
endTime | Number | Relative time of evidence end (millisecond) |
type | Number | 1: Image, 2: Video |
url | String | Evidentiary information (Return when type=1) |
tags | json array | Classification information |
tags:
Field name | Type | Description |
---|---|---|
tag | Number | Classification information: 100: politics,110: violence,120:prohibited, 130: eroticism, 140: sexy, 150:advertisement,160:values(abuse),170:hate speech,180:minors,190: sensitive hot spots, 200:QR code, 300:logo,400:ocr, 900:others |
tagName | String | Detect first-level type names for image hits |
tagNameEn | String | Detect first-level type names for image hits(English) |
level | Number | Classification level, 0: normal, 1: suspected, 2: abnormal |
subTags | json object | Secondary classification of sensitive information |
subTags:
Field name | Type | Describe |
---|---|---|
subTag | Number | Secondary classification information reference Classification Code |
subTagName | String | Detect secondary type names for iamge hits |
subTagNameEn | String | Detect secondary type names for image hits(English) |
wordList | array of strings | hit details |
-
Example of response:
JSON response
{ "errorCode": 0, "code": 0, "result": 2, "videoSpams": [{ "beginTime": 1469774975520, "endTime": 1469774975520, "type": 1, "url": "https://rcs-test.s3.cn-northwest-1.amazonaws.com.cn/rcs/61200001/video/nxtest_live_4c2a40d8-911c-4d59-b720-d4f40f0a2a0b_1598859623340/2c614b045a1a46a9b39f77a774dc4b6c_1598859720238.jpg", "tags": [{ "tag": 100, "level": 2, "confidence": 1 }] }] }
Error code:
Http Status code | Error code | Error message |
---|---|---|
200 | 0 | This field is omitted |
405 | 1004 | Method Not Allowed |
411 | 1007 | Not Content Length |
400 | 1002 | API Not Found |
400 | 1003 | Bad Request |
401 | 1102 | Unauthorized Client |
401 | 1106 | Missing Access Token |
401 | 1107 | Invalid Token |
401 | 1108 | Expired Token |
401 | 1110 | Invalid Client |
200 | 1200 | Downloads failed or base64 value invalid |
401 | 2000 | Missing Parameter |
401 | 2001 | Invalid Parameter |
label:
id | 名称 | 描述 |
---|---|---|
800004001 | 男性 | 识别到图片中有男性 |
800004002 | 女性 | 识别到图片中有女性 |
800007001 | 正脸 | 识别到正面人脸 |
800005005 | 年龄段-儿童 | 识别到图片中有儿童 |
800005006 | 年龄段-青少年 | 识别到图片中有青少年 |
800005007 | 年龄段-成年 | 识别到图片中有成年人 |
800005008 | 年龄段-老年 | 识别到图片中有老年人 |