Posture_detection_using_PoseNet_23B2476
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.
- πΈ Accesses the user's webcam and detects body keypoints using PoseNet
- π§ Uses
ml5.jsfor 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
- HTML5 / CSS3
- JavaScript
- p5.js β creative coding library for rendering
- ml5.js β friendly ML library built on TensorFlow.js
PoseNet-Filter-Demo/ βββ index.html βββ sketch.js βββ images/ β βββ spects.png β βββ cigar.png
- Clone the repository:
git clone https://github.com/yourusername/posenet-filter-demo.git cd posenet-filter-demo - Start a local live server (VSCode extension or Python HTTP server):
python -m http.server
-
Open your browser and navigate to: http://localhost:8000
-
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)