This project leverages API KEY to perform AI-powered image analysis within a Streamlit web application. Users can upload images and receive AI-generated insights based on their queries.
🌐 Live Demo:Click here to try NexLens Image Analysis
The NexLens Image Analysis System integrates Google's Generative AI (Gemini API) to analyze images and generate insights based on user prompts. The application provides a seamless UI through Streamlit, making AI-powered image interpretation accessible and intuitive.
- 🧠 AI-Powered Image Analysis – Uses Gemini API for advanced image understanding.
- 🖼️ Supports JPG, JPEG, PNG – Upload and analyze popular image formats.
- ⚡ Real-Time AI Responses – Get instant, insightful feedback.
- 💡 User-Friendly Interface – Clean and interactive UI with Streamlit.
- 🔐 Secure API Management – API keys managed safely using
.env. - 🛡️ Robust Error Handling – Smooth user experience with clean failure handling.
Frontend:
- Streamlit (UI & interaction)
- Pillow (image processing)
Backend:
- Google Generative AI (Gemini API)
- Python
- dotenv (for secure environment variables)
git clone https://github.com/iamDeepakHR/AI-Powered-Image-Analysis-Using-Python.git
cd AI-Powered-Image-Analysis-Using-Pythonpython -m venv venv
source venv/bin/activate # On Mac/Linux
venv\Scripts\activate # On Windowspip install -r requirements.txtCreate a .env file in the project directory and add:
GENAI_API_KEY=your_google_gemini_api_key
streamlit run app.py- Upload an image (JPG, JPEG, or PNG).
- Enter a query or description related to the image.
- Click "Analyze Image" and get AI-generated insights instantly!
📂 NexLens-Image-Analysis
│-- 📜 app.py # Main Streamlit app
│-- 📜 requirements.txt # Project dependencies
│-- 📜 Procfile # For deployment on platforms like Render/Heroku
│-- 📜 .env # API key (keep secret)
│-- 📜 README.md # Project documentation
We welcome contributions to improve the project! To contribute:
- Fork the repo.
- Create a new branch:
git checkout -b feature-name - Make changes and commit:
git commit -m "Add feature" - Push:
git push origin feature-name - Submit a pull request.
This project is licensed under the MIT License.
👨💻 Developed by Deepak H R