Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,8 @@ def run_ocrd_pipeline(img_path, font_size=30, binarize_mode='detailed', min_pixe
|
|
11 |
|
12 |
Parameters:
|
13 |
img_path (str): Path to the image file.
|
14 |
-
font_size (int, optional): Font size to be used in text overlay.
|
|
|
15 |
binarize_mode (str): Mode to be used for image binarization. Can be 'detailed', 'fast', or 'no'.
|
16 |
min_pixel_sum (int, optional): Minimum sum of pixels to consider a text line segmentation for extraction.
|
17 |
If 'default', default values are applied.
|
|
|
11 |
|
12 |
Parameters:
|
13 |
img_path (str): Path to the image file.
|
14 |
+
font_size (int, optional): Font size to be used in text overlay. Can be 'small', 'medium', 'large' or 'adjusted'.
|
15 |
+
If set to 'adjusted', the font size is dynamically adjusted to fit the text within its bounding box width.
|
16 |
binarize_mode (str): Mode to be used for image binarization. Can be 'detailed', 'fast', or 'no'.
|
17 |
min_pixel_sum (int, optional): Minimum sum of pixels to consider a text line segmentation for extraction.
|
18 |
If 'default', default values are applied.
|