Skip to content

HugoNicolau/LangAImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

LangAImage

LangAImage is a Next.js application for image extraction and translation.


Features

  • 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.

Technologies Used

  • 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

Getting Started

Prerequisites

Before running the frontend, ensure you have the following installed:

  • Node.js (>= 14.x)
  • npm (v7 or higher) or yarn

Installation

  1. Clone the Repository:

    git clone https://github.com/yourusername/LangAImage.git
    cd LangAImage
  2. Install Dependencies:

    npm install
    # or
    yarn install
  3. Set Up Environment Variables:

    • Create a .env file in the root directory and add the following:
      NEXT_PUBLIC_API_URL=http://localhost:3001 # Replace with your backend API URL
  4. Run the Development Server:

    npm run dev
    # or
    yarn dev
  5. Access the Application: Open your browser and navigate to http://localhost:3000.


Usage

  1. Upload an Image:

    • Click the "Upload Image" button and select an image file.
  2. Extract Text:

    • The application will automatically extract text from the image using OCR (handled by the backend).
  3. Translate Text:

    • Select the target language and click "Translate" to translate the extracted text.
  4. Summarize Text:

    • Click "Summarize" to generate a concise summary of the extracted text.
  5. Improve Text Quality:

    • Click "Improve Text" to enhance the quality of the extracted text using AI.

Deployment

Build the Project

To build the project for production, run:

npm run build
# or
yarn build

Deploy to Vercel or Netlify

  1. Install the Vercel CLI (if deploying to Vercel):

    npm install -g vercel
  2. Deploy the project:

    vercel deploy

    Or, for Netlify:

    netlify deploy --prod

Contributing

We welcome contributions! If you'd like to contribute to the LangAImage Frontend, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes and push to your branch.
  4. Submit a pull request with a detailed description of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Acknowledgments

  • 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.

Contact

For questions, feedback, or support, please contact:


Thank you for using LangAImage! We hope it provides a seamless and enjoyable experience for your text processing needs. 🚀


About

New frontend for LangAImage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published