An image enhancement web application with a React frontend and Python backend.
- Install Node.js dependencies:
npm install
- Create a
.envfile in the root directory with the following content:
API_URL=your_python_endpoint
Replace your_python_endpoint with your Python backend URL (e.g., http://127.0.0.1:5000).
- Start the React development server:
npm run dev
- Navigate to the backend directory:
cd backend
- Create a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate - macOS/Linux:
source venv/bin/activate
- Windows:
-
Install Python dependencies:
pip install -r requirements.txt
- Run the Flask server:
python app.py
The backend server will start
- Upload an image using the frontend interface
- The image is sent to the Python backend as a base64 string
- The backend processes the image using PIL and OpenCV
- The enhanced image is returned to the frontend
- You can download the enhanced image
- Brightness adjustment
- Contrast enhancement
- Color saturation improvement
- Image sharpening
- Frontend: React, JavaScript
- Backend: Flask, Python
- Image Processing: PIL (Pillow), OpenCV