Converzy is a web application that allows users to extract text from images/PDFs and translate them between English and Hindi.
✅ Image & PDF OCR (Optical Character Recognition)
✅ English ↔ Hindi Translation
✅ Real-time Text Editing & Swapping
✅ Image Upload & Direct Screenshot Paste Support
git clone https://github.com/yourusername/converzy.gitcd client
npm install
cd ../server
npm installCreate a .env file inside the server directory and add the following variables:
PORT=3000
GOOGLE_APPLICATION_CREDENTIALS="./vision-key.json"
GOOGLE_PROJECTID=your_project_id
GOOGLE_LOCATION=your_document_ai_location
GOOGLE_PROCESSID=your_document_ai_process_id
- Go to the Google Cloud Console: https://console.cloud.google.com/
- Create a new project or use an existing one.
- Navigate to APIs & Services → Library.
- Search for "Cloud Vision API" and enable it.
- Go to APIs & Services → Credentials.
- Click Create Credentials → Service Account.
- Assign Editor or Owner role.
- Click Create Key → Select JSON.
- Download the
vision-key.jsonfile.
- Move
vision-key.jsonto your project's server directory. - Ensure
.envinside the server directory has the correct path:GOOGLE_APPLICATION_CREDENTIALS="./vision-key.json"
- Endpoint:
POST /ocr/image(for images) - Endpoint:
POST /ocr/pdf(for PDFs) - Request: Multipart form-data (
file) - Response: Extracted text
- Endpoint:
POST /translate - Request Body:
{ "text": "Hello", "target": "hi" } - Response: Translated text
cd server
npm run devcd client
npm run devThis project is open-source and free to use.