This algorithm allows to identify various sporting activities in a video. Generic info about all capabilities and limits see in the generic “Content Moderation” method.
What is Sports activity detection?
Sports activity detection by AI involves using machine learning and computer vision technologies to automatically identify, analyze, and interpret various activities within sports and generic videos. This can include detecting specific types, actions, events, and moments.
This model operates on a video sequence (and not on images as most of the used computer vision models). Make sure your video is at least 10-15 seconds long.
Sports activities can be detected:
Use cases:

How to use?
The information is returned with the video frame number where it was found and probability of the detected activty. Identification is done using AI, so for each activity a probability percentage is applied; activities with a probability of at least 30% are included in the response.
Video processing speed is approximately 1:5.
Example of detected sports activity:
{
"sport_detected": true,
"detection_results": [ "shooting goal (soccer)" ],
"frames": [
{
"label": "shooting goal (soccer)",
"frame_number": 98,
"confidence": 0.99
},...
]
}
Example response when sports activities were not found:
{
"sport_detected": false,
"detection_results": []
"frames": []
}
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.
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Name of the task to be performed
content-moderation URL to the MP4 file to analyse. File must be publicly accessible via HTTP/HTTPS.
Model for analysis (content-moderation only). Determines what exactly needs to be found in the video. AI content moderation with types of sports activity detection
sport Meta parameter, designed to store your own identifier. Can be used by you to tag requests from different end-users. It is not used in any way in video processing.
256Meta parameter, designed to store your own extra information about a video entity: video source, video id, etc. It is not used in any way in video processing.
For example, if an AI-task was created automatically when you uploaded a video with the AI auto-processing option (nudity detection, etc), then the ID of the associated video for which the task was performed will be explicitly indicated here.
4096Response 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.
ID of the created AI task, from which you can get the execution result