You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
完整报错/Complete Error Message:
CR: 0%| | 0/303 [00:02<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\X\Desktop\rapidOCR\RapidVideOCR\onlyOCR.py", line 10, in
extractor(rgb_dir, save_dir, save_name=save_name)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapid_videocr\rapid_videocr.py", line 85, in call
srt_result, txt_result = self.single_rec(img_list)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapid_videocr\rapid_videocr.py", line 103, in single_rec
dt_boxes, rec_res = self.run_ocr(img)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapid_videocr\rapid_videocr.py", line 224, in run_ocr
ocr_result, _ = self.rapid_ocr(img)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\rapid_ocr_api.py", line 91, in call
rec_res, rec_elapse = self.text_recognizer(img_crop_list)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\ch_ppocr_v3_rec\text_recognize.py", line 71, in call
rec_result = self.postprocess_op(preds)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\ch_ppocr_v3_rec\utils.py", line 36, in call
text = self.decode(preds_idx, preds_prob, is_remove_duplicate=True)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\ch_ppocr_v3_rec\utils.py", line 68, in decode
char_list.append(self.character[int(text_index[batch_idx][idx])])
IndexError: list index out of range
可能的解决方案/Possible solutions:
The text was updated successfully, but these errors were encountered:
请提供下述完整信息以便快速定位问题
(Please provide the following information to quickly locate the problem)
CR: 0%| | 0/303 [00:02<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\X\Desktop\rapidOCR\RapidVideOCR\onlyOCR.py", line 10, in
extractor(rgb_dir, save_dir, save_name=save_name)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapid_videocr\rapid_videocr.py", line 85, in call
srt_result, txt_result = self.single_rec(img_list)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapid_videocr\rapid_videocr.py", line 103, in single_rec
dt_boxes, rec_res = self.run_ocr(img)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapid_videocr\rapid_videocr.py", line 224, in run_ocr
ocr_result, _ = self.rapid_ocr(img)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\rapid_ocr_api.py", line 91, in call
rec_res, rec_elapse = self.text_recognizer(img_crop_list)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\ch_ppocr_v3_rec\text_recognize.py", line 71, in call
rec_result = self.postprocess_op(preds)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\ch_ppocr_v3_rec\utils.py", line 36, in call
text = self.decode(preds_idx, preds_prob, is_remove_duplicate=True)
File "C:\Users\X\Desktop\rapidOCR\venv\lib\site-packages\rapidocr_onnxruntime\ch_ppocr_v3_rec\utils.py", line 68, in decode
char_list.append(self.character[int(text_index[batch_idx][idx])])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: