添加形近字处理
This commit is contained in:
@@ -21,5 +21,10 @@ NAME_KEYS = [
|
||||
]
|
||||
ID_CARD_NUM_KEYS = [{"key": "身份证号", "length": 19}, ]
|
||||
|
||||
# 形近字,只对姓名涂抹生效
|
||||
SIMILAR_CHAR = {
|
||||
"凤": ["风"]
|
||||
}
|
||||
|
||||
# 如果不希望识别出空格,可以设置use_space_char=False。做此项设置一定要测试,2.7.3版本此项设置有bug,会导致识别失败
|
||||
OCR = PaddleOCR(use_angle_cls=False, show_log=False, det_db_box_thresh=0.3)
|
||||
|
||||
Reference in New Issue
Block a user