Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
最近在使用paddleocr的版面分析功能,使用的pypi上下载的2.7.3最新版,发现PPStructure返回的result中的layout区块信息存在高iou但type不同的情况,
示例pdf页面
之前用过其他的版面分析模型,会在返回的layout信息中提供每个layout_block的score信息,方便在后续处理的pipeline中对高iou的区块做低score区块移除处理。
看了最新的仓库代码(2.8.0版本),发现相较于2.7.3whl版本,PaddleOCR/ppocr/postprocess/picodet_postprocess.py
中已增加了layout的score返回,但是在PaddleOCR/ppstructure/predict_system.py 中,没有增加对应的返回参数
现已补全result中的layout score参数,便于后续pipeline的开发使用