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

[cherry-pick] add project url and fix a bug #13281

Merged
merged 2 commits into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.8.0
2.8.1
2 changes: 1 addition & 1 deletion paddleocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def _import_file(module_name, file_path, make_importable=False):
ppstructure = importlib.import_module("ppstructure", "paddleocr")
from ppocr.utils.logging import get_logger

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

logger = get_logger()

__all__ = [
"PaddleOCR",
"PPStructure",
Expand Down
2 changes: 1 addition & 1 deletion ppstructure/predict_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __call__(self, img, return_ocr_result_in_table=False, img_idx=0):
time_dict["layout"] += elapse
else:
h, w = ori_im.shape[:2]
layout_res = [dict(bbox=None, label="table")]
layout_res = [dict(bbox=None, label="table", score=0.0)]

# As reported in issues such as #10270 and #11665, the old
# implementation, which recognizes texts from the layout regions,
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ dependencies = [
"fire>=0.3.0",
]

[project.urls]
homepage = "https://github.com/PaddlePaddle/PaddleOCR"
documentation = "https://github.com/PaddlePaddle/PaddleOCR/blob/main/README.md"
repository = "https://github.com/PaddlePaddle/PaddleOCR.git"
issues = "https://github.com/PaddlePaddle/PaddleOCR/issues"

[project.scripts]
paddleocr = "paddleocr.paddleocr:main"

Expand Down