LangAImage is a Next.js application for image extraction and translation.
- User authentication (login, signup, logout)
- Image extraction using OCR
- Text translation
- Text summarization
- Enhances the quality of extracted text using AI.
- Supports multiple languages for the user interface and text processing.
- Works seamlessly on desktop, tablet, and mobile devices.
- Frontend Framework: Next.js
- Build Tool: Vite
- Language: TypeScript
- Styling: Tailwind CSS
- State Management: React Hooks (
useState,useContext) - Routing: Next.js (or React Router, depending on your setup)
- Icons:
react-icons - API Integration: Axios for communicating with the backend.
- Backend Framework: NestJS
- Authentication: JWT
Before running the frontend, ensure you have the following installed:
- Node.js (>= 14.x)
- npm (v7 or higher) or yarn
-
Clone the Repository:
git clone https://github.com/yourusername/LangAImage.git cd LangAImage -
Install Dependencies:
npm install # or yarn install -
Set Up Environment Variables:
- Create a
.envfile in the root directory and add the following:NEXT_PUBLIC_API_URL=http://localhost:3001 # Replace with your backend API URL
- Create a
-
Run the Development Server:
npm run dev # or yarn dev -
Access the Application: Open your browser and navigate to
http://localhost:3000.
-
Upload an Image:
- Click the "Upload Image" button and select an image file.
-
Extract Text:
- The application will automatically extract text from the image using OCR (handled by the backend).
-
Translate Text:
- Select the target language and click "Translate" to translate the extracted text.
-
Summarize Text:
- Click "Summarize" to generate a concise summary of the extracted text.
-
Improve Text Quality:
- Click "Improve Text" to enhance the quality of the extracted text using AI.
To build the project for production, run:
npm run build
# or
yarn build-
Install the Vercel CLI (if deploying to Vercel):
npm install -g vercel
-
Deploy the project:
vercel deploy
Or, for Netlify:
netlify deploy --prod
We welcome contributions! If you'd like to contribute to the LangAImage Frontend, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and push to your branch.
- Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
- Backend Team: For providing the API for OCR, translation, summarization, and text improvement.
- Tailwind CSS: For simplifying the styling process.
- React Icons: For providing beautiful icons for the UI.
For questions, feedback, or support, please contact:
- Hugo Nicolau
- Email: nicolau.hugogiles@gmail.com
- GitHub: Hugo Nicolau
- LinkedIn: Hugo Nicolau
Thank you for using LangAImage! We hope it provides a seamless and enjoyable experience for your text processing needs. 🚀