Visitar URL original
GitHub - Ys-sudo/hair-coloring-app: AR app to test different hair color in real time on video and images. Using MediaPipe Image segmentation task · GitHub
Skip to content

About

AR app to test different hair color in real time on video and images. Using MediaPipe Image segmentation task

Topics

Resources

Stars

18 stars

Watchers

2 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Hair Coloring App

Opera Snapshot_2024-04-14_120856_hair-coloring-app-v1 glitch me

Browser-based hair color preview built with MediaPipe Image Segmenter and JavaScript.

Features

  • Real-time webcam segmentation.
  • Local image upload with no server upload.
  • Color, blur, and opacity controls.
  • Self-hosted MediaPipe hair segmentation model.
  • Responsive browser interface.

Run locally

The browser must load the model over HTTP rather than directly from the file system:

python3 -m http.server 8080

Then open http://localhost:8080.

Privacy

Camera frames and selected images are processed locally in the browser. The application does not upload them.

Third-party software

This project uses @mediapipe/tasks-vision and the official MediaPipe hair segmentation model. Third-party components retain their respective licenses. See THIRD_PARTY_NOTICES.md.

License

Original project code and assets are available under the MIT License.

About

AR app to test different hair color in real time on video and images. Using MediaPipe Image segmentation task

Topics

Resources

Stars

18 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages