Improved detection of spectacle frame profile

Through artificial intelligence recognition and deep learning technology, the adaptive parameters of the glasses frame are automatically detected and measured, and the problems of improper scaling and distortion of the virtual frame during virtual trial stand are solved, achieving high accuracy and stable virtual trial stand effect.

CN118891572APending Publication Date: 2024-11-01ESSILOR INTERNATIONAL(COMPAGNIE GENERALE D OPTIQUE)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380027867.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-23
Filing Date
2023-03-14
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing virtual trial-on technology is difficult to automatically detect and measure the adaptive parameters of the glasses frame, resulting in improper scaling, distortion and disengagement of the face of the virtual frame, and manual outline drawing is complicated, which can easily lead to errors.

Method used

Artificial intelligence is used to identify the outline of the real glasses frame, determine anchor points through deep learning neural networks, and use virtual frame placement and image repair, combining semantic segmentation models and generation adversarial networks to automatically detect and replace real frames.

Benefits of technology

Automatic glasses frame profile recognition and accurate placement of virtual frames are realized, which improves the stability and accuracy of virtual trial-ons, reduces manual intervention, and improves the reliability of adaptive parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118891572A_ABST
    Figure CN118891572A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a computer-implemented method for measuring at least one fitting parameter of a spectacle frame of a wearer, the method comprising:-obtaining at least one picture of the spectacle frame worn by the wearer,-determining at least a contour of the spectacle frame, the contour determination is carried out by artificial intelligence in order to derive at least one fitting parameter of the spectacle frame on the wearer from the contour.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] introduction

[0002] The present disclosure relates to the measurement of fit parameters of a wearer's eyeglass frames.

[0003] The present disclosure may be applied, for example, to a virtual try-on ("VTO") of eyewear desired by a user (usually online). For example, such a virtual try-on may be achieved by the wearer using a smartphone and taking a 2D picture of their face. Alternatively, for example, an eye care professional ("ECP") may achieve a more complex picture (3D point cloud).

[0004] So far, known virtual try-on solutions have the following three main problems:

[0005] - No solution proposes automatic detection of spectacle frames (more specifically their outline, more specifically at least their outer outline). For example, but not by way of limitation, it may be desirable to erase in a captured picture the spectacle frames currently worn by the wearer in order to replace them with another pair of frames that the wearer may wish to order. Figure 1 An example of a generally known solution is shown;

[0006] - In most known solutions, the frames are not scaled correctly on the wearer's head (as also shown in the figure, where the virtual frames appear too small);

[0007] - Virtual glasses, more specifically glasses virtually displayed on the wearer's face, are often distorted and can become detached from the wearer's face during large movements of the wearer. Known solutions are not robust to large movements of the head.

[0008] The observed problems with the prior art methods of VTO may be due to the difficulty in correctly measuring the fitting parameters of the real glasses on the wearer's face to derive some important anchor points from these parameters, based on which the virtual glasses can be displayed on the wearer's face.

[0009] The problem of not being able to obtain reliable fitting parameters can also be due to the poor quality of the recognition of the real glasses on the wearer's picture.

[0010] This problem may be commonly encountered in other applications, for example, when an eye care professional (eg, an optician) attempts to determine fitting parameters for a wearer, typically when the wearer is trying on desired new glasses.

[0011] In such applications, measurements of the fitting parameters are usually obtained from images of the wearer wearing the glasses. The images can be two-dimensional or three-dimensional (2D and 3D). A step before calculating the fitting parameters is to outline the so-called "bounding box" of the glasses frame. This step is also referred to as "frame detection" below.

[0012] This step may include, for example, frame shape determination and / or lens shape detection on the wearer's face.

[0013] Currently, the detection of the frames is not automatic. Typically, an eye care professional (ECP) uses a computer that at least temporarily stores pictures of the wearer (wearing the glasses) and has to manually move and click a computer mouse (or equivalent device) to outline a bounding box around the frames on each picture before processing the determination of the fitting parameters.

[0014] This step of outlining the frame (and / or the lenses in the frame) is tedious for ECP. In order to proceed faster, errors or at least inaccuracies may be introduced, and the quality of the determination of the fitting parameters may then be poor.

[0015] The present disclosure aims to improve this situation. Summary of the invention

[0016] To this end, the present invention proposes a computer-implemented method for measuring at least one fitting parameter of a wearer's spectacle frame, the method comprising:

[0017] - obtaining at least one picture of the wearer wearing said spectacle frame,

[0018] - determining at least a contour of the spectacle frame in order to derive from said contour at least one fitting parameter of the spectacle frame on said wearer,

[0019] Therein, the contour determination is performed by means of artificial intelligence.

[0020] The above expression "fitting parameter" is to be interpreted in a broad sense. A fitting parameter may typically refer to the position of a specific part of the eyeglass frame relative to the wearer's face, such as the bridge of the eyeglasses on the wearer's nose (described below). Figure 4 The fitting parameters may also refer to the fitting parameters in the field of ophthalmology, such as pupil distance, fitting height, position of the center of eyeball rotation, anteversion angle, wrap angle, eye-lens distance and / or distance between the center of eyeball rotation and the lens, etc. when the wearer wears the spectacle frame.

[0021] In a first embodiment, replacing an image of a real spectacle frame worn by a wearer with an image of a virtual spectacle frame on a picture of the wearer, the method may include:

[0022] - identifying in said picture the outline of a real spectacle frame worn by the wearer,

[0023] - determining an anchor point of the real spectacle frame on the wearer's face based on the real spectacle frame contour recognition, and

[0024] - Placing an image of a virtual frame in said picture using said anchor points.

[0025] In the example described below, such an embodiment can be implemented online in real time in a virtual try-on application. Alternatively, it can be implemented in other applications, such as a virtual fitting application, where a 3D model of the eyeglass frame and the wearer's face is acquired and post-processed to subsequently provide a realistic view of the personalized eyeglasses that perfectly fit the wearer's face.

[0026] In the aforementioned first embodiment, the method may more specifically include:

[0027] - in said picture, replacing the image texture of said real spectacle frame defined by the identified contour with the image texture of said wearer, and

[0028] - placing an image texture of the virtual frame in the picture using the anchor points.

[0029] The use of anchor points enables the image texture of the virtual frame to be placed in a manner that fits the scale and angle used to take the original picture.

[0030] The aforementioned “replacement” may be performed, for example, by image processing, or more precisely by a neural network, to perform image restoration on the image texture of the wearer, the image texture of the wearer comprising at least one element of: the wearer's skin, the wearer's eyebrows, the wearer's eyes, and a combination thereof.

[0031] In the aforementioned first embodiment, the anchor point may be determined according to the relative positions of the feature points of the real spectacle frame and the feature points of the wearer's face.

[0032] Typically, the feature points of a real eyeglass frame may be the frame points defining the height and width of the frame, the bridge of the frame, etc. The feature points of the wearer's face may be his nose, temples, eyebrows, etc.

[0033] At least one picture of the wearer may be taken to obtain 3D information of the real glasses frame worn by the wearer, and a plurality of anchor point combinations may be evaluated and adjusted according to different head orientations and positions of the wearer.

[0034] The picture may be an infrared imaging picture (e.g. the type obtained from an infrared camera), or alternatively a plurality of images taken (using a conventional "red, green, and blue" camera) at different head orientations and positions of the wearer to obtain a stereoscopic view.

[0035] The aforementioned anchor point itself may include at least one of the following:

[0036] - the midpoint of the bridge of the real eyeglass frame,

[0037] - frame points of the lenses of real eyeglass frames,

[0038] - the end of the frame leg (or temple hereinafter),

[0039] - a section of a real spectacle frame comprising at least one of said nose bridge and nose piece.

[0040] In order to take into account the real effect of the lenses of the virtual glasses, the method may further include:

[0041] - also identifying in said picture a real lens mounted in a real spectacle frame, and

[0042] - in said picture, replacing said real lens with a virtual lens,

[0043] And the neural network uses the refractive error data of the wearer to display a virtual lens in the picture corresponding to the refractive error of the wearer.

[0044] The aforementioned neural network may be, for example, a combination of several neural networks, such as a so-called “generative adversarial network” (or “GAN”) as described in the examples of the following embodiments.

[0045] For example, if the height of the real glasses is shorter than the height of the virtual glasses, the real glasses are virtually lengthened to fit the virtual glasses. To have a realistic effect, it is preferred that the refractive error is taken into account so that the virtual lenses displayed in the virtual frame have a uniform appearance.

[0046] The color of the lens displayed can also be modified according to the wearer's prescription or according to the wearer's specific selection.

[0047] In an embodiment, the eyeglass frame contour determination may be performed, for example, by a module implementing a semantic segmentation model to identify a plurality of different parts of said eyeglass frame in said picture.

[0048] This module can be implemented by the cooperation of the processor and the programming memory as described below Fig.12 shown.

[0049] Typically, in this embodiment, the method may include:

[0050] - a preliminary step of training a deep learning neural network on an annotated database comprising a plurality of learning image portions of eyeglass frame segments, each learning image portion being associated with a mask describing the frame elements appearing in said learning image and the position of said frame elements on said learning image, in order to construct said semantic segmentation model.

[0051] In a second embodiment, which is an alternative or additional embodiment to the first embodiment, the contour determination is performed under the control of an eye care professional, and the method comprises:

[0052] - implementing said artificial intelligence to draw on said picture characteristic points that define at least the determined contour of the frame and displaying said picture with said characteristic points on a computer screen used by an eye care professional,

[0053] - implementing a human-machine interface to receive input from an eye care professional, the input being validation data or invalidation data determined by the profile implemented by said artificial intelligence, and

[0054] -Updating the artificial intelligence based on the input data.

[0055] Typically, an eye care professional (or "ECP" hereinafter) may check the fitting parameters after a wearer tries on the actual eyeglass frames he / she has selected and is to order (e.g., in a store) (to ensure, for example, that the selected frames will be compatible with, for example, lenses that meet the wearer's prescription).

[0056] The aforementioned feature points may be frame points (a function that defines frame lines or uses such feature points to define the outline of the frame).

[0057] For example, updating the artificial intelligence when using a neural network may be updating the neural network model.

[0058] In this second embodiment, the invalidation data of the contour determination may include data of contour points corrected, for example, by an eye care professional.

[0059] Alternatively or additionally, the eye care professional may:

[0060] - for example determining the result of a calculation of a mathematical function applied to these points, and the result of this calculation giving the determined contour in the output (for example by interpolation), and

[0061] - Based on this judgement, the profile determination can be finally verified or invalidated.

[0062] The aforementioned artificial intelligence can learn from this output: the feature points corrected by the eye care professional and / or the finalized contours verified or invalidated by the eye care professional.

[0063] For example, an eye care professional may add one or several feature points to the bounding box in order to correct the determined contour.

[0064] The eye care professional may add points to the contour in order to provide its exact shape. It is also possible that at least some of the points may not be contour points directly, but control points in order to give an exact fit of the contour, such as one or several control points of a Bezier curve.

[0065] Data of contour points corrected by an eye care professional may be transmitted from a human-machine interface, for example, together with an identifier of the eye care professional, and a counter value of a plurality of data of contour points corrected by the eye care professional may be stored in a memory together with the identifier of the eye care professional.

[0066] This embodiment then enables, for example, rewarding eye care professionals who send a number of corrected data above a threshold.

[0067] For example, the aforementioned artificial intelligence may implement a deep learning neural network that is trained based on validation data or invalidation data of contour determinations by eye care professionals.

[0068] Thus, machine learning can be provided that is specific to a given ECP (own practice) and / or his / her shop and equipment (camera, light, etc.).

[0069] The neural network may also be trained based on validation data or invalidation data of frame profiles determined by an eye care professional and transmitted to the collaborative platform.

[0070] This embodiment then enables the use of other ECP feedback to enrich the artificial intelligence.

[0071] For example, when performed on spectacles comprising lenses, the profile determination comprises determining at least one lens profile.

[0072] Reference below Fig.10 This embodiment is described in detail.

[0073] The contour determination may be performed based on a plurality of pictures taken from different viewing angles relative to the wearer and may be performed on a pair of spectacles comprising a bevel receiving the lens, said contour determination thus comprising determining the contour of said bevel.

[0074] The present disclosure is also directed to a device for measuring at least one fitting parameter of a wearer's eyeglass frame, the device comprising a processor for implementing the above-mentioned method.

[0075] The present disclosure is also directed to a computer program comprising instructions for implementing said method when such instructions are executed by such a processor.

[0076] The invention is also directed to a non-transitory computer storage medium storing instructions of such a computer program. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Further details and advantages of the present disclosure will be understood when reading the following description of an embodiment given as an example and will emerge from the associated drawings, in which:

[0078] - Figure 1 An example of superposition between a virtual frame and a real frame in a virtual try-on application is shown, in which the virtual frame is not well scaled compared to the real frame.

[0079] - Figure 2 A system for implementing a virtual try-on application in an example of an embodiment is shown.

[0080] - Figure 3 The steps of a method for implementing a virtual try-on application according to an example of an embodiment are shown,

[0081] - Figure 4 shows an original picture of a person wearing real glasses (left image), removing the glasses through image restoration (top image), key points on the worn glasses, such as the bridge of the nose here (bottom image), and a virtual try-on image showing the virtual glasses replacing the real glasses (right image),

[0082] - Figure 5 shows a situation where the frame is not fully defined and may require the assistance of ECP,

[0083] - Figure 6 Another case where the nose pads of the glasses may change the automatic determination of the frame profile and may require the assistance of the ECP,

[0084] - Figure 7 A system for implementing machine learning for ECP correction according to an example of an embodiment is shown,

[0085] - Figure 8 The steps of a corresponding method for implementing machine learning for ECP correction according to an example of this embodiment are shown,

[0086] - Figure 9a shows a well-detected frame shape, while Figure 9b shows the frame shape to be corrected by ECP, Fig.9c shows the detection of feature points by an artificial intelligence algorithm based on machine learning,

[0087] - Fig.10 An embodiment for automatically detecting the bevel of glasses is shown.

[0088] - Fig.11 shows examples of areas where ECP inspection or adjustment may be required in specific situations.

[0089] - Fig.12 A device comprising a processor for implementing the method as defined above is schematically shown. DETAILED DESCRIPTION

[0090] First embodiment

[0091] Reference below Figure 2 A virtual try-on method (VTO) is described as a first possible application of the present disclosure.

[0092] The user US wears real glasses SF1 and can take one or several pictures of his face with a device such as a smartphone or tablet TER (or possibly also a specific device in the ECP memory). Figure 2 In this example, the device TER is connected to a remote server SER via an extended network NET. The server SER can propose different models SF2, SF3, SF4, etc. of eyeglass frames for the wearer US to choose for virtual try-on. The user US then selects one of the models SFi (where i=2, 3, 4, etc.) and downloads the data of the digital image of the frame SFi to the device in order to implement VTO through the device TER. Alternatively, a digital image of a picture of the wearer acquired by the device TER can be sent to the server SER in order to implement VTO through the server SER.

[0093] Reference now Figure 3 The VTO implementation method performed by the device TER or the server SER is described.

[0094] In a first step S1, the user US wears his real glasses SF1 and takes a video of, for example, the face of the wearer US using, for example, the VTO software running on his device TER. During the video taking, multiple positions of the user's head orientation may be requested.

[0095] In step S2, the real glasses frame SF1 on the wearer's face is detected in the captured digital image by an artificial intelligence algorithm. The glasses frame SF1 can be segmented into several parts, such as its nose bridge, front profile, mirror ring, temples, hinges, etc.

[0096] Frame detection can be implemented by using a deep learning neural network trained on an annotated database, where each image is associated with a mask describing the location of each element of the frame. Typically, in this preliminary stage of machine learning, the user can indicate to the machine, for example, what is the frame texture, what is the skin texture, what is the bridge of the nose texture, etc., in several parts of the learning picture. This training phase makes it possible to build a semantic segmentation model, thereby recognizing several different parts of any frame. When the preliminary training phase is completed, the neural network is able to predict the location of each element of the frame on the entire new image.

[0097] In step S3, so-called "anchor points" are defined and saved in a memory, these anchor points characterizing the position of the eyeglass frame SF1 on various parts of the wearer's face. Once the frame contour is detected due to the output of the neural network, such anchor points of the position of the frame SF1 on the wearer's face can be defined. Such anchor points are related to fitting parameters, such as the midpoint of the nose bridge, the frame points of the lenses, the ends of the temples, and / or the section of the eyeglasses including the nose bridge and the nose piece (as described below) Figure 4 ). Multiple anchor point combinations can be evaluated and possibly adjusted according to the head orientation and position. By means of the 3D information of the head (stereoscopic images constructed from at least two images taken at different angles, or alternatively 3D images obtained with a specific sensor such as a time-of-flight sensor, or a LiDAR, or an infrared camera such as a Kinect camera), anchor points can be typically defined by several distances between feature points (e.g., feature points of the glasses and feature points of the face).

