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.
- 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.
Ensure these dependencies are installed:
- Python 3.x
- OpenCV (
cv2
) - PIL (Python Imaging Library)
requests
- Clone or download this repository.
- Install the required dependencies.
- Set your OpenAI API key in the
TriviaCaptureAI.py
script. ReplaceYOUR_API_KEY
with your actual API key.
- Run the script:
python TriviaCaptureAI.py
. - Aim your camera at the trivia question.
- Press
Spacebar
to capture and analyze the image. - View the AI-generated response.
Feel free to fork this repository, make changes, and submit pull requests. Suggestions and improvements are welcome.
This tool is for educational and entertainment purposes. Adhere to all relevant guidelines and laws for image capture and AI usage.