Comments (19)
comment lang_code = 'zh_CN'
uncomment # lang_code = 'en_US'
from momotranslator.
Search for comictextdetector.pt.onnx
in the code and you'll get the path. Or you can change the path in the code.
from momotranslator.
In the config file, change target_lang: 'zh-CN'
to your desired language, and make sure it is valid.
See more at https://github.com/nidhaloff/deep-translator
The ChatGPT web translator is written for Mac automation and does not work on any other system.
from momotranslator.
What device and OS are you using?
from momotranslator.
Ubuntu 22.04 and desktop
from momotranslator.
and also im using python 3.10
from momotranslator.
hi i found it!! i install pyqt6==6.2.0 and then i un comment nltk but now i have another problem:
Traceback (most recent call last):
File "/media/arda/E64E3CD94E3CA3E91/Projeler/MomoTranslator/pyqt5_momotranslator.py", line 9315, in <module>
msyh_font20 = ImageFont.truetype(msyh_font_ttc, 20)
File "/home/arda/.local/lib/python3.10/site-packages/PIL/ImageFont.py", line 797, in truetype
return freetype(font)
File "/home/arda/.local/lib/python3.10/site-packages/PIL/ImageFont.py", line 794, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/home/arda/.local/lib/python3.10/site-packages/PIL/ImageFont.py", line 230, in __init__
load_from_bytes(font)
File "/home/arda/.local/lib/python3.10/site-packages/PIL/ImageFont.py", line 210, in load_from_bytes
self.font_bytes = f.read()
AttributeError: 'NoneType' object has no attribute 'read'
from momotranslator.
Hi i fix the all issue but interface is chiniese is there a way to change it or should i translate it? i willopen a pr for fixes it's looks like when program cant found the font it's fails
from momotranslator.
Install font 微软雅黑
or change global_font_name and font_dic accordingly in your MomoTranslator_XXX_config.yml file
from momotranslator.
now i can access gui bu i cant process this image
console output
trace:
gui:
check_pts image:
from momotranslator.
There is one bubble so there should only be one textblock but the check_pts image shows two textblocks, one with blue filling and one with white filling.
Give me the whole name of the scan file, I'll use it to find the file and get a proper WLB_ext_px value.
from momotranslator.
what is scan file? iamge name is : RCO003_1663976825.jpg
from momotranslator.
You can get the newest code and try again.
Remember to download comictextdetector.pt.onnx if you hadn't.
Also I tried the image myself:
![287463623-e8118492-4643-4c8d-bb0c-f3843fce82e6-CTD](https://github.com/alicewish/MomoTranslator/assets/11379080/c41c69
f9-fd12-4602-88d9-598e188e8cae)
from momotranslator.
If you are famaliar with Python then change config file to do_mode: 'do_dev_folder'
The error message might be clearer without the GUI.
from momotranslator.
thx for the assist i will try tomorrow
from momotranslator.
Progress update
- i change pyqt6 version to
pyqt6==6.5.0
in requirements.txt - I install
tsseract
via apt-get - I chage
multimode
,median
,mean
tostatistics.multimode
,statistics.median
,statistics.mean
since python thorwsmedian module does not exist
- I installed pandoc via Github page:
AND ITS WORKING !!!
- when i try to open
do_mode: 'do_dev_folder'
it's gices me a new error:
from momotranslator.
In the config file, when using do_mode: 'do_dev_folder'
, change folder_name
to your actual folder name, also make sure there is a corresponding folder under ComicProcess folder with that name.
from momotranslator.
I forgot to put in from statistics import median, multimode
, mean can be from statistics or from cv2 or from numpy, not much difference.
Code updated on that.
from momotranslator.
I forgot to put in
from statistics import median, multimode
, mean can be from statistics or from cv2 or from numpy, not much difference. Code updated on that.
mean
on cv2 expecting diffrent format (some numpy) so it's also must import from statistics
from momotranslator.
Related Issues (20)
- ModuleNotFoundError: No module named 'docx' HOT 1
- ModuleNotFoundError: No module named 'exceptions' HOT 1
- 打开文件夹无效 HOT 2
- 运行py文件的时候提示OSError: cannot open resource HOT 1
- 做成类似ballonstranslator的嵌字 HOT 3
- vertical变量名报错不存在 HOT 2
- 模块安装失败 HOT 1
- 最新版gbk编码问题 HOT 1
- 请问技术上能不能编译成exe文件 HOT 1
- 文字识别时,出现变量未定义问题 HOT 2
- OSError: cannot open resource、好像是字体文件的问题,请问怎么解决呢。 HOT 16
- 开始OCR之后提示area_dic未定义 HOT 2
- OCR进行到一半报错,重开后再OCR直接报这个错
- cv2.error: OpenCV(4.6.0) /Users/xperience/actions-runner/_work/opencv-python/opencv-python/opencv/modules/core/src/arithm.cpp:1742: error: (-209:Sizes of input arguments do not match) The lower boundary is neither an array of the same size and same type as src, nor a scalar in function 'inRange' HOT 4
- 最新更i性能Win11下图形界面打不开报错 HOT 1
- ppocr WARNING: Since the angle classifier is not initialized, it will not be used during the forward process HOT 1
- 您好,运行过程中似乎缺少一个资源 HOT 1
- No module named cobble HOT 1
- Outscreen bubbles are not detecting HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from momotranslator.