# What this is
Webkul's AI glasses virtual try-on is a two-step, browser-ready experience that helps shoppers see and size frames on their own face before buying. It first measures pupillary distance (PD) automatically, then places frames on a live camera feed scaled to that measurement. The product runs where customers already shop: online stores, mobile apps, kiosks, marketplaces, and optical platforms, with no extra hardware or downloads.
# How it works, step by step
- Open the experience on any device with a camera.
- The AI detects the face and tracks both pupils to measure PD over multiple frames for accuracy.
- With PD recorded, the try-on opens and a frame appears on the live face, scaled and positioned using facial landmarks and the measured PD.
- The system keeps frames stable as the user moves, allows instant switching between styles, and supports photo capture for sharing or decision-making.
# Core components
- AI-powered PD measurement that tracks pupils across multiple frames.
- Real-time facial landmark detection and stable face tracking.
- Automatic frame positioning and scaling based on measured PD.
- Instant frame switching, photo capture, and integration hooks for commerce flows.
# Why PD measurement matters
Pupillary distance is the horizontal gap between pupils in millimetres. Opticians use it to align prescription lenses inside a frame. When PD is correct, lenses sit in front of the wearer's optical centre, which affects comfort and vision. Webkul's automatic PD measurement removes the need for a separate optician visit and lets customers confirm fit and prescription alignment online.
# Business benefits
- Higher conversion: letting shoppers try frames on their own face addresses the main hesitation in buying eyewear online.
- Prescription fulfilment: accurate PD lets platforms accept prescription lens orders without requiring an in-person PD measurement.
- Broader inventory: retailers and optical chains can offer styles not physically present in-store by letting customers try them virtually.
# Who can use it
- Online eyewear retailers looking to turn product pages into interactive try-on pages.
- Optical chains and in-store opticians who want to extend their visible catalogue.
- Prescription eyewear platforms that need PD data to fulfil orders remotely.
- Luxury and designer brands seeking a polished digital shopping experience.
- Marketplaces that want a consistent try-on interface across multiple vendors.
- D2C eyewear brands and corporate vision benefit programs embedding try-on into member portals.
# Practical details for implementation
# What to expect when deploying
Expect an interactive, camera-based flow that requires only a browser or app camera permission. The system provides PD as a numeric output and applies that measurement to scale frames correctly in real time. Integration points include product pages, mobile apps, checkout flows, and kiosks.
# Bottom line
This virtual try-on pairs a quick, automated PD measurement with live, stable frame rendering. That combination targets the two main barriers to online eyewear purchases: uncertainty about how a frame will look and uncertainty about fit for prescription lenses. For retailers and platforms selling corrective or fashion eyewear, the tool aims to increase confidence, reduce returns, and enable prescription orders without extra in-person steps.