This project lets you capture a live screenshot from an Android device using ADB, send it to Google's Gemini model for analysis, and view suggestions on how the UI can be improved. The whole thing runs on a simple Flask web server.
- Python 3.8+
- ADB installed and available in PATH
- Android device with USB debugging enabled
Clone the repository, then install the required dependencies:
pip install flask google-generativeai python-dotenv pillowAdd your Gemini API key in a .env file at the root:
GEMINI_API_KEY=your_api_key_here
Usage
- Connect your Android device and make sure it shows up with:
adb devices
- Start the Flask app:
python app.py
-
Open
http://127.0.0.1:5000/in a browser. -
When triggered, the app will:
Take a screenshot from the device
Save it under static/
Send it to Gemini for analysis
Return a JSON response with improvement and suggestions