Update mdr_pdf_parser.py
Browse files- mdr_pdf_parser.py +5 -4
mdr_pdf_parser.py
CHANGED
@@ -1635,10 +1635,11 @@ class MDROcrEngine:
|
|
1635 |
cls_model_dir=paths["cls"],
|
1636 |
rec_model_dir=paths["rec"],
|
1637 |
rec_char_dict_path=paths["keys"],
|
1638 |
-
#
|
1639 |
-
det_db_thresh=0.
|
1640 |
-
det_db_box_thresh=0.
|
1641 |
-
|
|
|
1642 |
)
|
1643 |
try: self._text_system = _MDR_TextSystem(self._onnx_params); print(f"MDR OCR System initialized.")
|
1644 |
except Exception as e: print(f"ERROR initializing MDR OCR System: {e}"); self._text_system = None
|
|
|
1635 |
cls_model_dir=paths["cls"],
|
1636 |
rec_model_dir=paths["rec"],
|
1637 |
rec_char_dict_path=paths["keys"],
|
1638 |
+
# much lower thresholds so we actually get some candidate masks:
|
1639 |
+
det_db_thresh=0.1,
|
1640 |
+
det_db_box_thresh=0.3,
|
1641 |
+
drop_score=0.1,
|
1642 |
+
use_angle_cls=False,
|
1643 |
)
|
1644 |
try: self._text_system = _MDR_TextSystem(self._onnx_params); print(f"MDR OCR System initialized.")
|
1645 |
except Exception as e: print(f"ERROR initializing MDR OCR System: {e}"); self._text_system = None
|