-
Notifications
You must be signed in to change notification settings - Fork 707
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
fix: check existence of variable res before iteration #2063
Conversation
is there an existing GH issue for this, and/or a file where this causes the error? |
This PR addresses a community response thread where it was not possible for the user to share their file; so we don't know why exactly PaddleOCR returns that portion of
However by reading through I saw that we were assuming that PaddleOCR does not return I've removed that assumption here, addressing the case by skipping the text region when this happens (similar to how we handle another case here). Copied stack trace:
|
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.
LGTM!
Handles a case where Paddle returns a list item in ocr_data as None in partition.