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

PPOCRLabel表格标注问题 #10273

Closed
heyuqi1970 opened this issue Jul 1, 2023 · 8 comments
Closed

PPOCRLabel表格标注问题 #10273

heyuqi1970 opened this issue Jul 1, 2023 · 8 comments
Assignees
Labels
expneeded need extra experiment to fix issue good first issue Good for newcomers

Comments

@heyuqi1970
Copy link

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:macos
  • 版本号/Version:Paddle:Version: 2.4.2
    PaddleOCR:Version: 2.6.1.2 问题相关组件/Related components:
    PPOCRLabel Version: 2.1.3
    python 3.9

PPOCRLabel表格标注问题。

标注了15个表格后,导出表格标注,gt.txt文件中只有一个标注的图片信息,其他的都没有。

@shiyutang shiyutang added good first issue Good for newcomers expneeded need extra experiment to fix issue labels Jul 7, 2023
@livingbody
Copy link
Contributor

你好,请提供你的样例数据用于复现、定位问题。

@livingbody
Copy link
Contributor

我自己做个试试

@livingbody
Copy link
Contributor

你好,经我测试,没有问题。
微信截图_20230708215130

@livingbody
Copy link
Contributor

{"filename": "1.jpg", "html": {"structure": {"tokens": ["<tbody>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "</tbody>"]}, "cells": [{"tokens": [], "bbox": [[129, 0], [186, 0], [186, 23], [129, 23]]}, {"tokens": ["P"], "bbox": [[417, 0], [449, 0], [449, 19], [417, 19]]}, {"tokens": ["C"], "bbox": [[698, 0], [730, 0], [730, 23], [698, 23]]}, {"tokens": ["姓", "名"], "bbox": [[90, 61], [221, 61], [221, 136], [90, 136]]}, {"tokens": ["年", "龄"], "bbox": [[364, 60], [500, 60], [500, 136], [364, 136]]}, {"tokens": ["性", "别"], "bbox": [[644, 62], [776, 62], [776, 134], [644, 134]]}, {"tokens": ["张", "三"], "bbox": [[96, 191], [216, 191], [216, 256], [96, 256]]}, {"tokens": ["2", "2"], "bbox": [[396, 191], [470, 191], [470, 257], [396, 257]]}, {"tokens": ["男"], "bbox": [[679, 190], [742, 190], [742, 285], [679, 285]]}, {"tokens": ["王", "二"], "bbox": [[98, 319], [217, 319], [217, 386], [98, 386]]}, {"tokens": ["3", "3"], "bbox": [[397, 317], [471, 317], [471, 388], [397, 388]]}, {"tokens": ["男"], "bbox": [[677, 313], [742, 313], [742, 408], [677, 408]]}, {"tokens": ["李", "四"], "bbox": [[99, 444], [216, 444], [216, 507], [99, 507]]}, {"tokens": ["5", "5"], "bbox": [[397, 442], [471, 442], [471, 511], [397, 511]]}, {"tokens": ["男"], "bbox": [[680, 444], [739, 444], [739, 511], [680, 511]]}]}, "gt": "<html><body><table><tbody><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>P</td><td>C</td></tr><tr><td>姓名</td><td>年龄</td><td>性别</td><td>张三</td></tr><tr><td>22</td><td>男</td><td>王二</td><td>33</td></tr><tr><td>男</td><td>李四</td><td>55</td><td>男</td></tr></tbody></table></body></html>"}
{"filename": "2.jpg", "html": {"structure": {"tokens": ["<tbody>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "<tr>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "<td>", "</td>", "</tr>", "</tbody>"]}, "cells": [{"tokens": [], "bbox": [[129, 0], [186, 0], [186, 23], [129, 23]]}, {"tokens": ["P"], "bbox": [[417, 0], [449, 0], [449, 19], [417, 19]]}, {"tokens": ["C"], "bbox": [[698, 0], [730, 0], [730, 23], [698, 23]]}, {"tokens": ["姓", "名"], "bbox": [[90, 61], [221, 61], [221, 136], [90, 136]]}, {"tokens": ["年", "龄"], "bbox": [[364, 60], [500, 60], [500, 136], [364, 136]]}, {"tokens": ["性", "别"], "bbox": [[644, 62], [776, 62], [776, 134], [644, 134]]}, {"tokens": ["张", "三"], "bbox": [[96, 191], [216, 191], [216, 256], [96, 256]]}, {"tokens": ["2", "2"], "bbox": [[396, 191], [470, 191], [470, 257], [396, 257]]}, {"tokens": ["男"], "bbox": [[679, 190], [742, 190], [742, 285], [679, 285]]}, {"tokens": ["王", "二"], "bbox": [[98, 319], [217, 319], [217, 386], [98, 386]]}, {"tokens": ["3", "3"], "bbox": [[397, 317], [471, 317], [471, 388], [397, 388]]}, {"tokens": ["男"], "bbox": [[677, 313], [742, 313], [742, 408], [677, 408]]}, {"tokens": ["李", "四"], "bbox": [[99, 444], [216, 444], [216, 507], [99, 507]]}, {"tokens": ["5", "5"], "bbox": [[397, 442], [471, 442], [471, 511], [397, 511]]}, {"tokens": ["男"], "bbox": [[680, 444], [739, 444], [739, 511], [680, 511]]}]}, "gt": "<html><body><table><tbody><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>P</td><td>C</td></tr><tr><td>姓名</td><td>年龄</td><td>性别</td><td>张三</td></tr><tr><td>22</td><td>男</td><td>王二</td><td>33</td></tr><tr><td>男</td><td>李四</td><td>55</td><td>男</td></tr></tbody></table></body></html>"}

@shiyutang
Copy link
Collaborator

@heyuqi1970 能否给出错误复现步骤呢?

@livingbody
Copy link
Contributor

亲,你的错误我没复现出来,能再给点详细信息吗?

@heyuqi1970
Copy link
Author

不好意思,是我搞错了,把自动excel的文件删除了。

@damaocode
Copy link

请问我的gt.txt是空的怎么解决呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expneeded need extra experiment to fix issue good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants