# comic-translation **Repository Path**: xiaoyun461/comic-translation ## Basic Information - **Project Name**: comic-translation - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2022-03-17 - **Last Updated**: 2024-07-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AI漫画翻译辅助工具 ![visitors](https://visitor-badge.glitch.me/badge?page_id=jtl1207.comic-translation&left_text=访%20%20问) 这是一个基于深度学习的漫画翻译辅助工具 包含翻译,朗读,AI图像去字,自动排版,自动嵌字,去除文字后的图像修复等功能。 目的是帮助非专业汉化人员完成更简单,快速的翻译任务。也可以用于加快专业翻译流程。 ps:机翻有待加强,目前对横向文本支持较好,垂直文本非中文容易出现问题,希望更多的小众漫画能够得到汉化。 ## 安装 开发者直接git 注意paddle,pytorch,tensorflow2 需要官网下载,任意版本。 注意30系显卡不支持cuda10.2。 !!!兄弟们不好意思,操作失误导致这个月github流量超了,现在仓库里少了一个400mb的模型,整合包里有。 普通用户这里[下载](https://github.com/jtl1207/comic-translation/releases "下载") 显卡驱动版本过低将导致程序卡住,暂时不支持A卡。 为了更好的显示错误原因,整合包保留了控制台。 ```diff ! 第一次打开会安装虚拟环境,需要7分钟,安装结束有报错没有关系(2个) ! 整合包第一次部署时会安装python库和环境,这个安装是一次性的,关闭以后再次打开也无法安装,需要还原opt文件夹 ``` 整合包确定正常使用后可以删除.\opt\packages(3.8G)文件夹节约空间 ## 更新 如果出现小版本更新0.1内 普通用户可以[下载](https://github.com/jtl1207/comic-translation/archive/refs/heads/main.zip )最新代码,放到整合包的resources文件夹内。 更新预告: 英文手册与UI 增加自动判断字体颜色 增加历史译文记录 快捷键!!! ## 使用方法 1.提前排好图片顺序与名称 2.打开软件(需要10秒) 3.导入漫画,字体 4.设置要翻译的语言 5.手动选择区域,选择需要的功能 6.手动修改译文,点击确定 图片不适合太小,准确度会下降 需要什么字体就导入什么字体比如空心字等 使用相同颜色阴影可以加粗字体 如果发生闪退等意外resources文件夹下save.jpg将会保存最新修改的图片文件 想要尝试全自动翻译可以把整张图选中,然后点击自动翻译 部分标点符号大小可能会渲染异常,更换排列方式有概率解决 根据电脑配置运行速度不同,可能会出现卡顿 报错处理: 短时间卡顿是正常现象 翻译超时请检测与translate.google.cn的网络连接 朗读也是网络原因 环境要求: 需要网络,使用Google翻译(中国) 提示:ssr可能造成网络异常,请自行尝试 有显卡可显著加快图像处理速度(CUDA) cpu会非常慢 需要驱动版本>=472.50 整合包自带CUDA与cudnn不需要额外安装 字体下载地址: ## 效果 ##### 界面展示(旧版) [![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/3.jpg "")](http://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/3.jpg "") ##### 口语翻译有待加强 [![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/2.png "")](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/2.png "") ##### 其他功能 |[![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/1.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/1.jpg) |[![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/1.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/1.jpg) | | ------------ | ------------ | | [![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/7.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/7.jpg) | [![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/7.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/7.jpg) | | [![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/14.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/14.jpg) |[![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/11.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/11.jpg) | | [![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/12.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/12.jpg) |[![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/12.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/12.jpg) | | [![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/13.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/in/13.jpg) |[![](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/13.jpg)](https://github.com/jtl1207/comic-translation/blob/main/%E6%B5%8B%E8%AF%95%E5%9B%BE%E7%89%87/out/13.jpg) | ## 之后的目标 更多字体渲染方式 更多字体角度 优化使用体验 ## 相关项目 [kha-white/manga-ocr](https://github.com/kha-white/manga-ocr "kha-white/manga-ocr")(垂直日文识别模型) [zyddnys](https://github.com/zyddnys/manga-image-translator)与[dmMaze](https://github.com/dmMaze/comic-text-detector)(文本检测模型) [KUR-creative/SickZil-Machine](https://github.com/KUR-creative/SickZil-Machine "KUR-creative/SickZil-Machine")(图像修复模型) ## 开源协议 GNU General Public License v3.0 感谢一切推广