Skip to content

SoulSniper-V2/ai_webcam_gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# GUI AI Assistant

This is a GUI-based AI Assistant that uses Google Gemini 2.0 for image-based content generation and question answering. It allows you to capture images from your webcam, send them with prompts to Gemini, and get detailed responses in an interactive graphical interface.

## Features:

* Capture an image from your webcam via GUI.
* Send the image along with prompts to Gemini for analysis.
* Ask follow-up questions about the captured image.
* Interactive graphical user interface using tkinter.

## Installation:

1. Clone the repository:
git clone https://github.com/SoulSniper1212/AI-WEBCAM-GUI.git
cd AI-WEBCAM-GUI
  1. Install the required dependencies:

    pip install -r requirements.txt
  2. Set your Google Gemini API key:

    • Create a .env file in the root directory:

      echo "GEMINI_API_KEY=your_api_key_here" > .env

Usage:

Run the script using:

python3 main.py

The GUI window will open, allowing you to capture photos, analyze them with Gemini, and ask follow-up questions.

Notes:

  • Ensure your webcam is connected and functional before running the app.
  • Make sure your .env file is in the same directory as main.py.

Requirements:

  • Python 3.8+
  • OpenCV
  • Pillow
  • Google Generative AI
  • tkinter
  • dotenv

You can find all dependencies in requirements.txt.

License:

Custom License for GUI AI Assistant

Permission is granted to use this software for personal and educational purposes only. Commercial use, modification, or redistribution of this software, in whole or in part, is strictly prohibited without explicit written permission from the author.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.

Author:

Arush Wadhawan

About

An interactive GUI app that captures images from your webcam and sends them to Google Gemini 2.0 for analysis. Get detailed AI responses and ask follow-up questions in real-time. Easy setup with OpenCV, Pillow, tkinter, dotenv, and Google Generative AI for quick image-based insights.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages