Create AI CM:soft_nudity task
This algorithm allows to identify explicit nudity and partial nudity too (including the presence of male and female faces and other uncovered body parts) in a video. Generic info about all capabilities and limits see in the generic “Content Moderation” method. What is Soft nudity detection? This method is often used to analyze UGC to determine whether videos can be published to all users, or to prohibit publication due to offensive and inappropriate content. Objects that can be detected:
ANUS_COVERED
ANUS_EXPOSED
ARMPITS_COVERED
ARMPITS_EXPOSED
BELLY_COVERED
BELLY_EXPOSED
BUTTOCKS_COVERED
BUTTOCKS_EXPOSED
FACE_FEMALE
FACE_MALE
FEET_COVERED
FEET_EXPOSED
FEMALE_BREAST_COVERED
FEMALE_BREAST_EXPOSED
FEMALE_GENITALIA_COVERED
FEMALE_GENITALIA_EXPOSED
MALE_BREAST_EXPOSED
MALE_GENITALIA_EXPOSED
This method allows you to identify faces and other body parts. Used to find complex combinations of what is happening in a video. Please note that the number of objects is more than in the hard-nudity-detection. The method is slower.How to use? The information is returned with the video frame number where it was found and probability of the detected object. Nudity detection is done using AI, so for each object a probability percentage is applied; objects with a probability of at least 30% are included in the response. Video processing speed is approximately 1:5. Example of detected nudity or body parts:
{
"`nudity_detected`": true,
"`detection_results`": [ "`FACE_FEMALE`", "`BELLY_COVERED`" ]
"frames": [
{
"confidence": 0.82,
"`frame_number`": 1,
"label": "`BELLY_COVERED`"
},...
]
}
Example response when nudity or body parts were not found:
{
"`nudity_detected`": false,
"`detection_results`": []
"frames": []
}
There is no universal recipe under which a video can be considered unacceptable, since different services host different types of videos for different audiences: adult content, children’s content, educational content, etc. You can determine the probability threshold at which you consider a video inappropriate. The easiest option is to run several of your videos and analyze the resulting probability coefficient.
Sometimes a detected object at the beginning of the video immediately makes it clear that there is no need to further analyze the video. For such cases, you can use stop tags. Use parameter “stop_objects
” to specify comma separated stop tags. It is also possible to specify % probability threshold value, above which the stop tag will be triggered.
{
"url": "...",
"`stop_objects`": "`BELLY_COVERED`:0.9,`FEMALE_GENITALIA_COVERED`"
}
Please note that the API only provides a set of data (json) about the objects found, so no video is generated. The demo video video (above ^) was specially created based on json from the API for visual demonstration and better perception of the possibilities.
Authorizations
API key for authentication.
Body
Response
Response returns ID of the created AI task. Using this AI task ID, you can check the status and get the video processing result. Look at GET /ai/results method.
The response is of type object
.