Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{'err_no': 10000, 'err_msg': 'Log_id: 0 Raise_msg: RecOp object has no attribute sorted_boxes ClassName: Op._run_preprocess.<locals>.preprocess_help FunctionName: preprocess_help', 'key': [], 'value': [], 'tensors': []} #1785

Open
1037419569 opened this issue May 18, 2022 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@1037419569
Copy link

paddle serving 的pipline中的webservice 文本识别部分之前有一个文本框排序的函数,但是我显示说没有这个东西,但是我这个是把示例复制下来的。
图片
图片

@TeslaZhao
Copy link
Collaborator

您安装的Paddle Serving的版本是多少

@TeslaZhao TeslaZhao self-assigned this May 23, 2022
@TeslaZhao TeslaZhao added the question Further information is requested label May 23, 2022
@2022WPJ
Copy link

2022WPJ commented Jul 10, 2023

遇到同样的问题,使用的paddlepaddle/serving docker镜像0.9.0-runtime,按照这个教程作的https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/deploy/pdserving/README_CN.md

@2022WPJ
Copy link

2022WPJ commented Jul 10, 2023

把init_op里的内容放到__init__中的,跑通了,不知道源码哪里有问题

@jackjyq
Copy link

jackjyq commented Jun 19, 2024

改成这样就可以了

class RecOp(Op):
    def init_op(self):
        self.ocr_reader = OCRReader(
            char_dict_path="./ppocr/utils/ppocr_keys_v1.txt"
        )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants