Spaces:
Running
Running
add thres
Browse files
comic_panel_extractor/config.py
CHANGED
|
@@ -10,6 +10,9 @@ class Config:
|
|
| 10 |
vertical_threshold: int = 30
|
| 11 |
text_cood_file_name: str = "detect_and_group_text.json"
|
| 12 |
min_text_length: int = 2
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
def get_text_cood_file_path(config: Config):
|
| 15 |
return f'{config.output_folder}/{config.text_cood_file_name}'
|
|
|
|
| 10 |
vertical_threshold: int = 30
|
| 11 |
text_cood_file_name: str = "detect_and_group_text.json"
|
| 12 |
min_text_length: int = 2
|
| 13 |
+
min_area_ratio: float = 0.05
|
| 14 |
+
min_width_ratio: float = 0.05
|
| 15 |
+
min_height_ratio: float = 0.05
|
| 16 |
|
| 17 |
def get_text_cood_file_path(config: Config):
|
| 18 |
return f'{config.output_folder}/{config.text_cood_file_name}'
|