Try-On

Try-On enables Customers to virtually try on eyewear. Try-On consists of a scan to capture a Customer turning their face from side-to-side, and an overlay that visualizes frames augmented onto a face.

The Try-On product has two components, the Try-On Scan and Try-On Overlay and is available through the browser SDK, Android SDK, and iOS SDK.

Try-On Scan

The Try-On Scan is the process in which a customer’s face is recorded from 180 degrees for analysis and AR visualization.

Face Capture

Face Capturee This is the series of steps that involve a customer capturing a video of their face turning from side to side.

Scale Capture

Scale Capture This step requires a customer to capture a picture of them holding up any common plastic card from their wallet (credit card, ID, reward card, etc) against their forehead. These cards are a standardized size and are used as a reference object to calculate the customer’s facial data to an accurate scale.

Face Reconstruction

Face Reco This is a series of behind-the-scenes algorithms that use the Face Capture and Scale Capture to reconstruct the customer’s face with accurate measurements.

Try-On Overlay

This is a visualization of the customer’s Face Capture augmented with a pair of Digital Glasses.

Try-On Overlay


There are two types of Try-On Overlays:

  • Interactive: The customer can interact with this visualization by moving it back and forth in up to 180 degrees depending on the range of the head turn in the Face Capture.
  • Still: The customer can view a still, non-interactive, image of the visualization from any in up to 180 degrees depending on the range of the head turn in the Face Capture. The most common overlay is a ‘frontal’ (i.e. 0 degrees). This is commonly used on the shelf page to show customers a single image of themselves in one or all of the styles. It is also commonly used on favorites pages so customers can see a side-by-side comparison view of themself in their favorite styles.

Try-Ons are currently rendered in standard definition (640x480). High Definition rendering is on the 2020 rooadmap.

Identifying Try-Ons

Each Try-On Overlay is identified by two components:

  • A scan_id: A scan_id (or ditto_id) is a unique 40-character hexadecimal string that identifies and recalls a customer’s Face Capture and corresponding Face Reconstruction. When Ditto’s clients link a scan_id to a customer account, it enables that customer to login and reuse an Overlay online, across devices and in stores.
  • A glasses_id: A glasses_id (or product_id) is a unique identifier for a pair of Digital Glasses.

The term Try-On is used to refer to the combined Try-On Scan and Try-On Overlay processes above that enable a customer to virtually try on glasses.

Additional Detail

A scan_id is created after each unique successful Face Reconstruction. A customer can create several scan_ids by going through the Face Capture and Reconstruction process several times. A customer can use a single scan_id to virtually try on all available Digital Frames identified by glasses_id.

A scan_id is reused again when a customer recalls a previously created Try-On Scan in a subsequent session to see a Try-On Overlay, Face Insights or Frame Recommendations. This tends to happen when scan_ids are saved to customer accounts or added to cookies and the customer can log in to access a previously created scan_id to try on glasses again.

Ditto typically charges based on Monthly Users, defined as the number of scan_ids created and/or recalled in a given month.