PPOCRLabel icon indicating copy to clipboard operation
PPOCRLabel copied to clipboard

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

Open rishabhgupta93 opened this issue 2 years ago • 0 comments

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 !!

rishabhgupta93 avatar Dec 28 '23 20:12 rishabhgupta93