Th3BossC's picture
v1
651db78
raw
history blame contribute delete
483 Bytes
import streamlit as st
from image_detection import extract_number_plate_text
from PIL import Image
st.title("License Plate Recognition App πŸš—")
uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
if uploaded_file:
image = Image.open(uploaded_file)
st.image(image, caption="Uploaded image", use_container_width=True)
plate_text = extract_number_plate_text(image)
st.subheader("Extracted Number Plate: ")
st.write(plate_text)