Danily07 / Translumo

Advanced real-time screen translator for games, hardcoded subtitles in videos, static text and etc.
Apache License 2.0
3.17k stars 147 forks source link

Text detection is failed (EasyOCREngine) #125

Open kkkuraga opened 5 months ago

kkkuraga commented 5 months ago

Hello, in the new version 0.9.6 I encountered a problem: Text detection is failed (EasyOCREngine) I reinstalled the program several times, it didn’t help, I looked for a solution to this problem from other users, but unfortunately the problem remained Win10Pro CPU AMD Ryzen 7 4800H RAM 8GB I will attach logs
log20240430.txt

PSR2144-3933 commented 2 months ago

i met a similar problem log20240715.txt neither reinstall pytorch/easyocr/vcredist nor restart Translumo works

PSR2144-3933 commented 2 months ago

btw each time i turn off and turn on EasyOCR in text recognition "Required python module are not installed" appears after the install completed, a error would appear in log 01:38:41.961 [ERR] EasyOCR initialization error Python.Runtime.PythonException: [WinError 126] The specified module could not be found. Error loading "D:\Utility\Translumo-v.0.9.6\Python\lib\site-packages\torch\lib\shm.dll" or one of its dependencies. File "D:\Utility\Translumo-v.0.9.6\Python\lib\site-packages\torch__init.py", line 143, in raise err File "D:\Utility\Translumo-v.0.9.6\Python\lib\site-packages\easyocr\recognition.py", line 2, in import torch File "D:\Utility\Translumo-v.0.9.6\Python\lib\site-packages\easyocr\easyocr.py", line 3, in from .recognition import get_recognizer, get_text File "D:\Utility\Translumo-v.0.9.6\Python\lib\site-packages\easyocr__init.py", line 1, in from .easyocr import Reader at Python.Runtime.PythonException.ThrowLastAsClrException() at Python.Runtime.NewReferenceExtensions.BorrowOrThrow(NewReference& reference) at Python.Runtime.PyModule.Import(String name) at Python.Runtime.Py.Import(String name) at Translumo.Infrastructure.Python.PythonEngineWrapper.Import(String libName) at Translumo.OCR.EasyOCR.EasyOCREngine.b22_0() at Translumo.Infrastructure.Python.PythonEngineWrapper.<>cDisplayClass5_0.b__0() at Translumo.Infrastructure.Python.PythonEngineWrapper.Execute[T](Func`1 func) at Translumo.Infrastructure.Python.PythonEngineWrapper.Execute(Action action) at Translumo.OCR.EasyOCR.EasyOCREngine.InitializeObjects() at Translumo.OCR.EasyOCR.EasyOCREngine.EnsureInitialized()

PSR2144-3933 commented 2 months ago

nah symbolic link to another python install don't work really need support

PSR2144-3933 commented 2 months ago

(EasyOCR is still ticked when this exception happens QQ_1720980094892