PaddlePaddle / PaddlePaddle/FastDeploy

python推理部署怎么处理fd.vision.ocr.PPStructureV2Table.predict(im)的result?

Open
#2,195 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

使用python example代码可以正常推理
图片
图片
但是结果result我将如何处理成可以操作的数据结构呢?
python下,result是<class 'fastdeploy.libs.fastdeploy_main.vision.OCRResult'>对象,属性只有ocr的一些结果
图片
但是我查看c++源码,OCRResult结构体是有table_html, table_structure属性的
图片
但是在python下无法访问这些属性
图片
所以我应该如何处理fd.vision.ocr.PPStructureV2Table.predict(im)返回的结果?拿到表格结构?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Python example calling fd.vision.ocr.PPStructureV2Table.predict(im), then inspect the Python binding for OCRResult and compare it with the C++ OCRResult fields shown in the issue. Check whether table_html and table_structure are exposed or documented, and verify the result object after inference; done means Python users can access the table structure or the supported handling is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.