Web服务器模式使用指南
Cotrans翻译器提供Web服务器模式,允许用户通过浏览器界面操作,这是最友好的使用方式之一。要启用该模式,需要完成以下步骤:
Preparação ambiental
- 基础环境:安装Python 3.8+和Docker环境
- ambiente virtualizado:推荐使用Python虚拟环境隔离依赖
- Requisitos de hardware:配备NVIDIA GPU可获得最佳加速效果(非必须)
具体部署步骤
- Clonagem do Project Warehouse:
git clone https://github.com/zyddnys/manga-image-translator
- Instale a dependência:
pip install -r requirements.txt
- Inicie o serviço da Web:
python -m manga_translator --mode web
- 浏览器访问:默认地址为
http://localhost:5003
alternativa
对于不愿搭建本地环境的用户,开发者提供了现成的在线体验:
- 官方演示站:https://cotrans.touhou.ai/
- 镜像站:https://manga.eidenz.com/
- 浏览器脚本:https://greasyfork.org/scripts/437569
Web服务器模式下,用户可以直接上传图片进行翻译,还能调整OCR模型、目标语言等各种参数,操作体验接近专业翻译软件。
Essa resposta foi extraída do artigoCotrans: tradutor completo de imagens de mangá (código aberto e gratuito)O