[0098] In step S4, the wearer's glasses are erased from the picture / video. This step can be performed by image processing combined with a neural network.

[0099] Several embodiments may be implemented for step S4.

[0100] One possible approach may be based on using the pixel tone value of the median or average of the available pixels neighboring the pixel of the frame.Artifacts (such as "frame ghosting") may still appear on the final image.

[0101] Another more complex but more robust method uses a neural network to perform image restoration of the wearer's skin, eyebrows or eyes. This method then enables the generation of some missing parts of the face (for example, eyes in a poorly framed photo). It is then also possible to suppress the worn glasses lenses to eliminate the lens effect so as to replace the real lenses with virtual lenses of the virtual try-on glasses (as explained below with reference to step S5). This may be useful when the size of the virtual frame is larger than that of the real frame and / or if it is desired to use a picture of the wearer without any glasses. Several models can be generated (using different neural networks, such as so-called "GANs", i.e. "Generative Adversarial Networks") for different levels of refractive error. The appropriate model is selected according to the refractive error (for example, given by the wearer according to his / her current prescription) to minimize the lens distortion on the wearer's face when erasing the real frame.

[0102] In step S5 , virtual glasses may be displayed on the wearer's face according to the anchor points detected in step S3 .

[0103] Based on these anchor points and thanks to real frame detection, the position and orientation of the virtual glasses are defined to appear accurately on the wearer's face.

