UNDER CONSTRUCTION only for developers
This guide will walk you through setting up the project for development only.
Make sure you have the following installed on your system:
- Python 3.8+ # prefer python 3.10.0
- Node.js and npm
- Firefox
- create a virtual environment using pyenv # for error free installation
-
Clone the repository:
git clone <repository-url> cd manga-translator
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Python dependencies: A
requirements.txtfile is not yet available. Please install the following packages manually:pip install opencv-python paddleocr pdf2image python-docx docx2pdf selenium
-
Install OCR model and library: Download the PaddleOCR model from PaddleOCR
pip install paddleocr
-
Navigate to the API directory:
cd Translate/API_request -
Install Node.js dependencies:
npm install dotenv express @google/generative-ai
-
install Geckodriver
python Translate/download_firefox_driver.py
-
config.json: This file, located in the root directory, is used by the Python scripts. It requires paths togeckodriverand your Firefox profile.The GECKODRIVER is locted in this folder under config/tools directory
TO find the Firefox profile path, open Firefox, go to
about:profiles, and copy the path of the profile you want to use. Recommended to create a new profile for the bot to avoid any conflicts with your main profile{ "GECKODRIVER_PATH": "/path/to/your/geckodriver", "FIREFOX_PROFILE_PATH": "/path/to/your/firefox/profile", "to_lan": "en" }