Skip to content

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Posture-detection-using-PoseNet

Posture_detection_using_PoseNet_23B2476

PoseNet Live Filter Demo πŸŽ₯πŸ•ΆοΈ

This project uses ml5.js and PoseNet to perform real-time human pose detection via webcam and apply fun visual filters like glasses and a cigar based on facial keypoints.

πŸ” Overview

  • πŸ“Έ Accesses the user's webcam and detects body keypoints using PoseNet
  • 🧠 Uses ml5.js for simplified machine learning integration in the browser
  • πŸ•ΆοΈ Dynamically overlays filters (like glasses or cigar) onto detected facial points
  • πŸ”„ Flipped video rendering to simulate a mirror-like experience
  • βœ… Option to toggle filters directly from the UI

πŸ’» Tech Stack

  • HTML5 / CSS3
  • JavaScript
  • p5.js β€” creative coding library for rendering
  • ml5.js β€” friendly ML library built on TensorFlow.js

πŸ“ Folder Structure

PoseNet-Filter-Demo/ β”œβ”€β”€ index.html β”œβ”€β”€ sketch.js β”œβ”€β”€ images/ β”‚ β”œβ”€β”€ spects.png β”‚ β”œβ”€β”€ cigar.png

πŸš€ How to Run

  1. Clone the repository:
    git clone https://github.com/yourusername/posenet-filter-demo.git
    cd posenet-filter-demo
    
  2. Start a local live server (VSCode extension or Python HTTP server):

Python 3.x

python -m http.server

  1. Open your browser and navigate to: http://localhost:8000

  2. Allow camera access to begin real-time pose tracking.

πŸ§ͺ Features Real-time pose detection via webcam

Draws keypoints and skeleton overlay

Applies virtual filters using facial landmark positioning

Filter toggle control via checkbox (no page reload)

About

Posture_detection_using_PoseNet_23B2476

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages