QCVB_ProcessUGCFile
for UGSV porn detection scenarios. If you use this task flow and specify to perform AI-based porn detection, the porn detection task will be executed first, and whether to perform subsequent operations (such as transcoding, watermarking, and screencapturing) will be determined based on the porn detection result. Template ID | Porn Processing | Sample Rate |
10 | End the task flow (operations such as transcoding, watermarking, and screencapturing will not be executed subsequently) | For videos whose duration is less than 500 seconds, sampling is performed once per second; for videos whose duration is greater than or equal to 500 seconds, sampling is performed once every 1% of the duration |
20 | Continue executing the task flow | None |
/*** Generate a signature that contains an AI-based porn detection task*/function getUploadSignature(req, res) {res.json({code: 0,message: 'ok',data: {// Specify the template parameters and task flow during the uploadsignature: gVodHelper.createFileUploadSignature({ procedure: 'QCVB_SimpleProcessFile({1,1,1,1})' })}});}
/*** Get the AI-based porn detection result of the event*/function getAiReviewResult(event){let data = event.eventContent.data;if(data.aiReview){return data.aiReview;}return {};}