Skip to content
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

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() #59

Open
rishabhgupta93 opened this issue Dec 28, 2023 · 0 comments

Comments

@rishabhgupta93
Copy link

I am trying to annotate a table using PPOcrLabel. Following the instructions here (https://github.com/Evezerest/PPOCRLabel/tree/release2.0?tab=readme-ov-file#22-table-annotation ). But when I change the value of any cell and run Cell Re-Recognition. I am getting the following error and application crashes.

Traceback (most recent call last):
File "f:\pycharmprojects\ppstructurelearning\venv\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 2424, in cellreRecognition
bboxes = self.ocr.ocr(img_crop, det=True, rec=False, cls=False)[0]
File "f:\pycharmprojects\ppstructurelearning\venv\lib\site-packages\paddleocr\paddleocr.py", line 674, in ocr
if not dt_boxes:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Please help !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant