Just Look into the Camera: AI Allows You to Try on Glasses Without Visiting an Optician

November 25, 2025

Imagine that to try on glasses, all you need to do is look into your phone’s camera. The system recognises your face, determines its scale, “removes” the glasses you are currently wearing, measures all the necessary parameters and instantly recommends frames and lenses that fit you perfectly. This is not a distant future but the direction in which artificial intelligence and 3D technologies are rapidly progressing, transforming our shopping habits.

Virtual try-on technology for eyewear, which became popular during the pandemic, is now an integral part of modern optical retail. Global brands such as Mister Spex already use it, and its developers – for example, Fittingbox – claim that virtual try-ons can triple sales.

Still, even if you find frames you like in an online shop, one question often remains: will the size actually fit?

“The accuracy of virtual frame fitting completely depends on correct scale estimation,” explains Dr Artūras Serackis, a researcher involved in the SustAInLivWork project that is establishing the Artificial Intelligence Competence Centre, and a professor at Vilnius Gediminas Technical University. “For the frames to appear precisely positioned on the face in a virtual environment, the system must know not only the scale of the glasses but also the scale of the person’s face in the image. This is one of the most complex technological challenges.”

According to him, the same issue arises when trying to accurately measure parameters such as pupillary distance from a photo. In such cases, a reference object with known dimensions is required.

“For instance, Fittingbox uses standard-sized bank cards. The user briefly places a card next to their face, and the system determines the scale based on it. But is this practical today, when most payments are made via smartphone and many people do not carry physical cards anymore?” notes the researcher.

Trying on Glasses Without Removing Your Own

Dr Serackis and his colleagues are currently focusing on advanced facial-analysis technologies capable of automatically assessing image quality, facial orientation and measurement accuracy.

“For example, it is crucial that the face in the photo is parallel to the camera axis – otherwise measurement errors can increase significantly,” he stresses. AI models identify key facial points and analyse their positions to determine the exact head orientation.

Although many AI models can recognise up to 468 facial landmarks, the number alone does not guarantee accurate measurements. High-precision results require highly reliable methods, including assessment of lighting direction, type and intensity, as well as other factors that influence image quality.

“Consider a situation where someone wants to try on glasses while already wearing a pair – which likely happens in over 98 percent of cases. It is far more convenient to use the service without taking off your own glasses. In such cases, we need another class of AI models that can detect glasses and ‘remove’ them from the image,” explains Dr Serackis.

Generative AI can remove glasses from a photo, but this introduces the risk of distortions, reducing measurement accuracy. This challenge has sparked a new research direction, requiring advanced computing infrastructure and specialised AI training servers.

The Biggest Challenge: Cost of Preparing 3D Models

Once the system accurately estimates scale, extracts the necessary facial parameters and “removes” existing glasses, the next step is virtual try-on of different frames – including size adjustment. This requires a 3D model of each frame design.

“Eyewear manufacturers do not publish their 3D models, so obtaining them directly is impossible. To have a 3D model, we must create it ourselves: either by manually modelling it in specialised software, which is time-consuming and requires skilled specialists, or by physically scanning the frame and post-processing the model. The third option is to use AI models capable of generating 3D frame models automatically based on product images from online shops,” he says.

The main challenge here is the cost of producing 3D models. Frame collections are updated at least twice a year, and hundreds of new designs appear annually. If each model had to be created manually, virtual try-on services would become financially impractical or offer only a limited selection.
“At first glance, there seem to be plenty of 3D scanning solutions available, but in practice they have significant limitations. High-resolution scanners designed for jewellery capture too small an area – glasses simply don’t fit. Meanwhile, handheld scanners designed for larger objects struggle to reproduce thin frame elements accurately,” explains the SustAInLivWork researcher.

Towards a Next-Generation Measurement System

According to Dr Serackis, the arrival of NVIDIA technologies such as NeRF and later advanced alternatives like One-2-3-45++ has allowed AI to predict the full shape of an object from a single image and generate 3D models. However, for eyewear, such models are not yet specialised enough – they often produce asymmetries or distorted proportions. Moreover, most are not designed to work with multiple images, though this capability is essential in this field.

“That’s why we are developing alternative, original methods: step by step we analyse the classical 3D modelling process and look for ways to automate each stage using AI. Although we have not yet reached a breakthrough, we are working with leading AI and computer-vision experts in Lithuania – within the SustAInLivWork centre and partner institutions at Vilnius Gediminas Technical University. With powerful computing resources for AI training, we are confident that in the coming years we will develop a highly advanced solution for working with eyewear frames,” he says.

SustAInLivWork is the first competence centre of its kind in Lithuania, systematically consolidating knowledge and skills in AI. It brings together four leading Lithuanian universities – Kaunas University of TechnologyVytautas Magnus UniversityLithuanian University of Health Sciences, and Vilnius Gediminas Technical University – in partnership with Tampere University (Finland) and Hamburg University of Technology (Germany).

It is a long-term, cross-sectoral platform connecting science, business, the public sector, and society.
The SustAInLivWork project is funded by the Horizon Europe programme (No. 101059903) and by the European Union funds for 2021–2027 (Project No. 10-042-P-0001).

Related news

Student Memo: Where to park your car or bicycle, eat, and find your classrooms
Student Memo: Where to park your car or bicycle, eat, and find your classrooms
When starting your studies, it is not always clear during the first week where you can park your car or bicycle, which building your seminar will be in, or where you can eat or heat up your own food during breaks. To make settling into the academic year easier, we have prepared this memo. Student Car Parking: Students attending lectures at Saulėtekio al. 11 can park their cars in the lot located on Šatrijos Raganos Street. There is no barrier in this lot. How to find the lot: Driving from Saulėtekio al. – going up the hill past the roundabout and the university buildings. Or entering from Pragiedrulių, Mileišiškių sodų, or other streets onto Šatrijos Raganos Street – going down the hill before the roundabout and the university buildings. Students attending lectures on Plytinės Street can park in the lots located there. Students can enter the gated lot by tapping their activated student ID card at the terminal. Entrance to the lots is from Plytinės Street. Antanas Gustaitis Aviation Institute (AGAI) students, lecturers, and students or staff arriving at "Linkmenų fabrikas" can park in all lots. The barrier opens by tapping an activated student or staff ID card at the terminal. There are no dedicated parking lots for students attending lectures at the Old Town Campus (Trakų rūmai). Canteens and Cafes: Saulėtekis Campus: "Maisto imperija" (Building S2, 1st floor) – weighed food (you can build your own plate) – 1.70 € per 100 g, lunch of the day – 7.50 €, snacks, coffee, and other drinks. You can also heat up your own food here. Working hours: Monday–Thursday: 08:00–16:00; Friday: 08:00–15:00. "ARC BISTRO" (Building S3, 1st floor) – a menu consisting of a multi-course selection and daily lunch at a fixed price (up to 10 €), as well as snacks, coffee, and other drinks. Working hours: Monday–Friday: 11:00–15:00. Plytinė Campus (P2, 1st floor): "Confetti" – a menu consisting of a multi-course selection and daily lunch at a fixed price (up to 10 €), as well as snacks, coffee, and other drinks. You can also heat up your own food here. Working hours: Monday–Thursday: 09:00–16:00; Friday: 09:00–15:00. Old Town Campus (Senamiesčio rūmai): "Confetti" (Islandijos str. 3) – a menu consisting of a multi-course selection and daily lunch at a fixed price (up to 10 €), as well as snacks, coffee, and other drinks. Working hours: Monday–Friday: 07:45–15:00. Places where you can heat your own food in microwaves: When using microwaves, please maintain cleanliness, follow safety rules, and respect others: do not put in or heat items with shiny surfaces (e.g., cutlery, aluminum foil, etc.), do not slam the doors or other surfaces, wipe or clean the inside of the microwave or other surfaces (including the kitchenette) if needed, do not cut in line, and do not stop someone else's food from heating without permission, etc. Saulėtekis Campus: In the "Maisto imperija" canteen (Building S2, 1st floor), as well as in the Sustainability Centre (Building S5), and the 5th and 6th-floor kitchenettes in Building S6. Plytinė Campus: In the "Confetti" cafe (Building P2, 1st floor). Old Town Campus: In the Faculty of Architecture's 2nd and 3rd-floor kitchenettes (at the end of the corridor). AGAI: In the 2nd-floor kitchenette of the old building (near the Dean's office). It is planned that microwaves will also be available in the new building in the future. Linkmenų Campus: In the 2nd-floor kitchenette at "Linkmenų fabrikas". Library: Room 119, 1st floor. You can also make tea/coffee here. Places to leave your bicycle: Saulėtekis Campus: At special bike racks near the entrance to Building S2, and in the Central Building parking lot. Plytinė Campus: In the two designated bicycle shelters in the courtyard between buildings P1 and P2. Old Town Campus: At special bike racks near the entrances to each building. AGAI and Linkmenų Campus: At special bike racks near both departments. Library: At special bike racks near the entrance. Department/Building Abbreviations: Saulėtekis Campus (Saulėtekio al. 11, Vilnius): S1 Central Building (Administration, International Studies Centre, International Relations Office, etc.) S2 Classroom Building S3 Educational Building (Faculty of Civil Engineering, Faculty of Business Management) S4 Classroom Building (Faculty of Environmental Engineering, Sustainability Centre, Food Laboratory) S5 Educational Building (Faculty of Environmental Engineering, Sustainability Centre, Food Laboratory) S6 Laboratory Building (Faculty of Fundamental Sciences, Information Technology and Systems Centre, Academic Support Centre, etc.) S7 Laboratory Building Plytinė Campus (Plytinės str. 25, Vilnius): P1 or P Laboratory Building P2 Educational Building (Faculty of Electronics, Faculty of Mechanics, Faculty of Transport Engineering) P3 Educational Building Linkmenų Campus (Linkmenų str. 28, Vilnius): L1 Building (Institute of Building Materials) L2 Building (Road Research Institute) L3 Building L4 Building L5 Educational Building (Linkmenų fabrikas) L6 Educational Building (Antanas Gustaitis Aviation Institute) Old Town Campus (Trakų str. 1, Vilnius): T1 or T Educational Building (Faculty of Architecture) T2 Educational Building (Faculty of Creative Industries) T3 Educational Building T4 Educational Building T5 Educational Building Old abbreviations that might still appear in some contacts: SNR – Senamiesčio rūmai (Old Town Campus) SRK-I – Saulėtekio rūmų pirmas korpusas (Saulėtekis Campus First Building) SRK-II – Saulėtekio rūmų antras korpusas (Saulėtekis Campus Second Building) SRL – Saulėtekio rūmų laboratorinis korpusas (Saulėtekis Campus Laboratory Building) SRL-II – Saulėtekio rūmų antras laboratorinis korpusas (Saulėtekis Campus Second Laboratory Building) MAC – Saulėtekio centriniai rūmai (Saulėtekis Central Building) AGAI TLK – Antano Gustaičio Aviacijos instituto Treniruoklių ir laboratorijų korpusas (Antanas Gustaitis Aviation Institute Simulator and Laboratory Building). Other Addresses: Kyviškės Airfield: Lakūnų str. 7D, Kyviškės Sports and Art Centre: Saulėtekio al. 28, Vilnius Library: Saulėtekio al. 14, Vilnius Lithuanian Maritime Academy: I. Kanto str. 7, Klaipėda. Thematic Reading Rooms in Faculties: Architecture and Creative Sciences Reading Room (Trakų str. 1, T1, 1.15, Vilnius) Technology and Management Sciences Reading Room (Saulėtekio al. 11, S1, C03, Vilnius) Mechanics, Electronics, and Transport Sciences Reading Room (Plytinės str. 25, P2, 179, Vilnius) Maritime Sciences Reading Room (I. Kanto str. 7, Klaipėda)
More