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

layout检测框异常 #704

Open
Yue-Rain opened this issue Oct 9, 2024 · 1 comment
Open

layout检测框异常 #704

Yue-Rain opened this issue Oct 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Yue-Rain
Copy link

Yue-Rain commented Oct 9, 2024

Description of the bug | 错误描述

image
按照教程来跑一个示例,同时将is_table_recog_enable设置为True,其他的使用默认参数,layout检测框不对,应该是横向的。

How to reproduce the bug | 如何复现

{
    "bucket_info":{
        "bucket-name-1":["ak", "sk", "endpoint"],
        "bucket-name-2":["ak", "sk", "endpoint"]
    },
    "models-dir":"/path/to/models",
    "device-mode":"cpu",
    "table-config": {
        "model": "TableMaster",
        "is_table_recog_enable": true,
        "max_time": 400
    }
}

magic-pdf.template.json配置
guicheng_origin.pdf

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.8.x

Device mode | 设备模式

cuda

@Yue-Rain Yue-Rain added the bug Something isn't working label Oct 9, 2024
@myhloli
Copy link
Collaborator

myhloli commented Oct 9, 2024

这个是因为pdf当前页存在一个90度旋转的情况,绘制检测框的时候没有根据旋转角度进行位置修正,但是应该不影响当前页面的文本提取。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants