TriviaCaptureAI

TriviaCaptureAI is a Python application that combines computer vision and AI to analyze images for trivia questions and provide answers using OpenAI's GPT-4.

Features

  • Image Capture: Utilizes cv2 for live image capture.
  • Image Processing: Automatically resizes and crops images.
  • AI Analysis: Leverages OpenAI's GPT-4 for trivia question analysis.
  • Response Timing: Tracks and reports AI response time.

Installation

Ensure these dependencies are installed:

  • Python 3.x
  • OpenCV (cv2)
  • PIL (Python Imaging Library)
  • requests

Setting Up

  1. Clone or download this repository.
  2. Install the required dependencies.
  3. Set your OpenAI API key in the TriviaCaptureAI.py script. Replace YOUR_API_KEY with your actual API key.

Usage

  1. Run the script: python TriviaCaptureAI.py.
  2. Aim your camera at the trivia question.
  3. Press Spacebar to capture and analyze the image.
  4. View the AI-generated response.

Contributing

Feel free to fork this repository, make changes, and submit pull requests. Suggestions and improvements are welcome.

Disclaimer

This tool is for educational and entertainment purposes. Adhere to all relevant guidelines and laws for image capture and AI usage.