Pupil distance estimation method

By implementing the pupillary distance estimation program on the electronic terminal, using the depth camera to capture multiple images and calculating the pupillary distance estimate, the problem of depth camera accuracy and environment dependence in the existing technology is solved, and a more accurate and simplified pupillary distance measurement is achieved. process.

CN118765172APending Publication Date: 2024-10-11LUXOTTICA GRP SPA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380023786.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-04-22
Filing Date
2023-04-21
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing pupillary distance estimation methods based on distance imaging technology rely on expensive depth cameras, and their accuracy is affected by sensor accuracy, lighting conditions and user posture. The computational burden is large, and users need to capture images in an ideal environment.

Method used

By implementing the pupillary distance estimation program on the electronic terminal, using the depth camera to capture multiple depth images, locating the pupil marker points, calculating the initial and far pupillary distance estimates, and obtaining the final estimate through aggregation functions and filtering steps, concerns about the accuracy of the depth camera are reduced. Dependence, simplifying user experience.

Benefits of technology

It achieves more accurate interpupillary distance estimation, reduces dependence on depth camera accuracy, reduces computational burden, and provides reliable estimation in non-ideal environments, simplifying user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118765172A_ABST
    Figure CN118765172A_ABST
Patent Text Reader

Abstract

A pupillary distance estimation method (100) comprising the steps of:-capturing (110) a plurality of depth images of a user's face, where each depth image comprises a two-dimensional or 2D image and a two-dimensional map of data representing the distance of each pixel from a viewing point; for each captured depth image:-performing (120) a processing of the captured depth image by correcting an alignment between a two-dimensional map of data and a two-dimensional or 2D image; positioning (130) two first marking points corresponding to the pupils on the two-dimensional or two-dimensional image; -obtaining (140) spatial coordinates of metric units of the first marking point from a two-dimensional map of said data; -determining (150) an initial estimate of the interpupillary distance by calculating the distance between the first marking points; determining (160) a second estimate of the interpupillary distance; -calculating (170) a final estimate of the interpupillary distance based on the first estimate or the second estimate.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates to a pupil distance estimation method using a terminal such as a smart phone, a notebook computer, etc.

[0002] The interpupillary distance or IPD is a fundamental quantity used in the selection and fitting of eyeglasses.

[0003] Typically, when buying glasses in a store, the optician draws two points on the lens being tested at the pupil location estimated by eye; the distance between the two drawn points is considered to be the user's pupil distance.

[0004] Recently, a computer program or software has been developed that is able to estimate the pupil distance of a user by analyzing a captured digital image of the user's face. The software is loaded onto a specific terminal installed in a store.

[0005] However, in recent years, with the development of e-commerce, i.e., selling online products on the Internet network, it has become necessary to install software for estimating pupillary distance on the user's mobile terminal or desktop personal computer (PC) and integrate it into online sales software applications.

[0006] The presence of a camera integrated in a mobile terminal or connected to a desktop PC allows the immediate capture of the digital image required for the software to estimate the pupillary distance.

[0007] Methods for estimating pupil distance for terminals using so-called range-imaging techniques implemented by software are known. These techniques are used to produce a two-dimensional or 2D image in which each pixel is associated with a corresponding value of the distance of the point represented by the pixel from the observation and capture point of the image. Such techniques envisage capturing or acquiring images with the aid of a depth image capture system. Such a depth image capture system may include a stereoscopic vision system or a so-called depth camera. In the case where the depth image capture system is properly calibrated, the value of the distance associated with the pixel can be directly determined in real metric units such as meters.

[0008] In any case, the depth image capture system is configured to capture a two-dimensional image, determine a two-dimensional map of data representing the distance of each pixel from the observation point, and associate the two-dimensional map with the captured two-dimensional image so that each pixel of the captured two-dimensional image is associated with the data of the two-dimensional map. This association is performed with the aid of a synchronization algorithm.

[0009] Nowadays, more and more terminals, such as smartphones, laptops, etc., are equipped with depth cameras to perform measurements in many application environments, for example in the construction industry or the eyewear industry.

[0010] The pupil distance estimation method based on distance imaging technology includes the following steps:

[0011] - capturing a depth image of the user's face by means of a depth camera of the electronic terminal, the depth image comprising a two-dimensional or 2D image and a two-dimensional map of data representing the distance of each pixel from an observation point coinciding with the position of the depth camera, the two-dimensional map being aligned with the two-dimensional or 2D image so that each pixel of the captured two-dimensional image is associated with data of the two-dimensional map;