[0104] Depending on the wearer's head orientation, the anchor points may be updated and the most important anchor points may be used. For example, the quality of different anchor points may be evaluated at any time and the most useful anchor points may be selected.

[0105] Finally, the calculated anchor points and the data of the current head orientation can also be used to position the virtual frame according to the shape of the virtual frame itself.

[0106] Figure 4 An example of sequential pictures showing the entire process is shown in . Figure 4 What appears above is that VTO provides the same virtual frame positioning as the real frame.

[0107] To avoid distortion of the lenses in the VTO image, the feature points of the real frame worn by the wearer can be used again here. The real frame is erased from the picture (e.g. by image inpainting methods) and the virtual frame is positioned on the face using the attachment points. From the wearer's point of view, the VTO is performed with his / her corrective lenses. For the wearer, a first advantage is that he / she can keep his / her corrective glasses during the VTO (necessary for high refractive errors) and correctly see the result of the VTO. A second advantage is that the effect of the lenses is taken into account during the VTO.

[0108] Second embodiment

[0109] Therefore, determining the fitting parameters (parameters of the frame fitting on the wearer's face, such as the bridge of the nose, the temples, etc. on the nose piece) is important for virtual eyeglass fitting applications. Simple artificial intelligence algorithms can be used to identify the frames presented above.

[0110] However, in another application of the present disclosure, in which accurate determination of fitting parameters (frame fitting parameters or more generally other fitting parameters, such as ophthalmic fitting parameters) is critical, this application relates to ordering glasses when the ECP determines the fit parameters for the wearer, typically when the wearer tries on the new glasses they wish to order.

[0111] Especially, in this application involving ECP, robust identification of frame contours is a key point for successful 2D and 3D fitting parameter evaluation. Frame detection must be robust to head angle, light environment, frame type, etc.

[0112] For example, Figure 5 and Figure 6 Detecting the correct shape of the lens as shown can be a difficult task for machine learning, as some features / elements can complicate such detection in certain situations. Figure 5 As shown, for frameless glasses, the contrast / visibility of the shape is limited. Figure 6 As shown, the nose pads of the glasses may cause the frame shape to be incorrect near their position. The shape of the bevel of the frame may also cause confusion. Figure 6 When the glasses are angled, it may be more difficult to correctly detect the frame shape.

[0113] A possible problem with simple labeling (i.e., indicating to the learning machine in an image what is skin texture, what is frame texture, what is lens texture, etc.) may be that the resulting AI may be sensitive to changes in conditions, such as lighting, background, etc. In order to have a robust algorithm, a lot of labeled data may be required, and the question remains the ability to collect such well-labeled data.

[0114] In this embodiment, algorithm robustness is improved due to ECP input and feedback data.

[0115] The advantage of this solution is that with the large data sets provided by ECP, machine learning algorithms can be more efficient and robust for any conditions.

[0116] To obtain 3D adaptation parameter measurements, one may propose, for example:

[0117] ● Detect the shape of the frame on several 2D images,

[0118] ● Calculate the head angle of these 2D images,

[0119] ● Using the shape, head angle, and 3D parametric shape of the frame and face (or the 3D shape of the frame calculated via triangulation),

[0120] ● Calculate the 3D parametric shape of the frame through optimization based on the head position, and

[0121] ●Based on the 3D frame shape, evaluate the fitting parameters in 3D (such as wrap angle and forward tilt angle, etc.).

[0122] In order to detect the shape of the frames on 2D images, this embodiment provides a machine learning algorithm using a database of already labeled images, with possible continuous learning using new images labeled by ECP.

[0123] The algorithm was developed as a result of its iterative improvements in collaboration with ECP. Figure 7 Such collaboration is demonstrated in FIG. 1 , where a wearer US tries on a real spectacle frame SF. The eye care professional ECP uses a computer or tablet PC (or for example simply a smartphone) equipped with a camera to take a picture of the wearer US (and the spectacle frame SF). The computer PC may implement the following Figure 8 The steps presented can alternatively access the remote server SER via the extended network NET.

[0124] For example, Figure 8 Presented in:

[0125] - In step S21, the ECP takes a picture of the wearer wearing the frame SF. The picture is sent to the cloud (NET, SER) in the form of a data set of digital images.

[0126] - In step S22, the algorithm V0 running on the server SER calculates some points of the frame shape C0 on the digital image (in step S27). This frame shape C0 is sent back and displayed to the ECP on the computer screen PC.

[0127] - In step S23, the ECP may approve the frame shape or move one or several points of the frame shape C0 to adjust the appearance.

[0128] - In step S24, thanks to this ECP input, the new positions of the points can define a more accurate new frame shape C1.

[0129] - In step S25, the dataset of the exact shape C1 is sent to the cloud.

[0130] The server SER then updates the recognition algorithm in step S28 as a process of machine learning. Continuously, the machine learning algorithm (e.g. involving a neural network) may be updated by new data provided by the ECP via his / her computer PC. If the frame detection improves for the better (e.g. once the ECP has explicitly verified the frame profile in step S25), the algorithm executed by the server may be updated and stored in step S29.

[0131] Iteratively, the version V0 of the algorithm used in the new step S22 may be based on the previous best algorithm V1 used in the previous run of step S25.

[0132] This process allows the algorithm to be updated easily and remotely.

[0133] For example, the algorithm can be updated every week with newly labeled data collected in the ECP store.

[0134] The algorithm can be store specific (lighting conditions, specific features of the camera taking the picture, etc.). Algorithm V0 is the basis, but new shape labels and new learnings can be store or ECP specific.

[0135] For example, one ECP1 may require very high precision and spend some time marking each contour precisely according to his / her own understanding. Another ECP2 may prefer a simple bounding box around the frame and adjust only four points, for example, to define the contour.

[0136] The two EPCs can run their own algorithms on their computers PC. Therefore, it can be understood that Figure 8 The method can ultimately be implemented on a single computer PC without using the cloud, in particular a remote server SER. In this embodiment, the EPC input data can be used to train a neural network running on a computer PC.

[0137] However, of course, the model of a neural network can be:

[0138] - is common to multiple ECPs,

[0139] - but also possibly personalized: a continuous learning algorithm fed with data from only one ECP / store,

[0140] - Or it may also be segmented: for different ECPs, the network is segmented according to their needs and habits.

[0141] The process of automatically proposing the eyeglass shape, then getting feedback from the user to adjust the shape and feeding the learning machine enables continuous improvement in the detection of the eyeglass shape. This also frees the ECP from having to manually define the frame shape, which can be a tedious task. The ECP only needs to check the consistency of the adjustments and eventually locate some shape points that the machine may not be sure of under certain conditions.

[0142] The machine may, for example, display to the ECP an assessment of the confidence level of a proposed identified shape in order to encourage the ECP to examine the determined shape more accurately.

[0143] In this embodiment involving ECP, two examples of embodiments can be implemented as detailed below. The first example involves accurate shape determination of the lenses of the frame ( Figure 9a and Figure 9b A second example involves determining the lens shape based on the identification of feature points and performing an extrapolation of the lens shape based on the identified feature points ( Fig.9c ).

[0144] In a first example of an embodiment, an algorithm, for example based on machine learning (called M0), detects the shape of two lenses (or frame profiles) in a previously taken picture. It is then possible to detect a set of points around each lens, extract these points and display them on the picture of the ECP (on his / her computer screen, laptop or tablet). The ECP checks these points and eventually adjusts the set of points around each lens. The lens profile is then extrapolated and the corresponding data (profile, adjusted set of points, picture) are sent to the cloud (network server SER). These data are used to feed the machine learning algorithm M0 to improve it (becoming an updated version M1). Thereafter, in the next determination, the EPC will have the possibility to check the newly detected set of points of the lenses on the new frame. Due to the current adjustment of the EPC, the detection of these new points will be improved, thereby improving the algorithm form from M0 to M1. Figure 9a shows a well-detected frame shape, while Figure 9b The frame profile to be corrected by ECP is shown.

[0145] In a second example of an embodiment, Fig.9c The detection of feature points by an artificial intelligence algorithm is shown, which in this embodiment is again based on machine learning. The algorithm detects some feature points where the lens contacts the bounding box of the frame and extrapolates the shape of the lens based on these feature points. The ECP can correct the extrapolation if necessary. To do this, the ECP only has to move a few feature points on the shape of the lens. Once the feedback from the ECP is sent to the cloud, the algorithm learns this improved shape detection corrected by the ECP.

[0146] Multiple images corresponding to different head poses can be processed (e.g., for 3D reconstruction of glasses). The ECP (or user of the VTO application) can adjust the appearance on at least two images, because providing adjustments for different head poses generally provides more robust learning. One possible case for such frame recognition can typically be eyeglass bevel detection, such as Fig.10 Here, the frame front bevel ba can be detected with the aid of at least a portion of a frontal picture of the wearer's face, while the frame rear bevel bb can be detected from a rear view of the glasses or from a side view of the wearer.

[0147] In this case, the algorithm receives at least two images of two poses and provides two shapes for each pose, which ECP adjusts. Each adjustment is then provided to machine learning.

[0148] An explanation is given below on determining the appearance based on at least one picture (or more than one picture).

[0149] In order to avoid that the ECP provides a wrong adjustment, the ECP may be asked to provide at least two images (preferably with two different poses) with two adjusted contours Ca, Cb.

[0150] A consistency step can then be performed to check whether the two adjusted shapes are consistent:

[0151] - modifying one of the 2D shapes Ca according to six degrees of freedom (three translations XYZ and three rotations X, Y, Z) so as to match as closely as possible the second shape Cb,

[0152] - Then, after Ca and Cb are matched, check whether the difference between them is low (below a predetermined threshold), especially in the area where the adjustment is made,

[0153] - Only when the difference is below the aforementioned threshold value (eg 0.2 mm) is the adjusted profile Ca=Cb confirmed.

[0154] Since the shape Ca / Cb is only 2D, if 3D shape information is not available, the aforementioned six degrees of freedom can be optimized by adding supplementary parameters (such as frame curvature) to determine the best match. In this way, the missing 3D data of the glasses can be obtained from only two images corresponding to different poses.

[0155] An explanation is given below about the expected confidence in the accuracy of the proposed shape, and the user is provided with the confidence level of the proposed result, so that if the confidence level is low, the user needs to adjust the shape.

[0156] The algorithm provides an appearance and a confidence level that may be simple for the user (eg, a binary expectation message such as: "OK" or "Please confirm").

[0157] For example, the confidence level can be determined based on adjustments made by other ECPs to similar frames or frame shapes: if the adjustments made are very small (e.g., less than 5%), the confidence level is high, otherwise the confidence level is medium (>5%) or low (>10% adjustments).

[0158] Now regarding the processing of the ECP's response (such as "OK" or "Not OK"), when the algorithm shows the shape of the lens in the output, the ECP can respond whether the shape is "OK" or "Not OK". The non-OK shape can then be sent to a specific location to be re-marked by a team of technicians.

[0159] The location of the contour point that needs to be adjusted by the user can also be determined. The ECP can be guided to find the location of the contour point that needs to be adjusted. For example, based on similar glasses and previous adjustments proposed by another ECP, the contour (or bounding box) provided before the adjustment can highlight the location to be checked / adjusted (e.g., by color coding), such as Fig.11 as shown in .

[0160] The ECP may again be involved in the aforementioned team of technicians. Incentives to the users or especially the EPCs may be proposed to drive their adjustments. It may not be considered beneficial for the ECPs to contribute to better machine learning, as the operation may be time consuming for them. Some of them may consider the proposed shapes accurate enough and will not provide any feedback, thus preventing further improvements in machine learning. To create some incentive, it may be proposed to use a collaborative platform from which the ECPs can download similar frame shapes, and it may be proposed to store the shapes they can adjust / correct in this collaborative platform.

[0161] Alternatively, rewards: discounts, rewards, free items may be offered to the ECPs that are most motivated to provide correctly adjusted profiles.

[0162] To implement this alternative technically, an identifier associated with the ECP may be stored in a database, which identifier corresponds to a counter of the number of proposed adjustments and / or the quality of adjustment feedback returned by the ECP. Rewards based on this indicative counter may be envisaged.

[0163] Reference now Fig.12 Generally speaking, the hardware device DEV used for the above method in the first embodiment or the second embodiment may include

[0164] a memory MEM at least for storing instructions of a computer program according to the present disclosure,

[0165] - a processor PROC, accessing the memory MEM to read the aforementioned instructions and then executing the method of the present disclosure,

[0166] - an input interface IN for receiving image data (of the wearer's face, of a real frame, and / or of a virtual frame),

[0167] An output interface OUT, for example for delivering at least characteristic points of the frame contour and also possible fitting parameter values.

[0168] Of course, the present disclosure is not limited to the examples given above.

[0169] Typically, the adaptation parameters can be obtained from a 3D image or from several 2D images with different viewing angles. In this way, multiple adaptation parameters can be obtained. However, it is also possible to perform detection on a standard single 2D picture to evaluate some important adaptation parameters, such as the adaptation height.

[0170] Furthermore, the first and second embodiments are described above as being independent. However, data published by the ECP may be provided as possible input in the aforementioned annotated database of the first embodiment, which data may be a corrected shape according to the second embodiment or may be a new shape completely manually detected by the ECP.

Claims

1. A computer-implemented method for measuring at least one fitting parameter of a wearer's eyeglass frame, the method comprising: - obtaining at least one picture of the wearer wearing said spectacle frame, - determining at least a contour of the spectacle frame in order to derive from the contour at least one fitting parameter of the spectacle frame on the wearer, Therein, the contour determination is performed by means of artificial intelligence.

2. The method of claim 1, further comprising: - after determining said contour, replacing, on said picture of said wearer, the image of said spectacle frame worn by said wearer with the image of a virtual frame, And wherein the method comprises: - identifying in said picture the outline of a real spectacle frame worn by said wearer, - determining an anchor point of the real spectacle frame on the wearer's face based on the real spectacle frame contour recognition, and - placing said image of said virtual frame in said picture using said anchor point.

3. The method of claim 2, comprising: - in said picture, replacing the image texture of said real spectacle frame defined by the identified contour with the image texture of said wearer, and - placing an image texture of the virtual frame in the picture using the anchor points.

4. The method of claim 3, wherein: The replacing is performed to perform image restoration on the image texture of the wearer, the image texture of the wearer comprising at least one element of: the wearer's skin, the wearer's eyebrows, the wearer's eyes, and a combination thereof.

5. The method according to any one of claims 2 to 4, wherein: The anchor point is determined according to the relative positions of the feature points of the real eyeglass frame and the feature points of the wearer's face.

6. The method of claim 5, wherein: At least one picture of the wearer is taken to obtain 3D information of the real eyeglass frame worn by the wearer, and a plurality of anchor point combinations are evaluated and adjusted according to different head orientations and positions of the wearer.

7. The method according to any one of claims 2 to 6, wherein: The anchor point includes at least one of the following: - the midpoint of the bridge of the real spectacle frame, - frame points of the lenses of the real spectacle frame, - the ends of the temples of the real spectacle frame, - a section of the real spectacle frame comprising at least one of the nose bridge and the nose piece.

8. The method according to any one of claims 2 to 7, wherein: The real eyeglass frame includes real lenses, and the method includes: - also identifying said real lens in said picture, and - in said picture, replacing said real lens with a virtual lens, And wherein the neural network uses the refractive error data of the wearer to display virtual lenses in the virtual glasses frame in the image, and the display of the virtual lenses takes into account the refractive error of the wearer.

9. A method as claimed in any one of the preceding claims, wherein: The eyeglass frame contour determination is performed by a module implementing a semantic segmentation model to identify multiple different parts of the eyeglass frame in the image.

10. The method of claim 9, wherein: The method comprises: - a preliminary step of training a deep learning neural network on an annotated database comprising a plurality of learning image portions of eyeglass frame segments, each learning image portion being associated with a mask describing the frame elements appearing in said learning image and the position of said frame elements on said learning image, in order to construct said semantic segmentation model.

11. A method as claimed in any one of the preceding claims, wherein: The contour determination is performed under the control of an eye care professional, and the method comprises: - implementing the artificial intelligence to draw on the picture characteristic points that at least define the determined contour of the frame, and displaying the picture with the characteristic points on a computer screen used by the eye care professional, - implementing a human-machine interface to receive input from said eye care professional, said input being validation data or invalidation data of said contour determination implemented by said artificial intelligence, and -Updating the artificial intelligence based on the input data.

12. The method of claim 11, wherein: The invalidated data of the contour determination includes data of the contour points corrected by the eye care professional.

13. The method according to any one of claims 11 and 12, wherein: The data of the contour points corrected by the eye care professional are transmitted from the human-machine interface together with an identifier of the eye care professional, and a counter value of multiple data of the contour points corrected by the eye care professional is stored in a memory together with the identifier of the eye care professional.

14. The method according to any one of claims 11 to 13, wherein: The artificial intelligence implements a deep learning neural network, and wherein the neural network is trained based on validation data or invalidation data of the contour determination by the eye care professional.

15. The method of claim 14, wherein: The neural network is also trained based on validation data or invalidation data of frame contour determinations by eye care professionals that are transmitted to the collaborative platform.

16. The method according to any one of claims 11 to 15, wherein: The contour determination is performed on an eyeglass comprising a lens, and the contour determination comprises determining at least one lens shape.

17. The method according to any one of claims 11 to 16, wherein: The contour determination is performed based on a plurality of pictures taken from different viewing angles relative to the wearer, and wherein the contour determination is performed on a pair of glasses comprising a bevel, the bevel accommodating a lens, and the contour determination comprises determining a contour of the bevel.

18. A device for measuring at least one fitting parameter of a wearer's spectacle frame, the device comprising a processor for implementing the method according to any of the preceding claims.

19. A computer program comprising instructions which, when such instructions are executed by a processor, implement the method according to any one of claims 1 to 17.