Virtual Eyewear Try-on sample uses the VisageAR API to implement a simple augmented reality application for virtual try-on of eyeglasses.
The project must be installed on a web server in order to run (it can not run from a local disk). For a quick trial from Visage Technologies web server, click here and choose Virtual Eyewear Try-on.
To install the application on your own web server, upload folders lib and Samples to your web server. To run the application access the Samples/VirtualEyewearTryOn/eyewear.html page via a web browser.
The application must be licensed in order to function. Licensing is based on License Key Files. To obtain the License Key File:
VisageModule.FS_createPreloadedFile('/', licenseName, licenseURL, true, false, function(){ }, function(){ alert("Loading License Failed!") });
For further information please read licensing section of the documentation.
Virtual Eyewear Try-on is implemented in HTML and JavaScript using the VisageAR API for rendering and face tracking, three.js library and MediaDevices.getUserMedia() API to access camera. For information on preparing models for use with VisageAR see the AR modelling guide.
Virtual Eyewear Try-on sample is tested on the recent browsers on Windows, Mac, Android and iPhone platforms. Results are represented in the following table (NOTE: Application is not adapted to mobile devices.).
96 | 91 | 81 | 88 | 14 | |
95 | 93 | 64 | -- | -- | |
-- | -- | -- | -- | 14 |