This project utilizes OpenAI's GPT-3.5-turbo model to create a mood improver bot based on webcam analysis.
- Analyze webcam feed for age, gender, and emotion.
- Interact with the GPT-3.5-turbo model based on the webcam analysis results.
- Mood improvement suggestions from the chatbot.
-
Clone the repository:
git clone https://github.com/your-username/ai-webcam-mood-improver.git
cd ai-webcam-mood-improver
-
Set up OpenAI API key:
- Create a
.env
file in the project root. - Add your OpenAI API key to the
.env
file:OPENAI_API_KEY=your-api-key-here
- Create a
-
Run the webcam analysis and OpenAI interaction script:
python analyze_webcam.py
- Adjust the
duration
parameter inanalyze_webcam.py
to control the analysis duration. - Customize the user message and system instruction in
main_script.py
to suit your application.
This project is licensed under the MIT License - see the LICENSE file for details.
Terminal reply:
Last Values: Average Age: 37.0 Highest Gender: Man Highest Emotion: Happy
OpenAi: "You've reached the prime of your life, with so much experience and wisdom to offer. Embrace the opportunities ahead and let your light shine brightly, bringing joy to yourself and those around you."