Hello Streamlit community!
I’m very excited to show you some experiments I’ve been working on last week. It’s a face-recognition timeline generator tool for any kind of video!
This means you can analyze how much time actors appear on a series or a movie, calculate if Trump is more present in CNN or FoxNews, and many more scenarios! The component is called streamlit-terran-timeline and it works this way:
import streamlit as st
from streamlit_terran_timeline import generate_timeline, terran_timeline
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)
And that’s it! You can also use the st.video
function if you want to display the video as well in your dashboard.
How did I build this? A few days ago my partners and I released Terran, a human perception library that makes super easy to build tools based images or videos.
We’d love to hear some opinions on this new component, let us know if you think it’s useful! Any feedback is more than welcome.
Thanks for your time!