A GUI short-video 'clip' indexer in 60 lines.
pip install -r requirements.txt
streamlit run app.py
Click the extract
after uploading your video, the key frames will be extracted and stored in DocumentArray
After extracting key frame, input your text query and click search
, and then you will get the related clips
Notice: remember to click extract
when you want to search for another video after you uploading it.
You can use a prompt to describe the scene you want to search for. The indexer will return several clips related to it.
The number of video clips you want to be returned.
The results with the similarity score lower than the threshold will not be returned.
The url of CLIP-as-service Server. The default value is a demo server loaded with ViT-L/14-336px provided by Jina.ai. You can also run your own CLIP-as-service server.
The token for accessing CLIP-as-service Server. More details for this can be found here