-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Update ocr_process.py #4020
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
Update ocr_process.py #4020
Conversation
|
Thanks for your contribution! |
|
@linjieccc Would you take a look at this? |
| for img_name in img_names: | ||
| img_path = os.path.join(img_dir, img_name) | ||
| parsing_res = ocr.ocr(img_path, cls=True) | ||
| parsing_res = ocr.ocr(img_path, cls=True)][0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ocr的返回数据结构在paddleocr>=2.6.0.1版本会多一层list (应该是为了支持多页pdf的识别)
@1649759610 麻烦帮忙check下这里是否根据paddleocr版本做下兼容控制
|
This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。 |
|
This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。 |
|
|
|
This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。 |
|
Automatically closed by Paddle-bot. |
PR types
Bug fixes
PR changes
Others
Description
add index 0 for ocr process.