Sports
The applications on this page demonstrate how the TwelveLabs Video Understanding Platform enhances sports analysis and viewer engagement.
Chessboxing AI Clips
Summary: “Chessboxing AI Clips” is a web application that enables you to semantically search, preview, and compile video clips from the hybrid sport of chessboxing, showcasing the adaptability of the TwelveLabs Video Understanding Platform to unconventional sports.
Description: The application, developed during a TwelveLabs Hackathon, is a React and TypeScript-based web application that offers the following key features:
- Semantic video search: You can search for specific moments in chessboxing videos using natural language queries.
- Clip preview: Before selecting clips for compilation, you can preview them using the integrated video player.
- Highlight reel creation: You can select multiple clips to create custom highlight reels and add AI-generated background music.
- Shareable content: The application generates unique URLs for each highlight reel, allowing you to share your compilations on social media platforms.
The application was developed by Ray Deck and Akshay Rakheja.
GitHub: Chessboxing AI Clips
Demo: Chessboxing AI Clips
Integration with TwelveLabs
The code below iterates through a list of video files, uploading each to the TwelveLabs Video Understanding platform if it hasn’t been uploaded yet. It invokes the client.task.create
function of the TwelveLabs Python SDK to create a video indexing task for each upload and monitors the task status until completion or failure:
The search_twelve_labs
function invokes the POST
method of the /search
endpoint with specific parameters and a query provided by the user:
Cricket Video Analyzer
Summary: “Cricket Video Analyzer” combines the capabilities of the TwelveLabs Video Understanding Platform with language models to offer comprehensive insights into a batter’s performance. It focuses on analyzing Glenn Maxwell of Australia as a case study.
Description: The application has been developed to meet the growing demand for sophisticated video analysis in cricket. Key features include:
- Video understanding: Uses the TwelveLabs API to analyze cricket matches, extracting detailed information about the batter’s playing style and techniques.
- Data augmentation: Integrates ball-by-ball commentary data from ESPN cricinfo APIs to enhance the video analysis with textual descriptions of the gameplay.
- Vector store creation: Builds a vector store from the combined dataset of video analysis and ball-by-ball commentary, enabling efficient information retrieval.
- AI-powered query answering: Utilizes GPT-4 in a Retrieval-Augmented Generation (RAG) setup to answer complex questions about a batter’s performance and style based on the analyzed data.
GitHub: Cricket video analyzer
Demo: Cricket Batsman Analyzer
The application was developed by Raghavan Muthuregunathan
Integration with TwelveLabs
The code below automates the process of extracting detailed batting information from multiple videos, creating a dataset for further analysis. It invokes the generate.text
method of the TwelveLabs Python SDK to generate a ball-by-ball commentary for Maxwell’s cricket innings. It compiles all the generated commentaries into a single text file named “maxwell_innings_video_analysis_concat.”
Ready Player N
Summary: Ready Player N is a Streamlit-based application that helps you discover unique features in hiking trails by analyzing hiking videos using the Marengo video understanding engine.
Description: Ready Player N streamlines the discovery of special attractions along hiking trails, such as waterfalls. The application indexes a set of hiking videos, allowing you to search for relevant information. In order to improve search accuracy, the queries are refined using Groq. In response, the application provides the following:
- A thumbnail of the matching video segment.
- A description of the featured attraction.
- A link to a hiking website with additional details.
- The ability to watch the matching video segment directly within the integrated player.
The application was developed by Bryce Hirschfeld, James Beasley, Matt Florence, Drakosfire Meigs, and Nooshin Hashemi.
SportsSnap
Summary: SportsSnap is a browser extension that enhances the sports viewing experience by providing real-time player, team, and game information overlays. It uses the TwelveLabs Video Understanding Platform for multimodal search.
Description: The application bridges the gap between video content and real-time sports data, offering instant access to detailed information while watching game highlights or replays.
The application was developed by Axel VandenHeuvel and Navan Chauhan.
Key features include:
- Real-time information overlay on sports videos
- Player and team statistics integration
- Game situation analysis
- Multimodal search capabilities
Integration with TwelveLabs
The integration with the TwelveLabs Video Understanding Platform provides the following functionalities:
-
Video understanding: Extract and analyze visual and audio information from sports content, improving the accuracy of video identification and content analysis.
-
Advanced search capabilities: Perform complex queries across various data types (visual, audio, and textual) to enhance the app’s ability to provide relevant information to users.
-
Improved video-to-game matching: Improve the accuracy of matching videos to specific games in ESPN’s database, addressing one of the main challenges faced during development.
-
Enhanced user experience: Provide users with more accurate and contextually relevant information, creating a more seamless and informative viewing experience.
SnowRivals
Summary: SnowRivals is an AI-powered application for skiers and snowboarders that analyzes trick videos, provides improvement feedback, and aligns with competition judging criteria. The application offers detailed insights and suggestions for enhancing trick execution and scoring.
Description: SnowRivals uses TwelveLabs’ video summarization and embedding technology to analyze snowboarding and skiing trick videos by extracting the following structured data:
- Trick identification
- Athlete performance
- Success and failure detection
- Timing information
The application was developed by Jeremy London, Francesco Vassalli, Neil Fonseca, and Reid Rumack.
SnowRivals was one of the winners at the AI Tinkerers Multimodal Hackathon .
GitHub: multimodal-ui and MultiModal.
Integration with TwelveLabs
The generate
function uses the Generate API suite to analyze a snowboarding competition video. It sends a POST
request to the /summarize
endpoint with the following parameters:
video_id
: Identifier of the video to analyze.type
: Set to “summary”.prompt
: Detailed instructions for generating a table of snowboarding tricks. It includes a predefined list of trick descriptions to aid in trick identification.temperature
: Controls randomness in the output (set to 0.5).
If successful, the function returns a summary table containing the following:
- Athlete: Identifier for the person performing each trick
- Trick: Name of the trick performed
- Result: Success or failure of the trick
- Half: Presence of a half pipe (“Yes”/“No”)
- Rail: Presence of a rail (“Yes”/“No”)
If the summary generation fails, the function prints an error message with the video_id
and the API response.
Smart Sweat AI
Summary: Smart Sweat AI is a mobile application that uses artificial intelligence to provide real-time feedback on exercise form during workouts. It uses the device’s camera to analyze your movements and offer personalized corrections and improvements.
Description: The application serves as a digital personal trainer, utilizing AI technology to:
- Analyze exercise form in real-time through your phone camera
- Provide instant feedback and corrections on posture and movement
- Offer a comprehensive library of exercises
- Track your progress and personalize workout experiences
Smart Sweat AI uses the TwelveLabs Generate API suite to provide advanced video analysis and personalized fitness instruction.
The application was developed by Jesse Neumann, Hannah Neumann, and Roblynn Neumann.
Smart Sweat AI was one of the winners at the AI Tinkerers Multimodal Hackathon .
Website: Smart Sweat AI
National Park Advisor
Summary: National Park Advisor is an application designed to assist you in researching and planning trips to National Parks.
Description: The application utilizes two distinct RAG pipelines:
- Park information pipeline: Retrieves and presents detailed information about specific National Parks. It uses a data store to search for park information efficiently. When the data store does not have sufficient data for a particular park, the application supplements it by searching the internet, ensuring comprehensive coverage.
- Trip planning pipeline: Assists in planning visits to National Parks.
Key features include:
- National Park research assistance
- Trip planning for National Parks
- Video content search and classification
- Transcript extraction from videos
- Internet search capability for supplemental park information
The application utilizes:
- TwelveLabs Python SDK: Video search, transcript extraction, and content classification.
- Pinecone: Stores data.
- Tavily: Internet search for additional content.
- Langgraph: Workflow management.
- Groq: Language model (LLM) for fast inference.
The application was developed by Sarah Kainec and Lexie Marinelli.
GitHub: ntl-park-advisor
Demo: National Park Advisor
Integration with TwelveLabs
The get_videos_from_twelve
function performs search requests and retrieves transcriptions for up to four videos that match the provided query. It returns a dictionary that includes all key-value pairs from the state
parameter, to which it adds the video URLs and transcription data:
The get_classified_videos_from_twelve
function classifies videos based on predefined, filters for the specified destination, and returns an updated state dictionary with URLs for up to four matching videos.