# -*- encoding: utf-8 -*- # @Author: SWHL # @Contact: liekkaskono@163.com import numpy as np import streamlit as st from PIL import Image if __name__ == '__main__': st.markdown("

Rapid Structure

", unsafe_allow_html=True) st.markdown("""

""", unsafe_allow_html=True) img_suffix = ["png", "jpg", "jpeg"] st.markdown('##### rapid-orientation (文档图像分类) demo') img_empty = st.empty() img_file_buffer = st.file_uploader("Upload an image", type=img_suffix, label_visibility='hidden') if img_file_buffer: image = Image.open(img_file_buffer) img_array = np.array(image) if image: img_empty.image(image, use_column_width=True) st.markdown('##### rapid-layout (版面分析) demo') st.markdown('##### rapid-table (表格还原) demo')