Skip to content

Receiving messages from OpenAI based on Emotion captured

Notifications You must be signed in to change notification settings

mihnearad/AI-Emotion-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Webcam Mood Improver

This project utilizes OpenAI's GPT-3.5-turbo model to create a mood improver bot based on webcam analysis.

Features

  • 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.

Getting Started

  1. Clone the repository:

    • git clone https://github.com/your-username/ai-webcam-mood-improver.git
    • cd ai-webcam-mood-improver
  2. 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
      
  3. Run the webcam analysis and OpenAI interaction script:

    • python analyze_webcam.py

Usage

  • Adjust the duration parameter in analyze_webcam.py to control the analysis duration.
  • Customize the user message and system instruction in main_script.py to suit your application.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Examples

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."

About

Receiving messages from OpenAI based on Emotion captured

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages