Skip to content

Search the content of a video with a text or image query

License

Notifications You must be signed in to change notification settings

bwconrad/video-content-search

Repository files navigation

Video Content Search

Hugging Face Spaces

An application for searching videos to find frames that match a text or image query. This application utilizes ConvNext CLIP models from OpenCLIP to compare video frames with the feature representation of a user text or image query.

Requirements

  • Python 3.8+
  • pip install -r requirements

Usage

Web App

The application is available in the Hugging Face Space here.

Or you can run it locally by doing the following:

  1. Run python video-search-app.py and open the given URL in a browser.
  2. Select either the "Text Query Search" or "Image Query Search" tab.
  3. Upload your video and write a text query or upload a query image.
  4. Adjust the parameters and click submit.
  • Note: The web app can have performance issues with long videos (more than a few minutes). Instead use the notebook for longer videos.

Notebook

video-search-notebook.ipynb provides an alternate UI with a few extra features.