This Image Analyzer is a web application built with Next.js that uses Google's Gemini AI to analyze and provide detailed information about uploaded images. The app offers a user-friendly interface for image upload, displays AI-generated information about the image, and provides related keywords and questions for further exploration.
- Image upload and preview
- AI-powered image analysis using Google Gemini API
- Detailed information display about the identified image
- Related keywords generation for further exploration
- AI-generated related questions about the image
- Responsive design for various screen sizes
- Next.js 14 (React framework)
- TypeScript
- Tailwind CSS for styling
- Google Generative AI (Gemini API)
- Image Upload: Users can upload an image through the
ImageUploader
component. - Image Analysis: The uploaded image is sent to the Gemini AI API for analysis.
- Information Display: The AI-generated information about the image is displayed in the
ResultDisplay
component. - Related Keywords: The app extracts and displays related keywords from the AI response.
- Related Questions: The app generates and displays related questions about the image using a separate AI query.
- Regenerate Content: Users can click on keywords to regenerate content with a focus on that specific aspect.
- Ask Related Questions: Users can click on generated questions to get more specific information about the image.
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables:
- Create a
.env.local
file in the root directory - Add your Google Gemini API key:
NEXT_PUBLIC_GOOGLE_GEMINI_API_KEY=your_api_key_here
- Create a
- Run the development server:
npm run dev
- Open
http://localhost:3000
in your browser
This project can be easily deployed on platforms like Vercel or Netlify. Make sure to set up the environment variables in your deployment platform's settings.
- Implement user authentication for personalized experiences
- Add image categorization and tagging features
- Implement a gallery of previously analyzed images
- Optimize performance for faster image processing
- Add multi-language support for global users
This project is licensed under the MIT License.