统一照片脱敏的图片流转方式

This commit is contained in:
2024-10-11 15:17:26 +08:00
parent 0fc0c80d6f
commit a1dea6f29c
4 changed files with 35 additions and 51 deletions

View File

@@ -7,7 +7,9 @@ from log import LOGGING_CONFIG
from utils import process_request
app = Flask(__name__)
OCR = PaddleOCR(use_angle_cls=False, show_log=False, gpu_id=0, det_db_box_thresh=0.3)
# 如果不希望识别出空格可以设置use_space_char=False。做此项设置一定要测试2.7.3版本此项设置有bug会导致识别失败
OCR = PaddleOCR(use_angle_cls=False, show_log=False, det_db_thresh=0.1, det_db_box_thresh=0.3, det_limit_side_len=1248,
drop_score=0.3)
@app.route('/', methods=['POST'])