Crop and Seek demonstrates the power of advanced video search capabilities using the Twelve Labs API. By implementing both text and image-based search, along with the unique image cropping feature, this application provides a flexible and powerful tool for discovering relevant video content.
⭐️ Check out the Demo!
- Next.js
- React
- Tailwind CSS
- Twelve Labs API
The images you wish to use must meet the following requirements:
- Format: JPEG and PNG. (* Public image URLs should end with .jpg, .jpeg, or .png)
- Dimension: Must be larger than 378x378 pixels.
- Size: Must not exceed 5MB.
- Object visibility: Ensure that the objects of interest are visible and occupy at least 50% of the video frame. This helps the platform accurately identify and match the objects.
Visit Twelve Labs Playground to generate your API Key
- Upon signing up, you'll receive free credits to index up to 10 hours of video content!
- Check here on how to create an index and get the index id
- Make sure you check “Logo” and “Text in Video” under “More options”
TWELVELABS_API_KEY=<YOUR API KEY>
TWELVELABS_INDEX_ID=<YOUR INDEX ID>
- Stop and run the Repl
- Clone the current repo
git clone [email protected]:mrnkim/crop-seek.git
- Create
.env
file in the root directory and provide the values for each key
TWELVELABS_API_KEY=<YOUR API KEY>
TWELVELABS_INDEX_ID=<YOUR INDEX ID>
- Install and start the client
npm install
npm run dev
- Open http://localhost:3000 with your browser to see the result.