Review Interface Configuration

You can check and review your images in the API Calls History. You need to configure a redirect URL to which the outcome of the review will be sent to via a POST request for further processing.

You can also configure customized labels. For instance, for the “Pornography Recognition” task, there are three predefined labels, namely “Pornographic”, “Sexy” and “Normal”, you might wish to perform a further filtering by adding labels “Advertisement”, “Political Content” to the review system.

Review interface management: Under “Task”, click on “Edit” to configure your redirect URL and custom labels.

Image Review
Parameter:
Parameter Name: Type Instructions
signature String We use the RSA-SHA256 algorithm to produce digital signature, the output is encoded with base64. To verify, download our public key of TUPU. then follow the steps below:
1. There are two keys in “data”: “signature” and “json”, where signature is the digital signature and json is the results you’re interested in.
2. You need to verify json by decoding signature with base64 and use it to verify json using RSA-SHA256.
After verification, parse json to a JSON object using JSON.parse() to obtain the final result, see below for specifications and click here for code examples.
reviews Array Object array, object example: [{filename: name of file to be reviewed, label: review outcome}]
Filename:1. if your url is invoked, here is the url 2. qiniu users composed of bucketid/file_key.
Label: our task’s classification definition is greater than or equal to 0, as described in the identification task list,negative value is your custom labels.
timestamp Number Current timestamp on the Unix server.
nonce Number A random number.
Picture Review Posts Examples of Data (refer to the example on "pornography")
        	{
                "reviews":
   				    [
   					{"filename":"00001.jpg",//Review Filename
                     "label":1},//Review Outcome
   					{"filename":"00002.jpg","label":-10},
   					{"filename":"00003.jpg","label":-11},
   					{"filename":"00004.jpg","label":-12}
                    ],
   				"nonce":"0.5251648891717196",//Random Number
   				"timestamp":1436955532 //Review Timestamp
   			}
    
Video Review Function
Parameter:
Parameter Name: Type Instructions
code Integer 0: Successful; 1: Authentication error; 2: Invalid model ID; 3: No file uploaded; 4: Invalid API version; 5: Deprecated API version; 6: Wrong secret ID; 7: Invalid task ID, you can’t perform this task with your secretId; 8: Secret ID errors; 9: No certificate uploaded; 10: Wrong pipe ID; 11: Callback parameter missing; 12: Time parameter error; 13: Task not configured or closed; 14: Image error: 404, 400, download failed, too large; 100: Server error; 101: Unknown error.
message String Code-related message
signature String We use the RSA-SHA256 algorithm to produce digital signature, the output is encoded with base64. To verify, download our public key of TUPU. then follow the steps below:
1. There are two keys in “data”: “signature” and “json”, where signature is the digital signature and json is the results you’re interested in.
2. You need to verify json by decoding signature with base64 and use it to verify json using RSA-SHA256.
After verification, parse json to a JSON object using JSON.parse() to obtain the final result, see below for specifications and click here for code examples.
review Object [{filename: name of file to be reviewed, label: review outcome}]
Filename:1. if your url is invoked, here is the url 2. qiniu users composed of bucketid/file_key.
Label: our task’s classification definition is greater than or equal to 0, either 0: pornography video, 1: normal video; negative value is your custom label.
timestamp Number Current timestamp on the Unix server.
nonce Number A random number.
Video Review Posts Data (take "pornography" as an example)
	{
        review: {
                label: '-10', //Review Outcome
   	    		filename: '00002.jpg'//Review Filename
                },
        nonce: '0.5753705033566803', //Random Number
  		timestamp: 1436955346 ,//Timestamp
        code: 0,
        message: 'success'
    }