diff --git a/deploy/cpp_infer/tools/config.txt b/deploy/cpp_infer/tools/config.txt index 18360086787f5ee8fc6d32f9d006b5fc3b7b47b9..17b507791cefbf6c6c15974ba92bfc0ac6b60e09 100644 --- a/deploy/cpp_infer/tools/config.txt +++ b/deploy/cpp_infer/tools/config.txt @@ -14,7 +14,7 @@ det_db_unclip_ratio 2.0 det_model_dir ../model/det # cls config -use_angle_cls 1 +use_angle_cls 0 cls_model_dir ../model/cls cls_thresh 0.9 diff --git a/tools/infer/utility.py b/tools/infer/utility.py index 9e2c29100d178e8920d4b58343ee00b166b28494..ac04c2bd2aeb0e48d1db2bbf83de96af6863485d 100755 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -73,7 +73,7 @@ def parse_args(): parser.add_argument("--use_space_char", type=bool, default=True) # params for text classifier - parser.add_argument("--use_angle_cls", type=str2bool, default=True) + parser.add_argument("--use_angle_cls", type=str2bool, default=False) parser.add_argument("--cls_model_dir", type=str) parser.add_argument("--cls_image_shape", type=str, default="3, 48, 192") parser.add_argument("--label_list", type=list, default=['0', '180'])