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
_RELEASEvariable fromstreamlit_terran_timeline/__init__.pytoFalse. - Then, start a development server at
streamlit_terran_timeline/frontendby runningnpm installand 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.
Metadata
Release files for streamlit-terran-timeline 0.0.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamlit-terran-timeline-0.0.19.tar.gz | 740.3 kB | Without provenance | Details for streamlit-terran-timeline-0.0.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_terran_timeline-0.0.19-py3-none-any.whl | Python 3 | none | any | Details for streamlit_terran_timeline-0.0.19-py3-none-any.whl |
Total release size: 4.0 MB
Release files / streamlit-terran-timeline-0.0.19.tar.gz
| Download URL | streamlit-terran-timeline-0.0.19.tar.gz |
|---|---|
| Size | 740.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb63585194fdaed7bba74da4d6a1a66d4c7491d6952761f1cdbe67295ed98351
|
|
BLAKE2b-256 checksum How to use checksums |
05371d775e1808dac249ad33d71a59d20a04b1f88510a6e8a1b03ad2cb993fc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / streamlit_terran_timeline-0.0.19-py3-none-any.whl
| Download URL | streamlit_terran_timeline-0.0.19-py3-none-any.whl |
|---|---|
| Size | 3.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6d177c0548704c1903165e07562c9c4bb30389dbbeabc5532a4c89842567595
|
|
BLAKE2b-256 checksum How to use checksums |
cc5805315047a4cd833fbe78b516a89f19dda1cb9f3f839216eaf3c11c0d4499
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for streamlit-terran-timeline 0.0.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.