HTTP response

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
imageSpam json array Resut message
code Number Status code, defined as: 0: successful detection, 1: image download failed, 2: image format error, 3: other
result Number 0: Pass, 1: Recommended for review, 2: Fail

imageSpams:

Field name Type Description
code Number Status code, defined as: 0: successful detection, 1: image download failed, 2: image format error, 3: other
result Number 0: Pass, 1: Recommended for review, 2: Fail
tags json array Classified information

extraInfo:

Field name Type Description
cartoonScore Number The style is a cartoon score, 0-100, the higher the score, the closer to the cartoon style
genderResult json array Gender and its confidence
+gender String male/female
+conference Number Gender confidence
numHuman Number The number of human detection detections
numFace Number Number of face detection detections

tags:

Field name Type Description
tag Number tags meaning:
100:Politics, 110:Violence, 120:Prohibited, 130:porn, 140:sexy, 150:ad, 160:values, 180:minor, 190:tamper, 200:QR code, 300:logo, 400:ocr, 666:disgust, 900:others, 999:customize
level Number Classification level, 0: normal, 1: suspected, 2: abnormal
confidence Number Confidence score: values between 0-100. 100 is the highest confidence level, and 0 is the lowest confidence level. If the level is suspected or abnormal, the greater the confidence level, the higher the possibility of spam
tagName String Detect first-level type names for image hits
tagNameEn String Detect first-level type names for image hits(English)
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)
level Number Classification level, 0: normal, 1: suspected, 2: abnormal
confidence Number Confidence score: values between 0-100. 100 is the highest confidence level, and 0 is the lowest confidence level. If the level is suspected or abnormal, the greater the confidence level, the higher the possibility of spam
wordList array of strings OCR only (tag=400)
  • Response example 1:

    JSON response

      {
          "errorCode": 0, "code": 0, "result": 2, "imageSpams": [{"code": 0, "result": 2, "tags": [{"tag": 200, "level": 2, "confidence": 76}]}], "gender": [], "taskId": "Telnet-test_d56b5c2d38614be3bf1a1e98663d3c29_1653017203620", "extraInfo": {"cartoonScore": 7, "genderResult": [], "numHuman": 0, "numFace": 0}
      }
    

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
401 2000 Missing Parameter
401 2001 Invalid Parameter