PornFlag
to 1
to create a screencapturing template with porn detection enabled.TemplateId
to the ID of the screencapturing template created in step 1 to associate the template with the target AppId
, DomainName
, AppName
, and StreamName
.PornCensorshipNotifyUrl
to your domain name to create a porn detection callback template.TemplateId
to the ID of the callback template created in step 1 to associate the template with the target AppId
, DomainName
, and AppName
.type
field indicates whether a live stream contains pornographic content.type
field. Parameter | Required | Data Type | Description |
streamId | No | String | The stream name. |
channelId | No | String | The channel ID. |
img | Yes | String | The link of the suspicious image. |
type | Yes | Array | The value of the label with the highest priority in the detection result. For details, see the description in label . |
score | Yes | Array | The confidence score. |
ocrMsg | No | String | The OCR result (if any). |
suggestion | Yes | String | The suggestion. Valid values: Block Review Pass |
label | Yes | String | The label with the highest priority in the detection result ( LabelResults ). This is the result generated by the model. Please handle different types of violations based on your business needs. |
subLabel | Yes | String | The sub-label of the label with the highest priority in the detection result, such as porn - sexual acts. If no sub-labels are hit, this field will be empty. |
labelResults | No | The label hit results generated by the category model, including the detection of pornographic content, ads, terrorist content, and politically sensitive content. <br>Note: This field may return null , indicating that no valid values can be obtained. | |
objectResults | No | The detection results generated by the object model, including the label name, hit score, coordinates, scenario, and suggestion for suspicious objects, advertising logos, QR codes, etc. For details, see the data structure of ObjectResults . Note: This field may return null , indicating that no valid values can be obtained. | |
ocrResults | No | The OCR result, including the text recognized, the text coordinates, and the suggestion. For details, see the data structure of OcrResults .Note: This field may return null , indicating that no valid values can be obtained. | |
libResults | No | The detection results generated by the block/allowlist library. | |
screenshotTime | Yes | Number | The time when the screenshot was taken. |
sendTime | Yes | Number | The Unix timestamp when the request was sent. |
stream_param | No | String | The push parameter. |
app | No | String | The push domain. |
appid | No | Number | The application ID. |
appname | No | String | The push path. |
Parameter | Type | Description |
Scene | String | The scene identified by the model, such as advertising, pornographic, and harmful. |
Suggestion | String | The operation suggested by the system for the current label. Please handle different types of violations based on your business needs. Valid values: Block Review Pass |
label | String | The label hit. |
SubLabel | String | The sub-label. |
Score | Integer | The confidence score for the label. |
Details | Array of LabelDetailItem | The sub-label hit details. |
Parameter | Type | Description |
Id | Integer | The sequence ID. |
Name | String | The sub-label. |
Score | Integer | The sub-label score. Value range: 0-100. |
Parameter | Type | Description |
Scene | String | The object scene identified, such as QR code, logo, and OCR. |
Suggestion | String | The operation suggested by the system for the current label. Please handle different types of violations based on your business needs. Valid values: Block Review Pass |
label | String | The label hit. |
SubLabel | String | The sub-label. |
Score | Integer | The sub-label score. Value range: 0-100 |
Names | Array of String | The object names. |
Details | Array of ObjectDetail | The object detection details. |
Parameter | Type | Description |
Id | Integer | The ID of the object identified. |
Name | String | The label hit. |
Value | String | The value or content of the label hit. For example, if the label is QR code ( QrCode ), this parameter is the URL of the QR code. |
Score | Integer | The score of the label hit. Value range: 0-100. For example, QrCode 99 indicates a high likelihood that the content is a QR code. |
Location | The coordinates (of the top-left corner), dimensions, and rotation of the object detection frame. |
Parameter | Type | Description |
X | Float | The horizontal coordinate of the top-left corner. |
Y | Float | The vertical coordinate of the top-left corner. |
Width | Float | The width. |
Height | Float | The height. |
Rotate | Float | The rotation angle of the detection frame. |
Parameter | Type | Description |
Scene | String | The scene identified. Default value: OCR . |
Suggestion | String | The operation suggested by the system for the label with the highest priority. Please handle different types of violations based on your business needs. Valid values: Block Review Pass |
label | String | The label hit. |
SubLabel | String | The sub-label. |
Score | Integer | The confidence score of the sub-label. Value range: 0-100. |
Text | String | The text. |
Details | Array of OcrTextDetail | The OCR details. |
Parameter | Type | Description |
Text | String | The text recognized (up to 5,000 bytes). |
label | String | The label hit. |
Keywords | Array of String | The keywords hit under the label. |
Score | Integer | The confidence score of the label. Value range: 0-100. |
Location | The OCR text coordinates. |
Parameter | Type | Description |
Scene | String | The scene identified. Default value: Similar . |
Suggestion | String | The operation suggested by the system. Please handle different types of violations based on your business needs. Returned values: Block Review Pass |
label | String | The label hit. |
SubLabel | String | The sub-label. |
Score | Integer | The confidence score. Value range: 0-100. |
Details | Array of LibDetail | The block/allowlist library detection details. |
Parameter | Type | Description |
Id | Integer | The sequence ID. |
ImageId | String | The image ID. |
label | String | The label hit. |
Tag | String | A custom label. |
Score | Integer | The confidence score. Value range: 0-100. |
{"ocrMsg": "","type": [1],"socre": 99,"screenshotTime": 1610640000,"level": 0,"img": "http://1.1.1.1/download/porn/test.jpg","abductionRisk": [],"faceDetails": [],"sendTime": 1615859827,"suggestion": "Block","label": "Porn","subLabel": "PornHigh","labelResults": [{"HitFlag": 0,"Scene": "Illegal","Suggestion": "Pass","Label": "Normal","SubLabel": "","Score": 0,"Details": []}, {"HitFlag": 1,"Scene": "Porn","Suggestion": "Block","Label": "Porn","SubLabel": "PornHigh","Score": 99,"Details": [{"Id": 0,"Name": "PornHigh","Score": 99}, {"Id": 1,"Name": "WomenChest","Score": 99}]}, {"HitFlag": 0,"Scene": "Sexy","Suggestion": "Pass","Label": "Normal","SubLabel": "","Score": 0,"Details": []}, {"HitFlag": 0,"Scene": "Terror","Suggestion": "Pass","Label": "Normal","SubLabel": "","Score": 0,"Details": []}],"objectResults": [{"HitFlag": 0,"Scene": "QrCode","Suggestion": "Pass","Label": "Normal","SubLabel": "","Score": 0,"Names": [],"Details": []}, {"HitFlag": 0,"Scene": "MapRecognition","Suggestion": "Pass","Label": "Normal","SubLabel": "","Score": 0,"Names": [],"Details": []}, {"HitFlag": 0,"Scene": "PolityFace","Suggestion": "Pass","Label": "Normal","SubLabel": "","Score": 0,"Names": [],"Details": []}],"ocrResults": [{"HitFlag": 0,"Scene": "OCR","Suggestion": "Pass","Label": "Normal","SubLabel": "","Score": 0,"Text": "","Details": []}],"streamId": "teststream","channelId": "teststream","stream_param": "txSecret=40f38f69f574fd51126c421a3d96c374&txTime=5DEBEC80","app": "5000.myqcloud.com","appname": "live","appid": 10000,"event_type": 317,"sign": "ac920c3e66**********78cf1b5de2c63","t": 1615860427}
DomainName
, AppName
, and StreamName
bound to the screencapturing template ID to delete the screencapturing rule.
Was this page helpful?