[0012] - performing processing of said captured depth image in a manner to correct for inherent optical variations;

[0013] - Detect two marker points corresponding to the pupil on the 2D image;

[0014] - obtaining the spatial coordinates of the marking point in metric units;

[0015] - Determine an estimate of the pupil distance in metric units by calculating the distance between the marker points.

[0016] Deep image processing refers to a process that envisions finding the distortion coefficients of a camera as provided by the manufacturer, and subsequently processing the image based on such distortion coefficients.

[0017] There are also known pupil distance estimation methods based on range imaging techniques, in which the position of the pupil is determined by an iterative refinement process, resulting in an increased computational burden.

[0018] The pupil distance estimation method based on distance imaging technology has the advantage that the data is already detected in metric units and therefore does not need to show any object of known size in order to be implemented in order to be able to calculate the pixel-to-millimeter conversion ratio; therefore, the implementation of the method is very simple for the user.

[0019] The above-mentioned known pupil distance estimation methods have some disadvantages.

[0020] One disadvantage is that depth cameras are very expensive, so this approach can only be implemented in very expensive terminals.

[0021] Another disadvantage is that the accuracy of the measurement depends on the accuracy of the depth sensor of the depth camera adapted to detect the two-dimensional map of the data and the resolution and sensitivity of the 2D image capture sensor. Another disadvantage is that the accuracy of the estimate also depends on the user's posture and gaze direction, the light and focus conditions under which the two-dimensional image is captured; in this regard, it should be noted that the ideal environmental conditions for the operation of the depth sensor may conflict with the ideal environmental conditions for the two-dimensional image capture sensor.

[0022] Furthermore, the accuracy of the estimate will also depend on the accuracy that can be achieved using the particular processing that can be employed.

[0023] The object of the present invention is to eliminate the above-mentioned disadvantages and, in particular, to design a pupil distance estimation method based on range imaging technology, which is more accurate than the prior art methods, independent of the accuracy of the depth camera, avoiding the step of refining the pupil position to reduce the computational burden.

[0024] This and other objects according to the invention are achieved by implementing a pupil distance estimation method as claimed in claim 1 .

[0025] Another object of the present invention is to eliminate the above-mentioned drawbacks and in particular to design a computer program loadable into the memory of an electronic computer and comprising instructions directing the electronic computer to implement a method for estimating the pupil distance that is simpler than methods based on the identification of objects or landmarks of known dimensions in a captured digital image of the user's face.

[0026] This further object is achieved according to the invention by implementing a computer program as claimed in claim 15 .

[0027] Further features of the pupil distance estimation method are subject matter of the dependent claims.

[0028] The features and advantages of the pupil distance estimation method according to the present invention will become more apparent from the following description, by way of example and not limitation, with reference to the accompanying schematic drawings, in which:

[0029] Figure 1 is a flow chart depicting a method for estimating pupil distance according to a first embodiment of the present invention;

[0030] Figure 2 is a flow chart depicting a method for estimating pupil distance according to a second embodiment of the present invention;

[0031] Figure 3 is a flowchart depicting a method for estimating pupil distance according to a third embodiment of the present invention;

[0032] Figure 4 It is a representative image of the two pupils as seen from the same observation point as the camera.

[0033] Referring to the drawings, a pupil distance estimation method, generally indicated at 100, is shown.

[0034] Such a pupil distance estimation method 100 can be implemented by an electronic computer equipped with a memory for data storage. Specifically, the pupil distance estimation method 100 can be implemented by a pupil distance estimation program or software loaded into a computer memory.

[0035] Therefore, the pupil distance estimation program includes instructions, and when an electronic computer executes the program, the instructions guide the electronic computer to implement the pupil distance estimation method 100.

[0036] The pupil distance estimation program can be associated with an e-commerce glasses platform. In this case, whenever a user buys glasses on the e-commerce glasses platform, the pupil distance estimation program is executed.

[0037] More generally, the pupil distance estimation procedure may also be performed by the operator's electronic terminal after the user has purchased a pair of glasses.

[0038] The electronic terminal may refer to a desktop personal computer, a smart phone, a laptop computer, a handheld device, etc.

[0039] The electronic terminal comprises a depth camera and an electronic computer equipped with a memory for data storage, in which a program or software for estimating pupil distance according to the present invention is loaded.

[0040] The pupil distance estimation method 100 according to the present invention comprises the following steps:

