IndexError: list index out of range
See original GitHub issuepip install paddleocr==1.1.1
IndexError: list index out of range , IndexError: index 33 is out of bounds for axis 0 with size 33
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/app.py", line 56, in paddle
result = chineseOCREngine.ocr(image, cls=False)
File "/usr/local/lib/python3.6/dist-packages/paddleocr/paddleocr.py", line 242, in ocr
dt_boxes, rec_res = self.__call__(img)
File "/usr/local/lib/python3.6/dist-packages/paddleocr/tools/infer/predict_system.py", line 105, in __call__
rec_res, elapse = self.text_recognizer(img_crop_list)
File "/usr/local/lib/python3.6/dist-packages/paddleocr/tools/infer/predict_rec.py", line 254, in __call__
end = predict_lod[rno + 1]
IndexError: list index out of range
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/app.py", line 56, in paddle
result = chineseOCREngine.ocr(image, cls=False)
File "/usr/local/lib/python3.6/dist-packages/paddleocr/paddleocr.py", line 242, in ocr
dt_boxes, rec_res = self.__call__(img)
File "/usr/local/lib/python3.6/dist-packages/paddleocr/tools/infer/predict_system.py", line 105, in __call__
rec_res, elapse = self.text_recognizer(img_crop_list)
File "/usr/local/lib/python3.6/dist-packages/paddleocr/tools/infer/predict_rec.py", line 263, in __call__
rec_res[indices[beg_img_no + rno]] = [preds_text, score]
IndexError: index 33 is out of bounds for axis 0 with size 33
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
List Index Out of Range – Python Error Message Solved
You'll get the Indexerror: list index out of range error when iterating through a list and trying to access an item that doesn't...
Read more >Indexerror: list Index Out of Range in Python - STechies
In python “list index out of range” error occurs when we try to access an undefined element from the list. List index out...
Read more >Index Error: list index out of range (Python) - Stack Overflow
Generally it means that you are providing an index for which a list element does not exist. E.g, if your list was [1,...
Read more >Python IndexError: List Index Out of Range [Easy Fix] - Finxter
The error “list index out of range” arises if you access invalid indices in your ...
Read more >How to debug list index out of range error in python? - Flexiple
To foolproof your loop of such instances, the range() function along with len() would return the length of the list dynamically. Subsequently ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
问题已经修复了,请尝试最新代码,如果还有问题,可开新的issue
paddleocr==2.6.0.1
Help me!