Commit
·
eff2b95
1
Parent(s):
28f17d5
refactor app.py
Browse files
app.py
CHANGED
@@ -236,16 +236,16 @@ EXAMPLES_TEST = [
|
|
236 |
|
237 |
DESC_DICT = {
|
238 |
"concatenate_pages": "Whether to merge pages",
|
239 |
-
"use_formula_recognition": "
|
240 |
"use_chart_recognition": "Use the PP-Chart2Table model to parse and convert the charts in the document into tables.",
|
241 |
-
"use_doc_orientation_classify": "
|
242 |
-
"use_doc_unwarping": "
|
243 |
-
"use_textline_orientation": "
|
244 |
-
"use_region_detection": "
|
245 |
-
"use_seal_recognition": "
|
246 |
-
"use_table_recognition": "
|
247 |
"layout_threshold_nb": "The threshold used to filter out low confidence prediction results for the layout region, ranging from 0 to 1. If there are missed regions, this value can be appropriately lowered.",
|
248 |
-
"layout_nms": "
|
249 |
"layout_unclip_ratio_nb": "Use this method to expand each region of the layout. The larger the value, the larger the expanded region.",
|
250 |
"text_det_limit_type": "[Short side] means to ensure that the shortest side of the image is not less than [Image side length limit for text detection], and [Long side] means to ensure that the longest side of the image is not greater than [Image side length limit for text detection].",
|
251 |
"text_det_limit_side_len_nb": "For the side length limit of the text detection input image, for large images with dense text, if you want more accurate recognition, you should choose a larger size. This parameter is used in conjunction with the [Image side length limit type for text detection]. Generally, the maximum [Long side] is suitable for scenes with large images and text, and the minimum [Short side] is suitable for document scenes with small and dense images.",
|
|
|
236 |
|
237 |
DESC_DICT = {
|
238 |
"concatenate_pages": "Whether to merge pages",
|
239 |
+
"use_formula_recognition": "Enable the formula recognition subpipeline. When enabled, formulas will be converted to LaTeX code; otherwise, they will be recognized as plain text.",
|
240 |
"use_chart_recognition": "Use the PP-Chart2Table model to parse and convert the charts in the document into tables.",
|
241 |
+
"use_doc_orientation_classify": "Enable the document image orientation classification module. When enabled, you can correct distorted images, such as wrinkles, tilts, etc.",
|
242 |
+
"use_doc_unwarping": "Enable the document unwarping module. When enabled, you can correct distorted images, such as wrinkles, tilts, etc.",
|
243 |
+
"use_textline_orientation": "Enable the text line orientation classification module to support the distinction and correction of text lines of 0 degrees and 180 degrees.",
|
244 |
+
"use_region_detection": "Enable the layout region detection. When enabled, it can handle complex layouts such as newspapers and magazines.",
|
245 |
+
"use_seal_recognition": "Enable the seal text recognition subpipeline. When enabled, seals will be recognized as text; otherwise, they will be treated as figures.",
|
246 |
+
"use_table_recognition": "Enable the table recognition subpipeline. When enabled, tables will be extracted in HTML format; otherwise, they will be treated as figures.",
|
247 |
"layout_threshold_nb": "The threshold used to filter out low confidence prediction results for the layout region, ranging from 0 to 1. If there are missed regions, this value can be appropriately lowered.",
|
248 |
+
"layout_nms": "Enable layout region detection model uses NMS post-processing. When enabled, nested boxes or those with large intersections can be removed.",
|
249 |
"layout_unclip_ratio_nb": "Use this method to expand each region of the layout. The larger the value, the larger the expanded region.",
|
250 |
"text_det_limit_type": "[Short side] means to ensure that the shortest side of the image is not less than [Image side length limit for text detection], and [Long side] means to ensure that the longest side of the image is not greater than [Image side length limit for text detection].",
|
251 |
"text_det_limit_side_len_nb": "For the side length limit of the text detection input image, for large images with dense text, if you want more accurate recognition, you should choose a larger size. This parameter is used in conjunction with the [Image side length limit type for text detection]. Generally, the maximum [Long side] is suitable for scenes with large images and text, and the minimum [Short side] is suitable for document scenes with small and dense images.",
|