[0041] - capturing 110 a plurality of depth images of the user's face by means of a depth camera, wherein each depth image comprises a two-dimensional or 2D image and a two-dimensional map of data representing the distance of each pixel from a viewpoint coinciding with the position of the depth camera, the two-dimensional map being aligned with the two-dimensional or 2D image such that each pixel of the captured two-dimensional image is associated with the data of the two-dimensional map;

[0042] And for each of the captured depth images:

[0043] - performing 120 processing of said captured depth image by correcting the alignment between said two-dimensional map of data and said two-dimensional or 2D image;

[0044] - positioning 130 two marking points corresponding to the pupils on the two-dimensional or 2D image;

[0045] - obtaining 140 spatial coordinates in metric units of said marking points from said two-dimensional map of data;

[0046] - Determine an initial estimate of the pupil distance of 150 by calculating the distance between the marker points;

[0047] - Determine a second estimate of the pupillary distance 160;

[0048] - Calculating 170 a final estimate of the pupil distance based on the first estimate and / or the second estimate.

[0049] Preferably, the first estimate of the pupillary distance corresponds to an estimate of the near pupillary distance and is expressed in metric units.

[0050] Preferably, the second estimate of the pupil distance corresponds to an estimate of the far pupil distance, is expressed in metric units, and is calculated based on the first estimate and a predetermined eye radius, the predetermined eye radius being set equal to a value of the most prevalent eye radius in the global population according to data contained in an anthropometric database. An anthropometric database is a prior art database providing anthropometric data. Anthropometric data is data about the size and shape of the human body and is the basis for building all digital human models. Anthropometric databases contain data related to anthropometric measurements, i.e. data related to anthropometric measurements such as height, weight, eye radius, etc. of a plurality of persons.

[0051] As an example, the most famous freely accessible database is ANSUR TM I and ANSUR TM II and NHANES TM .

[0052] Alternatively, the first estimate of the pupil distance corresponds to an estimate of the far pupil distance and is expressed in metric units, while the second estimate of the pupil distance corresponds to an estimate of the near pupil distance and is expressed in metric units and is calculated based on the first estimate and a predetermined eye radius, the predetermined eye radius being set equal to a value of the most common eye radius in the global population according to data contained in an anthropometric database. In this case, the step of capturing 110 more depth images is performed by asking the user to look at a very far point.

[0053] Deep image processing refers to a process that envisages finding the distortion coefficients of a camera as provided by the manufacturer, and performing subsequent processing of the image based on those distortion coefficients.

[0054] The step of capturing 110 more depth images is specifically performed by taking pictures with the help of a depth camera or a camera system of a mobile terminal or desktop PC suitable for operating as a depth camera. The depth image can be captured by asking the user to look closely at the depth camera or to look at a far point beyond the camera.

[0055] In the following discussion, for simplicity, reference will be made to the case where a depth image is captured by requiring a user to look at a close distance to a depth camera. The description can then be applied, mutatis mutandis, to the case where an image is captured by requiring a user to look at a far point beyond the camera.

[0056] The step of locating 130 a marker point corresponding to the pupil is performed by means of a first algorithm. For example, the first algorithm may be a digital image processing algorithm or a machine learning algorithm, which will not be described in detail as they are known in the art.

[0057] For example, in the case where the first algorithm is of digital image processing type, it detects and locates the marker points corresponding to the pupil based on the detection of color and geometric features of the image. In contrast, in the case where the first algorithm is of machine learning type, it detects and locates the marker points corresponding to the pupil based on a computational model trained on a set of images in which the positions of these points are known.

[0058] Once the marker points corresponding to the pupils are located on the two-dimensional or 2D image, the corresponding spatial coordinates of this image are obtained by projecting said marker points onto a two-dimensional map of the relative depth image in a manner known per se in the art.

[0059] After obtaining the spatial coordinates of the marker points, the distance of the marker points is calculated by applying the deprojection technique known in the prior art to obtain the near pupil distance IPD. D The estimate corresponds to the first estimate of the pupillary distance.

[0060] Near pupil distance IPD D It refers to the distance between the user's two pupils when the user looks at a close point.

[0061] Determine the IPD ∞ The step of estimating the second pupil distance corresponding to the estimation of is performed with the aid of a second triangulation algorithm.

[0062] IPD ∞ Indicates the distance between the user's two pupils when the user is looking at a very far point.

[0063] This second algorithm first calculates the angle θ between the two line segments connecting the marker point to the observation point, solving the following expression in simplified form:

[0064]

[0065] Where D is the distance between the observation point and the line segment connecting the marker points.

[0066] The marker points and the observation point define an isosceles triangle with a vertex angle θ, a height D, and a base equal to the line segment connecting the marker points.

[0067] Therefore, the angle α=θ / 2 between the radius connecting the pupil center and one of the marking points and the radius of the eyeball parallel to the height D is calculated.

[0068] Preferably, the predetermined eyeball radius R is set equal to a value of the most common eyeball radius in the global population according to data contained in the anthropometric database.

[0069] Since the radius of the eyeball is known, the distance d between the marker point and the center of the pupil along the direction parallel to the line segment connecting the marker points is calculated by the following expression: d=Rsinα.

[0070] Finally, a second estimate of the interpupillary distance is determined by the following expression: IPD ∞ =IPD D +2d.

[0071] Once the second estimate of the pupil distance has been calculated for all captured depth images, a final estimate of the pupil distance is calculated 170 based on the first estimate or the second estimate.

[0072] Preferably, in the calculation step 170, the final estimate is calculated by an aggregation function of the first estimate or the second estimate.

[0073] Preferably, in the calculation step 170, the final estimate is calculated as an average of the first estimates or the second estimates.

[0074] Preferably, before the calculation step of the final estimation, the pupil distance estimation method 100 includes a filtering step 300, in which for each captured depth image, it is evaluated whether the image is reliable or unreliable by comparing one or more characteristic parameters of the corresponding two-dimensional or 2D image itself with a corresponding reliability threshold; if the two-dimensional or 2D image is unreliable, the relative depth image (also considered unreliable) is excluded from the calculation step of the third estimation.

[0075] The pupil distance estimation method 100 according to the invention does not envisage a step of refining the pupil position, but guarantees a high accuracy of its estimation by first eliminating captured depth images deemed unreliable, ie those that may cause an incorrect estimation of the pupil position and thus introduce errors.

[0076] Preferably, the characteristic parameters of the captured image include a ratio representing the degree of eyelid opening, wherein such a ratio is referred to as the "eye aspect ratio".

[0077] In this case, for each depth image captured, the filtering step 300 comprises the following steps:

[0078] - locating 310 on the corresponding two-dimensional or 2D image a plurality of marker points corresponding to specific features of the user's face including at least the eyelids; other features of the face may be, for example, the nose, mouth, eyebrows, etc.;

[0079] - determining 320 a ratio representing the degree of eyelid opening, referred to as the eye aspect ratio;

[0080] - comparing 350 eye aspect ratios with a predetermined threshold of image reliability;

[0081] - if the eye aspect ratio is greater than said predetermined threshold of image reliability, the two-dimensional or 2D image is deemed reliable 330;

[0082] - If the eye aspect ratio is below a predetermined threshold of image reliability, the two-dimensional or 2D image is deemed unreliable 340 .

[0083] For example, a predetermined threshold is set based on historical data; in particular, considering a certain number of previously captured and stored historical images, the aforementioned threshold can be determined by calculating the average of the eye aspect ratios of all images that are considered reliable, i.e., those images in which the first algorithm is able to correctly detect the pupil position.

[0084] Localizing 310 the marker points is performed with the aid of a third machine learning algorithm.

[0085] In addition to or as an alternative to the eye aspect ratio, characteristic parameters of the captured image include multiple data from inertial sensors of a mobile phone or other device equipped with a depth camera (e.g., acceleration, position, etc.), the direction of the user's gaze, image quality parameters (e.g., brightness, contrast, sharpness, etc.).

[0086] Preferably, for each individual image considered reliable, a respective reliability level is determined, which indicates the degree of reliability of the image itself; for example, the higher the level, the more reliable the image.

[0087] Preferably, in the calculation step 170, the final estimate is calculated as the average of the first estimates or the second estimates of all reliable two-dimensional or 2D images.

[0088] More preferably, in the calculation step 170, the final estimate is calculated as an average of the first estimates or second estimates of all reliable two-dimensional or 2D images, weighted according to the reliability level of those images.

[0089] Preferably, the step of capturing 110 at least one 2D image comprises a step of "nudging" or enabling a user to perform image capturing under optimal image capturing or photographic conditions.

[0090] This step of supporting the user includes one or more of the following checks:

[0091] - Detecting the presence of glasses on the face of the user 111;

