A modern web application for translating manga panels from Japanese to English. The system combines OCR technology with advanced AI translation to maintain cultural context and visual aesthetics.
git clone https://github.com/yourusername/manga-translation-system.git
cd manga-translation-system
cd backend
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
cd ../frontend
npm install
.env in backend directory:GEMINI_API_KEY=your_gemini_api_key
cd backend
uvicorn main:app --reload
cd frontend
npm start
Visit http://localhost:3000 in your browser.
Process manga panel images
Request Body (multipart/form-data):
file: Image file (PNG/JPG)source_lang: Source language codetarget_lang: Target language codemanga_context: Translation context (optional)is_vertical_text: Boolean flag for vertical textResponse:
{
"processed_image": "/static/processed/image.png",
"visualized_boxes_image": "/static/boxes/image.png",
"translated_texts": [
{
"original_text": "原文",
"text": "Translation",
"is_vertical": boolean,
"base_translation": "Basic translation"
}
],
"status_log": ["Processing step 1", "Processing step 2"]
}
manga-translation-system/
├── backend/
│ ├── static/
│ │ ├── uploads/
│ │ ├── processed/
│ │ └── boxes/
│ ├── main.py
│ └── requirements.txt
├── frontend/
│ ├── src/
│ │ ├── App.js
│ │ └── App.css
│ └── package.json
└── README.md
git checkout -b feature/NewFeature)git commit -m 'Add NewFeature')git push origin feature/NewFeature)MIT License
Open issues on GitHub repository for support requests.
A modern web application for translating manga panels from Japanese to English. The system combines OCR technology with advanced AI translation to maintain cultural context and visual aesthetics.
git clone https://github.com/yourusername/manga-translation-system.git
cd manga-translation-system
cd backend
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
cd ../frontend
npm install
.env in backend directory:GEMINI_API_KEY=your_gemini_api_key
cd backend
uvicorn main:app --reload
cd frontend
npm start
Visit http://localhost:3000 in your browser.
Process manga panel images
Request Body (multipart/form-data):
file: Image file (PNG/JPG)source_lang: Source language codetarget_lang: Target language codemanga_context: Translation context (optional)is_vertical_text: Boolean flag for vertical textResponse:
{
"processed_image": "/static/processed/image.png",
"visualized_boxes_image": "/static/boxes/image.png",
"translated_texts": [
{
"original_text": "原文",
"text": "Translation",
"is_vertical": boolean,
"base_translation": "Basic translation"
}
],
"status_log": ["Processing step 1", "Processing step 2"]
}
manga-translation-system/
├── backend/
│ ├── static/
│ │ ├── uploads/
│ │ ├── processed/
│ │ └── boxes/
│ ├── main.py
│ └── requirements.txt
├── frontend/
│ ├── src/
│ │ ├── App.js
│ │ └── App.css
│ └── package.json
└── README.md
git checkout -b feature/NewFeature)git commit -m 'Add NewFeature')git push origin feature/NewFeature)MIT License
Open issues on GitHub repository for support requests.