Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Manga Proj
|
| 3 |
emoji: 📈
|
|
@@ -9,4 +11,55 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
---
|
| 4 |
title: Manga Proj
|
| 5 |
emoji: 📈
|
|
|
|
| 11 |
pinned: false
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Manga Proj
|
| 15 |
+
|
| 16 |
+
This Streamlit app processes manga images by translating text within speech bubbles using a YOLO model for text detection and Tesseract OCR for text recognition.
|
| 17 |
+
|
| 18 |
+
## Setup
|
| 19 |
+
|
| 20 |
+
To ensure the app runs correctly, follow these setup instructions:
|
| 21 |
+
|
| 22 |
+
1. **Install Dependencies**:
|
| 23 |
+
- The app requires several Python packages listed in `requirements.txt`.
|
| 24 |
+
- Additionally, Tesseract OCR needs to be installed on the system.
|
| 25 |
+
|
| 26 |
+
2. **Run Setup Script**:
|
| 27 |
+
- Execute the `setup.sh` script to install Tesseract OCR:
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
bash setup.sh
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## Usage
|
| 34 |
+
|
| 35 |
+
1. **Upload Files**:
|
| 36 |
+
- Upload a manga image, a CSV file containing translations, and a font file.
|
| 37 |
+
|
| 38 |
+
2. **Run the Pipeline**:
|
| 39 |
+
- Click the "Run Full Pipeline" button to process the image.
|
| 40 |
+
- The app will display the processed image with translated text.
|
| 41 |
+
|
| 42 |
+
## Features
|
| 43 |
+
|
| 44 |
+
- **Text Detection**: Uses a YOLO model to detect text regions in the image.
|
| 45 |
+
- **Text Recognition**: Utilizes Tesseract OCR to recognize and extract text.
|
| 46 |
+
- **Translation**: Matches extracted text with translations provided in a CSV file.
|
| 47 |
+
- **Image Processing**: Cleans text regions and renders translated text back onto the image.
|
| 48 |
+
|
| 49 |
+
## Dependencies
|
| 50 |
+
|
| 51 |
+
- Streamlit
|
| 52 |
+
- Ultralytics (YOLO)
|
| 53 |
+
- Keras OCR
|
| 54 |
+
- Sentence Transformers
|
| 55 |
+
- Scikit-learn
|
| 56 |
+
- Pillow
|
| 57 |
+
- OpenCV
|
| 58 |
+
- Pytesseract
|
| 59 |
+
|
| 60 |
+
## Acknowledgments
|
| 61 |
+
|
| 62 |
+
- Thanks to the open-source community for providing the tools and libraries used in this project.
|
| 63 |
+
|
| 64 |
+
|
| 65 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|