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
- ๐ธ 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
- Python 3.9 or above (recommended)
- Webcam-enabled device
# 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.pyplay-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
- ๐ค ViT Face Expression Model
- ๐ง Hugging Face Transformers
- ๐ท Streamlitโs built-in camera input
- ๐งฎ PyTorch for inference
- ๐ผ๏ธ PIL for image processing
- Kids' emotional awareness games
- Mood-based digital art or plants
- Emotional journaling apps
- Mental health awareness demos
This app uses Hugging Face-hosted models for free. If you hit limits, just run:
huggingface-cli login- Fork the repo
- Create a branch:
git checkout -b my-feature - Make changes and commit:
git commit -m "Add: feature" - Push your branch:
git push origin my-feature - Open a pull request โ
Clean and fun contributions welcome!
MIT License ยฉ Rakshath U Shetty
- Core emotion-to-plant mapping
- Camera input + live mood detection
- Neutral โ Happy โ Sad mapping
- ๐๏ธ 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!
