PROJECT

AI hairstyle changer for virtual hairstyle previews

Custom software development, Face scanning, Live camera AR, AI hairstyle recommendations, Virtual try-on, Mobile app development, Web application development

  • Industry: Beauty services
  • United Kingdom Location: United Kingdom
  • Delivery time: 10 weeks
  • Technologies: JavaScript / TypeScript (Node.js), Python
3 months

This beauty salon helps guests choose hairstyles before an appointment, but a written description or static image does not show how a style fits a real face. The AI hairstyle changer takes a selfie, uploaded photo, or live camera feed and returns a hairstyle preview with the user's facial features represented in the result. The salon stylist and guest can compare options, view a live camera effect, and save a selected image for discussion.

Summary

Problem

The salon needs a clearer way to show clients what different hairstyles could look like before their visit.

Solution

The solution was an app for face scanning and virtually trying on hairstyles from selfies, uploaded photos, and live camera footage.

Result

The software is intended to help the salon increase interest in styling services by providing clearer answers before clients make a decision.

Client story

The client is a beauty salon from the United Kingdom offering beauty services. It works with people who want to compare hairstyle options before their visit.

The salon needs to display hairstyles from selfies, uploaded photos, or live camera footage. The solution supports both clients and stylists when choosing a hairstyle.

The requirement was simple: accept several types of image and camera input, track facial features, provide real-time hairstyle previews, and create images that preserve the client's appearance.

The solution was built around a short journey from face scanning through hairstyle selection and live preview to recommendations and a saved result. The experience supports both salon stylists and clients.

The client asked for

  1. Accept selfies, uploaded files, live camera footage, and appearance data.
  2. Use AI to track faces, facial features, body attributes, or hands.
  3. Display real-time AR previews of beauty effects and hairstyles.
  4. Create snapshots, compositions, avatars, or previews of the user.

Why off-the-shelf software was not enough

Off-the-shelf augmented reality platforms place virtual objects in the camera view, while general virtual try-on solutions focus on generated images. A general face-matching system can compare faces, but it does not combine hairstyle transfer, facial-feature preservation, live previews, and hairstyle recommendations in one salon environment.

Project overview

The solution was designed as a responsive web system with a mobile version for iOS and Android. A clear start screen accepts a camera scan or uploaded selfie and displays a hairstyle catalogue before launching the preview.

Face scanning and facial landmarks provide the basis for face analysis and alignment. The live preview places the selected hairstyle on the tracked face while preserving its features and skin tone in the processed image.

The recommendations screen lets users compare hairstyles based on a photo of their face. Recommendation cards, previews, the applied preview, and explanations connect the choice with their actual appearance.

The final screen brings the selected preview together in one place for taking a snapshot, downloading, or sharing. The modular structure leaves room for future hairstyle recommendations, catalogues, and administrative integrations.

Key features delivered

  • Selfie, photo upload, and live camera input
  • Face scanning with tracking guidance
  • Live hairstyle overlay on the tracked face
  • AI hairstyle recommendations
  • Facial feature extraction for style matching
  • Preservation of facial features and skin tone
  • Hairstyle catalogue and style selection
  • Screen capture
  • Images available for download and sharing

Can be added

+ Short video uploads + Video editing + Hairstyle transfer between face images + Beauty overlays + Hairstyle catalogue integration + Administrative tools

Who else can use this solution

These businesses have a similar visual-choice task, and the same solution can be adapted to their products, styles, and customer journey.

A fashion and personal-styling service

Task It recommends outfits, colors, accessories, or complete looks from a user's attributes and preferences.
How the solution helps The solution can connect face or appearance analysis with visual recommendations and shareable previews.

An eyewear, nail-care, or hair business

Task It needs to show customers how a product or style may look before purchase or treatment.
How the solution helps The same camera and face-tracking foundation can present virtual try-on previews for selected products or styles.

A fashion retailer

Task It needs AI-generated or avatar-based visual content without physical photoshoots.
How the solution helps The solution can generate appearance-based previews and capture visual content for customer-facing use.

Technology stack

JavaScript / TypeScript (Node.js)

Web and mobile application layer

This language family supports the browser interface and cross-platform mobile application.

Python

Machine-learning and vision processing

Python supports the face-analysis and machine-learning libraries used in the project.

vue

Responsive web interface

