Skip to content

Rakshath66/Play-With-Plant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

17 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฑ AI Mood Plant โ€” Emotion-Aware Interactive App

A playful and emotionally intelligent plant companion that reacts to your facial expression. Powered by facial emotion recognition and Streamlit UI โ€” just click, capture, and watch the plant react in real time!

โœ… Built with: FER Transformer, Streamlit, PIL, PyTorch, Transformers

GitHub Repo stars GitHub forks MIT License


๐ŸŒฟ Preview

image


๐Ÿง  Features

  • ๐Ÿ“ธ Live camera input to capture your emotion
  • ๐Ÿง  Classifies face into Happy, Neutral, or Sad
  • ๐ŸŒฑ Displays a plant that reflects your mood
  • ๐Ÿชž Real-time emotion detection with a simple UI
  • ๐ŸŽจ Clean and engaging layout for kids and adults

๐Ÿš€ Getting Started

๐Ÿ”ง Prerequisites

  • Python 3.9 or above (recommended)
  • Webcam-enabled device

๐Ÿ–ฅ๏ธ Local Installation

# 1. Clone the repository
git clone https://github.com/rakshath66/play-with-plant.git
cd play-with-plant

# 2. (Optional) Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate

# 3. Install dependencies
pip install -r requirements.txt

# 4. Run the app
streamlit run app.py

๐Ÿ—‚๏ธ Project Structure

play-with-plant/
โ”œโ”€โ”€ app.py                  # Main Streamlit app
โ”œโ”€โ”€ plants/                 # Mood-based plant images (happy.jpg, sad.jpg, etc.)
โ”œโ”€โ”€ images/                 # UI preview image (optional)
โ”œโ”€โ”€ requirements.txt        # Python dependencies
โ”œโ”€โ”€ README.md               # This file

๐Ÿ“š Technology Used

  • ๐Ÿค— ViT Face Expression Model
  • ๐Ÿง  Hugging Face Transformers
  • ๐Ÿ“ท Streamlitโ€™s built-in camera input
  • ๐Ÿงฎ PyTorch for inference
  • ๐Ÿ–ผ๏ธ PIL for image processing

๐ŸŒˆ Example Use Cases

  • Kids' emotional awareness games
  • Mood-based digital art or plants
  • Emotional journaling apps
  • Mental health awareness demos

๐Ÿ” No API Keys Needed

This app uses Hugging Face-hosted models for free. If you hit limits, just run:

huggingface-cli login

โญ Contribute

๐Ÿ›  Steps to contribute:

  1. Fork the repo
  2. Create a branch: git checkout -b my-feature
  3. Make changes and commit: git commit -m "Add: feature"
  4. Push your branch: git push origin my-feature
  5. Open a pull request โœ…

Clean and fun contributions welcome!


๐Ÿ“ƒ License

MIT License ยฉ Rakshath U Shetty


๐Ÿ›ฃ๏ธ Roadmap

โœ… Phase 1: Launch

  • Core emotion-to-plant mapping
  • Camera input + live mood detection
  • Neutral โ†’ Happy โ†’ Sad mapping

๐Ÿ”œ Phase 2: Next Features

  • ๐ŸŽž๏ธ Add GIF-style animation for plants
  • ๐Ÿง  Mood journal with time logs
  • ๐ŸŒ Share plant mood on social media
  • ๐Ÿ—ฃ๏ธ Voice feedback based on emotion

๐Ÿ‘จโ€๐Ÿ’ป Built by Rakshath U Shetty


Let me know if you'd like badges for Streamlit Cloud or Hugging Face Spaces added!

About

๐ŸŒฟ An interactive AI-powered plant that reacts to your facial emotions. Built with Transformers, PyTorch, and Streamlit โ€” capture your mood, and the plant responds with joy, calmness, or sadness!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages