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不同的情况,
![高iou区块示例](https://private-user-images.githubusercontent.com/11393164/339633107-eabaeb48-f6cd-4163-b5b7-560a7fcc6513.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTY5MTAsIm5iZiI6MTczODg5NjYxMCwicGF0aCI6Ii8xMTM5MzE2NC8zMzk2MzMxMDctZWFiYWViNDgtZjZjZC00MTYzLWI1YjctNTYwYTdmY2M2NTEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDAyNTAxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5MjVjYzcxOTZlZjNjN2MzMDU1ZjJlMTFmY2U1YTlmODBiOTdhNjg5Y2Y5YmRhZjdjNjQ0ZDM4MjliMDE1NGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._eF2r_AJNPOnb-umqt6nqsuuswYK5ryblvOg9_aEF6A)
示例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的开发使用