SWHL commited on
Commit
c24c769
·
1 Parent(s): 49b00b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -101,14 +101,17 @@ def inference(img_path, box_thresh=0.5, unclip_ratio=1.6, text_score=0.5):
101
 
102
 
103
  title = 'RapidOCR Demo (捷智OCR)'
104
- description = gr.Markdown(
105
- """
106
  - Docs: [Docs](https://rapidocr.rtfd.io/)
 
107
  - Parameters docs: [link](https://github.com/RapidAI/RapidOCR/tree/main/python#configyaml%E4%B8%AD%E5%B8%B8%E7%94%A8%E5%8F%82%E6%95%B0%E4%BB%8B%E7%BB%8D)
 
108
  - `box_thresh`: 检测到的框是文本的概率,值越大,框中是文本的概率就越大。存在漏检时,调低该值。取值范围:[0, 1.0]
 
109
  - `unclip_ratio`: 控制文本检测框的大小,值越大,检测框整体越大。在出现框截断文字的情况,调大该值。取值范围:[1.5, 2.0]
 
110
  - `text_score`: 文本识别结果是正确的置信度,值越大,显示出的识别结果更准确。存在漏检时,调低该值。取值范围:[0, 1.0]
111
- """)
112
 
113
  article = """<p style='text-align: center'> Completely open source, free and support offline deployment of multi-platform and multi-language OCR SDK <a href='https://github.com/RapidAI/RapidOCR'>Github Repo</a></p>
114
  """
 
101
 
102
 
103
  title = 'RapidOCR Demo (捷智OCR)'
104
+ description = """
 
105
  - Docs: [Docs](https://rapidocr.rtfd.io/)
106
+
107
  - Parameters docs: [link](https://github.com/RapidAI/RapidOCR/tree/main/python#configyaml%E4%B8%AD%E5%B8%B8%E7%94%A8%E5%8F%82%E6%95%B0%E4%BB%8B%E7%BB%8D)
108
+
109
  - `box_thresh`: 检测到的框是文本的概率,值越大,框中是文本的概率就越大。存在漏检时,调低该值。取值范围:[0, 1.0]
110
+
111
  - `unclip_ratio`: 控制文本检测框的大小,值越大,检测框整体越大。在出现框截断文字的情况,调大该值。取值范围:[1.5, 2.0]
112
+
113
  - `text_score`: 文本识别结果是正确的置信度,值越大,显示出的识别结果更准确。存在漏检时,调低该值。取值范围:[0, 1.0]
114
+ """
115
 
116
  article = """<p style='text-align: center'> Completely open source, free and support offline deployment of multi-platform and multi-language OCR SDK <a href='https://github.com/RapidAI/RapidOCR'>Github Repo</a></p>
117
  """