netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.98k stars 1.17k forks source link

[BUG] <title>y_axis = polygons[:, 0, 1] IndexError: too many indices for array: array is 1-dimensional, but 3 were indexed #351

Open kristestdev opened 6 months ago

kristestdev commented 6 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

QAnything/qanything_kernel/utils/loader/pdf_to_markdown/core/layout/table_rec/table_recover.py", line 33, in get_rows y_axis = polygons[:, 0, 1] IndexError: too many indices for array: array is 1-dimensional, but 3 were indexed

期望行为 | Expected Behavior

正确解析

运行环境 | Environment

- OS:ubuntu
- NVIDIA Driver: NO
- CUDA:NO
- docker:NO
- docker-compose:NO
- NVIDIA GPU:NO
- NVIDIA GPU Memory:NO

QAnything日志 | QAnything logs

No response

复现方法 | Steps To Reproduce

build knowledge pdf file

备注 | Anything else?

QAnything/qanything_kernel/utils/loader/pdf_to_markdown/core/layout/table_rec/table_recover.py", line 33, in get_rows y_axis = polygons[:, 0, 1] IndexError: too many indices for array: array is 1-dimensional, but 3 were indexed

xia994 commented 6 months ago

same issue

liuylmr commented 6 months ago

同样问题..

kentyxie commented 5 months ago

macbook 上 出现同样的报错,必现

zhouhangtju commented 4 months ago

请问如何解决呢