[0092] - detecting 112 a plurality of photographic parameters necessary to infer the quality of the input image;

[0093] - Detect 113 invisible parts of the face, eg due to possible occlusions.

[0094] Photographic parameters are for example exposure, focus, aperture etc. The uniformity of the facial illumination is another qualitative component that is very relevant to ensure the quality of the input image. The detection of the photographic parameters is performed in a manner known per se by means of digital image processing algorithms.

[0095] In this case, the steps of supporting the conditions for the user to optimally acquire visual data also include the following steps:

[0096] -Evaluation 116 detection 111, 112, 113;

[0097] - notifying 114 the user to remove the glasses after detecting the presence of the glasses on the user's face, and / or modifying the relative positioning between the camera and the face after detecting at least one photographic parameter outside a corresponding range of acceptable thresholds or an invisible part of the face;

[0098] - If the presence of glasses is not detected and no photographic parameters outside the corresponding range of acceptability thresholds are detected and no invisible parts of the face are detected, a picture is taken 115 .

[0099] Notification 114 to the user may occur in various ways, such as by means of a text message on the terminal screen or by means of a light indication of the traffic light type, where red indicates non-optimal capture conditions and green indicates optimal capture conditions.

[0100] The detection of the presence of glasses on the user's face 111 and the detection of invisible parts is preferably performed with the help of a fourth machine learning algorithm.

[0101] The fourth machine learning algorithm may preferably be based on a convolutional neural network or CNN trained to detect the presence / absence of glasses and the presence / absence of invisible parts of the face. The training of the fourth algorithm is performed using a set of images in which the presence / absence of invisible parts of the face is already known.

[0102] From the description, the features of the pupil distance estimation method of the present invention are clear, and the relative advantages are also clear.

[0103] In fact, in the case where the images are captured by asking the user to look close to the camera, the method according to the invention makes it possible to obtain an accurate estimate of the pupil distance based on multiple depth images by compensating for the estimation error derived from the proximity of the observation point or image capture to the user's face and by calculating the average of the estimates calculated for each of the said images.

[0104] In case a filtering step is envisaged, the estimation method is even more accurate, since captured images deemed unreliable are excluded if the eyelids are not sufficiently open to allow a reliable localization of the pupil.

[0105] Steps that support the user towards optimal image capturing or photography conditions ensure that the most suitable possible depth image is captured to provide a reliable estimate.

[0106] This step of supporting the user is automated, simplifying the end-user experience, minimizing user effort, and avoiding the need for any tools other than the terminal.

[0107] Finally, it is obvious that the estimation method thus conceived is susceptible of numerous modifications and variations, all of which are within the scope of the invention; moreover, all the details may be replaced by technically equivalent elements. In practice, the materials used, as well as their dimensions, may be of any type according to technical requirements.

Claims

1. A pupil distance estimation method (100) that can be implemented by an electronic computer equipped with a memory for data storage, the pupil distance estimation method (100) comprising the following steps: - capturing (110) a plurality of depth images of the user's face by means of a depth camera, wherein each of the depth images comprises a two-dimensional or 2D image and a two-dimensional map of data representing the distance of each pixel from a viewpoint coinciding with the position of the depth camera, the two-dimensional map being aligned with the two-dimensional or 2D image so that each pixel of the captured two-dimensional image is associated with data of the two-dimensional map; For each of the captured depth images: - performing (120) processing of the captured depth image by correcting the alignment between the two-dimensional map of the data and the two-dimensional or 2D image; - locating (130) two first marking points corresponding to the pupils on said two-dimensional or 2D image; - obtaining (140) the spatial coordinates in metric units of said first marking point from the two-dimensional plot of said data; - determining (150) an initial estimate of the pupil distance by calculating the distance between said first marking points; - determining (160) a second estimate of the pupil distance; - calculating (170) a final estimate of the pupil distance based on the first estimate or the second estimate.

2. The pupil distance estimation method (100) according to claim 1, wherein the first estimate of the pupil distance corresponds to an estimate of the near pupil distance and is expressed in metric units.

3. The pupil distance estimation method (100) according to claim 2, wherein: The second estimate of the pupil distance corresponds to an estimate of the far pupil distance, expressed in metric units, and is calculated based on the first estimate and a predetermined eye radius, wherein the predetermined eye radius is set equal to the value of the most common eye radius in the global population based on data contained in an anthropometric database.

