From fa4a9962bd2bec09c55d676b15594b0a28c6e611 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Sat, 20 Feb 2021 09:53:12 +0800 Subject: [PATCH] fix dilation --- paddleocr.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paddleocr.py b/paddleocr.py index db24aa59..7c126261 100644 --- a/paddleocr.py +++ b/paddleocr.py @@ -146,7 +146,8 @@ def parse_args(mMain=True, add_help=True): # DB parmas parser.add_argument("--det_db_thresh", type=float, default=0.3) parser.add_argument("--det_db_box_thresh", type=float, default=0.5) - parser.add_argument("--det_db_unclip_ratio", type=float, default=2.0) + parser.add_argument("--det_db_unclip_ratio", type=float, default=1.6) + parser.add_argument("--use_dilation", type=bool, default=False) # EAST parmas parser.add_argument("--det_east_score_thresh", type=float, default=0.8) @@ -193,7 +194,8 @@ def parse_args(mMain=True, add_help=True): det_limit_type='max', det_db_thresh=0.3, det_db_box_thresh=0.5, - det_db_unclip_ratio=2.0, + det_db_unclip_ratio=1.6, + use_dilation=False, det_east_score_thresh=0.8, det_east_cover_thresh=0.1, det_east_nms_thresh=0.2, -- GitLab