Giter VIP home page Giter VIP logo

posture-detection's Introduction

Posture Detection w/ MediaPipe and OpenCV

Introduction

The Posture Detection project is a machine learning-based system designed to detect and classify human posture in real-time using video input. Utilizing various algorithms and real-time processing, this project aims to assist users in maintaining proper posture, especially during prolonged periods of sitting.

Features

  • Real-Time Posture Detection: Leverages a webcam to monitor the user's posture continuously.
  • Pose Estimation: Utilizes MediaPipe's Pose solution for accurate pose landmark detection.
  • Posture Classification: Employs a machine learning model to classify the posture as 'Good' or 'Needs Adjustment'.
  • Feedback System: Provides real-time visual feedback on the user's current posture.

Components

  • ML_Pipeline.py: Sets up the machine learning pipeline, including data preprocessing, model training (using various algorithms), and evaluation.
  • Posture Detection.py: The main script for real-time posture monitoring, leveraging the webcam and ML model to provide immediate posture assessment.
  • captureData.py: Similar to the main script but potentially used for data collection or additional testing purposes.

Installation

To set up the project, follow these steps:

  • Clone the repository.
  • Install the required dependencies:

pip install -r requirements.txt

Run Posture Detection.py to start the posture detection in real-time.

Usage

Ensure your webcam is enabled and properly positioned. Execute Posture Detection.py to start monitoring. The system will display your current posture status on the screen.

Technologies Used

  • Python
  • OpenCV (cv2)
  • MediaPipe
  • Scikit-Learn
  • NumPy

posture-detection's People

Contributors

abdulhadialaraj avatar

Watchers

Kostas Georgiou avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.