4. The pupil distance estimation method (100) according to claim 3, wherein: In the calculation step (170), the final estimate is calculated by an aggregation function of the first estimate or the second estimate.

5. The pupil distance estimation method (100) according to claim 3, wherein: In the calculation step (170), the final estimate is calculated as an average of the first estimate or the second estimate.

6. The pupil distance estimation method (100) according to one or more of the preceding claims, wherein: Said step (130) of locating said first marking point is performed by means of a first digital image processing algorithm or a first machine learning algorithm trained on a set of images in which the position of said point is known.

7. The pupil distance estimation method (100) according to one or more of the preceding claims comprises, before the calculation step (170) of the final estimation, a filtering step (300), in which, for each captured depth image, the image is evaluated as reliable or unreliable by comparing one or more characteristic parameters of the corresponding two-dimensional or 2D image with a corresponding reliability threshold; if the captured depth image is evaluated as unreliable, the depth image is excluded from the calculation step (170) of the final estimation.

8. The pupil distance estimation method (100) according to claim 7, wherein: The characteristic parameters of the captured images include a ratio representing the degree of opening of the eyelids, which ratio is called the "eye aspect ratio", and for each captured depth image, the filtering step (300) includes the following steps: - locating (310) on the corresponding two-dimensional or 2D image a plurality of second marker points corresponding to specific features of the user's face including at least the eyelids; - determining (320) the ratio representing the degree of opening of the eyelids, called the eye aspect ratio; - comparing (350) the eye aspect ratio with a predetermined threshold value of image reliability; - if the eye aspect ratio is greater than the threshold value for image reliability, the two-dimensional or 2D image and the corresponding depth image are considered reliable (330); - If the eye aspect ratio is below the threshold value for image reliability, the two-dimensional or 2D image and the corresponding depth image are considered unreliable (340).

9. The pupil distance estimation method (100) according to claim 7 or 8, wherein: The feature parameters of the captured image include multiple data from the inertial sensor of a mobile phone or other device equipped with a depth camera.

10. The pupil distance estimation method (100) according to one or more of claims 7 to 9, wherein: The characteristic parameters of the captured image include image quality parameters.

11. The pupil distance estimation method (100) according to claim 8, wherein: The step (130) of locating the second marker point is performed with the aid of a third machine learning algorithm.

12. The pupil distance estimation method (100) according to one or more of claims 7 to 11, wherein: In a calculation step (170), the final estimate is calculated as the average of the first or second estimates for all two-dimensional or 2D images considered reliable.

13. The pupil distance estimation method (100) according to one or more of claims 7 to 12, wherein: For each individual image that is deemed reliable, a corresponding reliability level is determined, indicating the degree of reliability of the image itself.

14. The pupil distance estimation method (100) according to claim 13, wherein: In a calculation step (170), the final estimate is calculated as the average of the first estimate or the second estimate of all two-dimensional or 2D images considered reliable, weighted according to the reliability level of those images.

15. The pupil distance estimation method (100) according to one or more of the preceding claims, wherein: The step (110) of capturing at least one depth image comprises the step of supporting the user towards optimal image capturing or photographing conditions, the user supporting step comprising one or more of the following detections: - detecting (111) the presence of glasses on the user's face; - detecting (112) a plurality of photographic parameters necessary to infer the quality of the captured image; - detecting (113) invisible parts of the face, The user support step further includes the following steps: - evaluating (116) said detection (111, 112, 113); - after detecting the presence of glasses on the user's face, informing (114) the user to remove the glasses, and / or after detecting at least one photographic parameter outside a corresponding range of acceptable thresholds or detecting an invisible part of the face, informing (114) the user to change the relative positioning between the camera and the face, and repeating the detection steps (111, 112, 113); - If the presence of glasses is not detected and no photographic parameters are detected outside the corresponding range of acceptable thresholds and no invisible parts of the face are detected, a picture is taken (115).

16. The pupil distance estimation method (100) according to claim 15, wherein: The detection of the presence of glasses on the user's face (111) and the detection of invisible parts (113) are performed with the help of a fourth algorithm trained using a set of images in which the presence / absence of glasses and the presence / absence of invisible parts of the face are known.

17. A computer program loadable into a memory of an electronic computer and comprising instructions causing the electronic computer to implement the pupil distance estimation method (100) according to one or more of the preceding claims when the electronic computer executes the program.

18. An electronic terminal comprising a depth camera and an electronic computer equipped with a memory for data storage, the program according to claim 17 being loaded into the memory.