fiexed indentation error
Browse files- app_pages/ocr_comparator.py +12 -9
app_pages/ocr_comparator.py
CHANGED
|
@@ -684,17 +684,20 @@ def app():
|
|
| 684 |
#@st.experimental_memo(suppress_st_warning=True, show_spinner=False)
|
| 685 |
@st.cache_data
|
| 686 |
def ppocr_recog(in_list_images, in_params):
|
| 687 |
-
|
|
|
|
|
|
|
| 688 |
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
|
|
|
| 698 |
## ------- PPOCR Text recognition
|
| 699 |
out_list_text_ppocr = []
|
| 700 |
out_list_confidence_ppocr = []
|
|
|
|
| 684 |
#@st.experimental_memo(suppress_st_warning=True, show_spinner=False)
|
| 685 |
@st.cache_data
|
| 686 |
def ppocr_recog(in_list_images, in_params):
|
| 687 |
+
"""
|
| 688 |
+
"""
|
| 689 |
+
Recognition with PPOCR
|
| 690 |
|
| 691 |
+
Args:
|
| 692 |
+
in_list_images (list) : list of cropped images
|
| 693 |
+
in_params (dict) : parameters for recognition
|
| 694 |
|
| 695 |
+
Returns:
|
| 696 |
+
list : list of recognized text
|
| 697 |
+
list : list of recognition confidence
|
| 698 |
+
string/Exception : recognition status
|
| 699 |
+
"""
|
| 700 |
+
"""
|
| 701 |
## ------- PPOCR Text recognition
|
| 702 |
out_list_text_ppocr = []
|
| 703 |
out_list_confidence_ppocr = []
|