提示流水线不可用 #3665
Unanswered
Crick-Zhou
asked this question in
Q&A
提示流水线不可用
#3665
Replies: 1 comment
-
应该是paddlex的版本不对,之前的版本确实不支持 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在调用doc_preprocessor时提示The pipeline (doc_preprocessor) does not exist! Please use a pipeline name or a config file path!
调用代码
def preprocess_document(input_image_path, output_dir="./output"):
"""
使用 PaddleX 的文档预处理产线(doc_preprocessor)对输入图片进行方向校正
:param input_image_path: 输入的文档图片路径
:param output_dir: 处理后图片的保存路径
:return: 处理后的图片路径
"""
try:
# 创建预处理 pipeline
pipeline = create_pipeline(pipeline="doc_preprocessor")
Beta Was this translation helpful? Give feedback.
All reactions