PaddleOCR
English
legal
Gideon-0-1's picture
Upload 4 files
8085370 verified
Raw History Blame Contribute Delete
600 Bytes
import streamlit as st
st.set_page_config(page_icon=":car:", layout="wide")
st.title("License Plate Detection")
col1 = st.columns(1)[0]
with col1:
run_button = st.button("Run Detection")
video_col = st.empty()
VIDEO_FEED_URL = "http://localhost:5000/detect"
video_placeholder = video_col.empty()
if run_button:
video_placeholder.markdown(
f'<img src="{VIDEO_FEED_URL}" width="100%" style="max-width:750px; border-radius:10px;">',
unsafe_allow_html=True,
)
else:
st.info("Click the 'Run Detection' toggle to start the license plate detection.")