dmMaze / BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning
GNU General Public License v3.0
2.48k stars 172 forks source link

新的OCR功能沒有成功無法運行 The new OCR function does not work #537

Closed Raiter123 closed 1 month ago

Raiter123 commented 1 month ago

My Setting image error log image

Traceback (most recent call last): File "C:\Users\User-PC\BallonsTranslator 2\ui\module_manager.py", line 382, in _imgtrans_pipeline self.ocr.run_ocr(img, blk_list) File "C:\Users\User-PC\BallonsTranslator 2\modules\ocr\base.py", line 42, in run_ocr self._ocr_blk_list(img, blk_list, *args, **kwargs) File "C:\Users\User-PC\BallonsTranslator 2\modules\ocr\ocr_google_lens.py", line 185, in _ocr_blk_list blk.text = self.ocr(cropped_img) File "C:\Users\User-PC\BallonsTranslator 2\modules\ocr\ocr_google_lens.py", line 199, in ocr self._respect_delay() File "C:\Users\User-PC\BallonsTranslator 2\modules\ocr\ocr_google_lens.py", line 273, in _respect_delay if time_since_last_request < self.request_delay: File "C:\Users\User-PC\BallonsTranslator 2\modules\ocr\ocr_google_lens.py", line 154, in request_delay return float(self.params['delay']['value']) TypeError: 'float' object is not subscriptable