SharpifyAI is a full-stack web application designed to enhance low-quality images by applying AI super-resolution techniques selectively across distinct image regions: faces, backgrounds, and text.
Unlike traditional tools that apply a uniform model to the whole image, SharpifyAI performs semantic segmentation to isolate and enhance each region using a dedicated model:
- 🧑🦰 GFPGANfor facial restoration
- 🌄 Real-ESRGANfor background enhancement
- 🔤 TextBSRfor improving text clarity
Built using React (frontend), Flask (backend), Firebase Authentication, AWS S3, and integrated with Gradio/Colab for GPU-powered AI inference.
- 🖼️ Upload images and choose which regions to enhance (face / background / text)
- 🔍 Compare original vs enhanced results directly in-browser
- 📥 Download final high-resolution outputs
- 📱 Full support for desktop and mobile interfaces
- 📊 Evaluated with PSNR, SSIM, LPIPS, ΔE₀₀, OCR confidence, and more
- Open SharpifyAI.ipynbin Google Colab
- Run all cells (GPU must be enabled)
- Copy the generated Gradio URL generated by the last cell (e.g., https://xxxx.gradio.live)
- Paste it into both .envfiles asGRADIO_URL
git clone https://github.com/MalinaNeag/SharpifyAI_Image_Enhancement_Project.git
cd SharpifyAI_Image_Enhancement_ProjectCreate two .env files: one in image-enhancement-frontend/ and one in image-enhancement-backend/.
# Firebase
REACT_APP_FIREBASE_API_KEY=
REACT_APP_FIREBASE_AUTH_DOMAIN=
REACT_APP_FIREBASE_PROJECT_ID=
# Backend & Gradio
REACT_APP_BACKEND_URL=http://127.0.0.1:5000
REACT_APP_GRADIO_URL=https://your-gradio-link.gradio.live
# AWS
REACT_APP_AWS_ACCESS_KEY_ID=
REACT_APP_AWS_SECRET_ACCESS_KEY=
AWS_BUCKET_NAME=
AWS_REGION=# Flask security key
FLASK_SECRET_KEY=
# Google OAuth2 credentials (from Google Cloud Console)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=http://127.0.0.1:5000/login/callback
# Firebase API key (can match frontend key)
FIREBASE_API_KEY=
# AWS credentials (from AWS IAM)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_BUCKET_NAME=
AWS_REGION=
# Gradio URL from Colab
GRADIO_URL=https://your-gradio-link.gradio.live- Firebase: Go to https://console.firebase.google.com → create a project → Project Settings → add a Web App → copy config to frontend .env
- Google OAuth: Visit https://console.cloud.google.com → Credentials → create OAuth 2.0 Client ID (Web) → add redirect URI http://127.0.0.1:5000/login/callback→ copy credentials to backend.env
- AWS: Use IAM to create a user with S3 access → generate access keys → create an S3 bucket → add credentials to both .envfiles
- Gradio: Open the Colab notebook → run all cells → copy the final Gradio URL → paste in both .envfiles
cd image-enhancement-backend
pip install -r requirements.txt
python app.pyIn a separate terminal:
cd image-enhancement-frontend
npm install
npm run startThis application is fully responsive and supports both desktop and mobile interfaces.
SharpifyAI_Image_Enhancement_Project/
├── image-enhancement-backend/   # Flask API
├── image-enhancement-frontend/  # React App
├── SharpifyAI.ipynb             # Colab Notebooks
└── README.md
This project was developed as part of a Bachelor Thesis and is intended for academic and educational use only.
All AI model integrations are sourced from publicly available pretrained repositories.