vue (a framework for building modern web interfaces) structures the browser experience.

react

User interface components

react (a library for building user interfaces) supports interface components where required.

deepar

Browser AR effects

deepar (a web SDK for camera effects and augmented reality) provides live hairstyle and beauty overlays.

opencv

Computer-vision processing

opencv (a computer-vision library) supports image and camera-frame processing.

tensorflow

Machine-learning models

tensorflow (an open-source machine-learning framework) supports AI-based image and feature processing.

mediapipe

Machine-learning solutions

mediapipe (a toolkit for building machine-learning solutions on mobile, edge, cloud, and web) supports the project's face-processing work.

dlib

Face feature analysis

dlib (a machine-learning and computer-vision toolkit) supports facial feature processing.

@capacitor/ios and @capacitor/android

IOS and Android packaging

Capacitor packages the JavaScript and web experience as mobile applications for iOS and Android.

Integrations

Device camera

The application receives live camera video and captures images for face scanning and previews.

iOS and Android

Capacitor connects the application with supported mobile devices and their cameras.

Web browser

The responsive browser version processes uploaded selfies and live camera feeds.

The result

A clear starting point for each hairstyle choice

The first screen keeps the salon guest's starting point simple: a camera scan or uploaded selfie leads into the hairstyle catalogue. The screen includes face-scan guidance and a selected-style preview tile.

How it works

  1. The camera provides a live feed or the application receives an uploaded selfie.
  2. The face-scanning module reads the face and shows the scan status.
  3. The hairstyle catalogue provides samples and the selected style appears in the preview tile.
  • Camera and photo input
  • Face-scan guidance
  • Hairstyle selection
Scan a face and select a hairstyle

Scan a face and select a hairstyle

Functions on this screen
Capture images using camera Face Scanning AI Hairstyle Recommendation

A live preview aligned to the tracked face

The second screen turns the chosen style into a real-time camera preview. Face landmarks or a face mesh keep the hairstyle overlay aligned as the camera image changes.

The preview is made for quick comparison, with a style selector, reset control, and capture option in the same view.

How it works

  1. The live camera feed provides the current image.
  2. deepar (a web AR effects SDK) and the face-tracking module identify the face position and landmarks.
  3. The selected hairstyle is transferred to the tracked face while facial features remain represented in the processed preview frame.
  • Face-tracking frame
  • Applied hairstyle overlay
  • Capture and reset controls
View the live hairstyle preview

View the live hairstyle preview

Functions on this screen
Real-time face detection Process images in real time Transfer hairstyles Maintain facial features

Recommendations that stay connected to the user's face

The recommendation screen presents hairstyle options generated from the user's face image. Cards, thumbnails, and an applied preview let the salon guest compare styles.

An explanation area presents the recommendation explanation alongside the applied preview.

How it works

  1. The uploaded or captured face image provides the input for feature extraction.
  2. The recommendation module analyzes face features and returns recommended hairstyles.
  3. The applied hairstyle preview and recommendation explanation show the selected result.
  • Face preview
  • Recommendation cards
  • Hairstyle thumbnails
Compare recommended hairstyles

Compare recommended hairstyles

Functions on this screen
Face Feature Extraction AI Hairstyle Recommendation Recommendation Explanation

A saved result for the next conversation

The final screen turns a selected preview into a shareable image. The salon stylist or guest can capture a screenshot, prepare a short recording, download the final image, or share it.

The screen provides the selected preview for download or sharing.

How it works

  1. The generated hairstyle preview image appears as the final preview.
  2. The capture module creates a screenshot or short edited video.
  3. The application provides a downloadable final image and a shareable final image.
  • Screenshot capture
  • Video recording controls
  • Download and share
Save and share the hairstyle result

Save and share the hairstyle result

Functions on this screen
Capture Screenshots

What the solution gives

With this solution, the salon can:

  • Show hairstyle options on a guest's own face
  • Offer live camera previews during a styling discussion
  • Compare AI-recommended hairstyles from a face image
  • Preserve facial features in generated hairstyle previews
  • Save images for download or sharing
  • Create a more visual path to styling-service decisions

In the end

In the end, the solution was made to take uncertainty out of the path from a guest's appearance to a hairstyle decision and support more styling-service interest.

FAQ

Thinking about building a similar system? Read the answers below to see how the main product decisions fit together.