Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
$: cat deploy/hubserving/structure_system/params.py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from future import absolute_import
from future import division
from future import print_function
from deploy.hubserving.structure_table.params import read_params as table_read_params
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
Traceback (most recent call last):
File "deploy/hubserving/structure_system/module.py", line 148, in <module>
res = structure_system.predict(paths=image_path)
File "/usr/local/lib/python3.7/dist-packages/paddlehub/compat/paddle_utils.py", line 221, in runner
return func(*args, **kwargs)
File "deploy/hubserving/structure_system/module.py", line 122, in predict
res, _ = self.table_sys(img)
File "./ppstructure/predict_system.py", line 112, in __call__
layout_res, elapse = self.layout_predictor(img)
File "./ppstructure/layout/predict_layout.py", line 100, in __call__
post_preds = self.postprocess_op(ori_im, img, preds)
File "./ppocr/postprocess/picodet_postprocess.py", line 247, in __call__
label = self.labels[clsid]
IndexError: list index out of range
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
from future import absolute_import from future import division from future import print_function
from deploy.hubserving.structure_table.params import read_params as table_read_params
def read_params(): cfg = table_read_params()