This project was created to automatically translate the book of Clementos from ethiopian bible
# Amharic OCR & Translation Pipeline (GUI Automation)
## π Overview
This project was created to **automatically translate the book of Clementos**.
The original material was a **scanned PDF** containing **Amharic and Ge'ez (Gueez)** text.
Because the document was image-based, no direct text extraction was possible.
To solve this, we built a **step-by-step automation pipeline** combining external tools and custom scripts.
High-level workflow:
1. **Scanned PDF β cropped images**
2. **Images β Amharic text (OCR)** using Google Translate
3. **Amharic text β English (or other languages)** using ChatGPT
---
## π§ Why This Approach?
### β What does NOT work well
* ChatGPT: image β Amharic text (OCR) β
* Google Translate: image β English translation β (quality is not satisfactory)
### β
What works better
* Google Translate: image β **Amharic text only** β
* ChatGPT: **Amharic text β English (or other language)** β
β‘οΈ This project automates that exact workflow.
---
## π§© Project Structure
```
project/
βββ ExtractTextImage.py # Google Translate OCR automation (image β Amharic text)
βββ ChatGPTScraper.py # ChatGPT automation (Amharic text β translation)
βββ bouton_parcourir.png # UI reference image (Browse button)
βββ bouton_copier.png # UI reference image (Copy button)
βββ bouton_close.png # UI reference image (Close button)
βββ copy.png # UI reference image (ChatGPT copy button)
βββ images/ # Folder containing Amharic images
βββ outputChatgpt.txt # Translation output
βββ README.md
```
---
## π Source Preparation (PDF β Images)
The book of Clementos was provided as a **scanned PDF** mixing **Amharic and Ge'ez**.
We used **
ilovepdf.com** for preprocessing:
* Crop pages to remove the Ge'ez text
* Convert each PDF page into a separate **JPG image**
These images are then used as input for the OCR step.
---
## βοΈ Requirements
* Python 3.9+
* Firefo β¦