|
|
@@ -109,14 +109,14 @@ def process_images_unified(image_paths: List[str],
|
|
|
predict_kwargs = {
|
|
|
'input': img_path,
|
|
|
'useLayoutDetection': kwargs.get('use_layout_detection', False),
|
|
|
- 'useDocOrientationClassify': kwargs.get('use_doc_orientation', False),
|
|
|
+ 'useDocOrientationClassify': kwargs.get('use_doc_orientation', True),
|
|
|
'useDocUnwarping': kwargs.get('use_doc_unwarping', False),
|
|
|
}
|
|
|
else:
|
|
|
# PP-StructureV3 使用下划线命名
|
|
|
predict_kwargs = {
|
|
|
'input': img_path,
|
|
|
- 'use_doc_orientation_classify': kwargs.get('use_doc_orientation', True), # 流水分析场景关闭方向分类
|
|
|
+ 'use_doc_orientation_classify': kwargs.get('use_doc_orientation', True),
|
|
|
'use_doc_unwarping': kwargs.get('use_doc_unwarping', False),
|
|
|
'use_layout_detection': kwargs.get('use_layout_detection', True),
|
|
|
'use_seal_recognition': kwargs.get('use_seal_recognition', True),
|