Loren commited on
Commit
92f417f
Β·
verified Β·
1 Parent(s): 5851bb4

Upload home_page.py

Browse files
Files changed (1) hide show
  1. home_page.py +39 -0
home_page.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import os
3
+ os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
4
+ st.markdown("""
5
+ <style>
6
+ .block-container {
7
+ padding-top: 1rem;
8
+ padding-bottom: 1rem;
9
+ padding-left: 1rem;
10
+ padding-right: 2rem;
11
+ }
12
+ </style>
13
+ """, unsafe_allow_html=True)
14
+
15
+ st.image('ocr.png', width=900)
16
+ st.write("")
17
+ st.write("")
18
+ lib = "This app allows you to **compare**, from a given image, the results of different solutions: \n*EasyOcr, PaddleOCR, MMOCR, Tesseract*"
19
+ st.markdown('''##### :blue-background[:orange[OCR]]:orange[, or Optical Character Recognition,] ''')
20
+ st.markdown('''is a computer vision task, \
21
+ which includes the detection of text areas, and the recognition of characters.''')
22
+ st.markdown(lib)
23
+
24
+ st.markdown('''**Before** evaluate OCR solutions, you can check if image quality is good enough for \
25
+ OCR task. If not, you could try to **enhance** it before, with some processing operations.
26
+
27
+
28
+ πŸ‘ˆ Select the :blue-background[:orange[**About**]] page from the sidebar for information on how the app works''')
29
+ st.markdown("πŸ‘ˆ or select the :blue-background[:orange[**Image processing**]] page to check and enhance your image")
30
+ st.markdown("πŸ‘ˆ or directly select the :blue-background[:orange[**OCR Comparator**]] page")
31
+
32
+
33
+ #import mim
34
+ #
35
+ #mim.install(['mmengine>=0.7.1,<1.1.0'])
36
+ #mim.install(['mmcv>=2.0.0rc4,<2.1.0'])
37
+ #mim.install(['mmdet>=3.0.rc5,<3.2.0'])
38
+ #mim.install(['mmocr'])
39
+