Skip to content

Rami-Touati/hydration_detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Energy Drink Detection App

A computer vision application that helps track energy drink consumption and provides hydration recommendations using hand gesture recognition.

Features

  • Real-time hand gesture recognition
  • Energy drink consumption tracking (1-5 drinks)
  • Automatic water intake recommendations
  • Visual feedback for hand tracking

Requirements

  • Python 3.10
  • Anaconda
  • Webcam

Installation

  1. Clone this repository:
git clone [your-repository-url]
cd Energy_drink_cv
  1. Create and activate the conda environment:
conda create -n energy_drink python=3.10 -y
conda activate energy_drink
  1. Install required packages:
pip install opencv-python mediapipe numpy

Usage

  1. Run the program using the batch file:

    • Double-click run_program.bat

    OR

    Run manually in Anaconda Prompt:

    conda activate energy_drink
    python main.py
  2. Show your hand to the camera:

    • 1 finger = 1 energy drink
    • 2 fingers = 2 energy drinks
    • 3 fingers = 3 energy drinks
    • 4 fingers = 4 energy drinks
    • 5 fingers = 5 energy drinks
  3. The program will display:

    • Number of energy drinks detected
    • Recommended water intake
    • Hand tracking visualization
  4. Press 'q' to quit the program

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors