Skip to content

Commit c1cc80b

Browse files
authored
[cherry-pick] add project url and fix a bug (#13281)
* add url in pyproject, and update version number (#13274) * fix bug when layout_predictor is None (#13279)
1 parent 7a3c580 commit c1cc80b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

VERSION_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.8.0
1+
2.8.1

paddleocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def _import_file(module_name, file_path, make_importable=False):
5050
ppstructure = importlib.import_module("ppstructure", "paddleocr")
5151
from ppocr.utils.logging import get_logger
5252

53-
logger = get_logger()
5453
from ppocr.utils.utility import (
5554
check_and_read,
5655
get_image_file_list,
@@ -68,6 +67,7 @@ def _import_file(module_name, file_path, make_importable=False):
6867
from ppstructure.predict_system import StructureSystem, save_structure_res, to_excel
6968

7069
logger = get_logger()
70+
7171
__all__ = [
7272
"PaddleOCR",
7373
"PPStructure",

ppstructure/predict_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __call__(self, img, return_ocr_result_in_table=False, img_idx=0):
121121
time_dict["layout"] += elapse
122122
else:
123123
h, w = ori_im.shape[:2]
124-
layout_res = [dict(bbox=None, label="table")]
124+
layout_res = [dict(bbox=None, label="table", score=0.0)]
125125

126126
# As reported in issues such as #10270 and #11665, the old
127127
# implementation, which recognizes texts from the layout regions,

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ dependencies = [
5858
"fire>=0.3.0",
5959
]
6060

61+
[project.urls]
62+
homepage = "https://github.com/PaddlePaddle/PaddleOCR"
63+
documentation = "https://github.com/PaddlePaddle/PaddleOCR/blob/main/README.md"
64+
repository = "https://github.com/PaddlePaddle/PaddleOCR.git"
65+
issues = "https://github.com/PaddlePaddle/PaddleOCR/issues"
66+
6167
[project.scripts]
6268
paddleocr = "paddleocr.paddleocr:main"
6369

0 commit comments

Comments
 (0)