Create faces timelines from videos
Project description
Terran timelines
Creating face-recognition timelines on videos has never been so easy! Using the power of Terran we can easily build these timelines.
Installation
This Streamlit component requires the following packages for working properly:
# Install dependencies
pip install --upgrade streamlit terran youtube-dl
# Install the component
pip install streamlit-terran-timeline
Usage
You can generate a timeline from any kind of video using the generate_timeline
function and then using the terran_timeline
Streamlit component like this:
import streamlit as st
from streamlit_terran_timeline import generate_timeline, terran_timeline
# Generate the timeline information
timeline = generate_timeline("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
#
# Display the timeline. If the users click, you'll get the exact second of
# the part of the timeline video. By default, it returns 0.
#
start_time = terran_timeline(timeline)
st.write(f"User clicked on second {start_time}")
You can also check out more examples in the examples folder.
Development process
- First, switch the
_RELEASE
variable fromstreamlit_terran_timeline/__init__.py
toFalse
. - Then, start a development server at
streamlit_terran_timeline/frontend
by runningnpm install
and thennpm run start
- Also, you'll need to install the package internally like
pip install -e .
- Finally, run streamlit on and use the component! For example, you can run
streamlit run streamlit_terran_timeline/examples/youtube.py
What's Terran?
Terran is human-perception library made by Pento 🚀
With Terran, making this demo was super easy! You can take a look at the generate_timeline
function to understand how Terran modules works with videos, face-recognition, and face-detection.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for streamlit-terran-timeline-0.0.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 402221c8ce4e0d26ee7f3239778c4e45f187cc95740186a7a7abe1fd1e904054 |
|
MD5 | 50e8bfd0e751d712a027a02219c78166 |
|
BLAKE2b-256 | 48a461f2f56fffa3b1f8d86a9d833385bc7a74db7ea0904360687ba88ee10ced |
Hashes for streamlit_terran_timeline-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d79303da4e3e5bbbdd2764ee48e8d49f4dc480d3f2e0e4554c0c1bed82636a |
|
MD5 | b273120451cb98801395219b58fbe39d |
|
BLAKE2b-256 | ff390e189cce832068f4cc619b614d119bd306e303398cfbb0ae7c57b0737e19 |