调整检测阈值

This commit is contained in:
2024-07-25 14:36:01 +08:00
parent ef1d20ab7e
commit faf3c33733
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ def visual_model_test(model_type, test_img, task_path, schema):
temp_files_paths.append(temp_file.name)
parsed_doc = util.get_ocr_layout(
PaddleOCR(det_db_box_thresh=0.3, det_limit_side_len=1248, drop_score=0.3),
PaddleOCR(det_db_box_thresh=0.1, det_limit_side_len=1248, drop_score=0.3),
temp_file.name)
# parsed_doc = doc_parser.parse({"doc": temp_file.name})["layout"]
if img["x_offset"] or img["y_offset"]: